/* ============================================================
   Founders Sprint — Espace fondateurs
   Editorial dashboard system
   ============================================================ */

:root {
  --navy: #0A0E27;
  --navy-soft: #1E2447;
  --navy-deep: #060920;
  --cream: #FAF7F0;
  --cream-warm: #F5F0E5;
  --orange: #FF5F1F;
  --orange-soft: #FF7E47;
  --cyan: #00D4FF;
  --green: #16a34a;
  --red: #dc2626;
  --text: #1A1F36;
  --muted: #6B7280;
  --line: rgba(10, 14, 39, 0.08);
  --line-strong: rgba(10, 14, 39, 0.14);
  --line-light: rgba(250, 247, 240, 0.12);
  --shadow-card: 0 1px 0 rgba(10,14,39,0.04), 0 8px 24px rgba(10,14,39,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.display-italic { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500; }
button, input, select, textarea { font-family: inherit; }
a { color: var(--orange); text-decoration: none; }

/* ============ AUTH ============ */
.auth-body { background: var(--navy); }
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 95, 31, 0.18) 0%, transparent 70%);
}
.auth-back {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(250,247,240,0.6);
  text-decoration: none;
  margin-bottom: auto;
  position: relative;
}
.auth-back:hover { color: var(--cream); }
.auth-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 28px;
  font-weight: 600;
  margin-top: 32px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.auth-brand .auth-wordmark { display: inline; }
.auth-brand .auth-wordmark > span { color: var(--orange); }
.auth-brand .logo-subtitle {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  margin-top: 4px;
  line-height: 1;
}
.auth-quote { margin-top: 64px; max-width: 440px; position: relative; }
.auth-quote .big-q {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 120px;
  line-height: 0.6;
  color: var(--orange);
}
.auth-quote p {
  font-size: 36px;
  line-height: 1.05;
  margin: 16px 0 16px;
  letter-spacing: -0.02em;
}
.auth-sub {
  color: rgba(250,247,240,0.65);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.auth-bullets {
  list-style: none;
  margin-top: auto;
  padding-top: 56px;
  display: grid;
  gap: 14px;
  position: relative;
}
.auth-bullets li {
  font-size: 13px;
  color: rgba(250,247,240,0.7);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.auth-bullets li::before {
  content: '◆';
  color: var(--orange);
  font-size: 8px;
}

.auth-form-wrap {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.auth-form { width: 100%; max-width: 420px; }
.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.auth-tabs .tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.auth-tabs .tab.active { color: var(--text); border-bottom-color: var(--orange); }
.form-block { display: none; }
.form-block.active { display: block; }
.form-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  line-height: 1.05;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.form-lede { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.form-block label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 6px;
}
.form-block input[type=email],
.form-block input[type=password],
.form-block input[type=text],
.form-block input[type=tel],
.form-block textarea,
.form-block select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--cream);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.form-block input:focus, .form-block select:focus, .form-block textarea:focus {
  outline: none; border-color: var(--orange);
}
.form-row-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
  font-size: 13px;
}
.form-row-link a { color: var(--orange); text-decoration: none; }
.form-row-link a:hover { text-decoration: underline; }
.check { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check input { margin: 0; }
.btn-primary {
  width: 100%;
  background: var(--orange);
  color: var(--cream);
  border: none;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover { background: var(--orange-soft); transform: translateY(-1px); }
.btn-ghost {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-ghost:hover { background: var(--cream-warm); border-color: var(--text); }
.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--line);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: var(--cream); padding: 0 12px; position: relative; }
.auth-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 12px;
  display: none;
}
.auth-error.show { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 input { width: 100%; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { padding: 32px; min-height: 280px; }
  .auth-visual::before { display: none; }
  .auth-quote { margin-top: 24px; }
  .auth-quote p { font-size: 26px; }
  .auth-bullets { padding-top: 24px; }
}

/* ============ DASHBOARD SHELL ============ */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: var(--cream);
  padding: 28px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-light);
}
.sidebar-brand {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  padding: 0 28px 28px;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-brand span:not(.logo-subtitle):not(.cohort-badge) { color: var(--orange); }
.sidebar-brand-stack { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.sidebar-brand .logo-subtitle {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.5;
  margin-top: 2px;
  line-height: 1;
}
.app-shell.sidebar-collapsed .sidebar-brand .logo-subtitle { display: none; }
.cohort-badge {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255, 95, 31, 0.15);
  color: var(--orange);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}
.sidebar-nav .group-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.4);
  padding: 14px 12px 8px;
  font-weight: 600;
}
.sidebar-nav button {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(250,247,240,0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-nav button:hover { background: rgba(250,247,240,0.05); color: var(--cream); }
.sidebar-nav button.active {
  background: rgba(255, 95, 31, 0.1);
  color: var(--orange);
}
.sidebar-nav button .icon-sm {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-nav button .icon-sm svg { width: 16px; height: 16px; }
.sidebar-nav button .badge-num {
  margin-left: auto;
  background: var(--orange);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.sidebar-foot {
  border-top: 1px solid var(--line-light);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.sidebar-foot:hover { background: rgba(250,247,240,0.04); }
.sidebar-foot .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-foot .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-foot .meta { line-height: 1.2; min-width: 0; }
.sidebar-foot .meta .name { font-size: 13px; color: var(--cream); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .meta .role { font-size: 11px; color: rgba(250,247,240,0.5); }

.main {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .crumbs {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.topbar .crumbs strong { color: var(--text); font-weight: 600; }
.topbar .actions { display: flex; align-items: center; gap: 16px; }
.topbar .icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--text);
}
.topbar .icon-btn:hover { background: var(--cream-warm); }
.topbar .icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.view {
  padding: 36px 40px 80px;
  max-width: 1280px;
  display: none;
  animation: fadeUp 0.3s ease;
}
.view.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-head { margin-bottom: 32px; }
.view-head .label {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 12px;
}
.view-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.view-head h1 em { color: var(--orange); }
.view-head p { color: var(--muted); font-size: 15px; max-width: 640px; }

/* ============ DASHBOARD HOME ============ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 6px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.kpi-card .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.kpi-card .value {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 6px;
}
.kpi-card .value em { color: var(--orange); }
.kpi-card .delta {
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}
.kpi-card .delta.down { color: var(--red); }
.kpi-card .progress {
  height: 4px;
  background: var(--cream-warm);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.kpi-card .progress .fill { height: 100%; background: var(--orange); border-radius: 2px; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }

.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
}
.panel-head .link {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.timeline-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  font-size: 13px;
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row .when { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--orange); font-size: 14px; font-weight: 600; }
.timeline-row .what { color: var(--text); font-weight: 500; }
.timeline-row .what .small { color: var(--muted); font-size: 12px; font-weight: 400; display: block; margin-top: 2px; }
.timeline-row .stat {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.timeline-row .stat.live { color: var(--orange); border-color: rgba(255,95,31,0.3); background: rgba(255,95,31,0.06); }
.timeline-row .stat.done { color: var(--green); border-color: rgba(22,163,74,0.3); background: rgba(22,163,74,0.06); }

.activity {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.activity .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.activity .row:last-child { border-bottom: none; padding-bottom: 0; }
.activity .row .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex-shrink: 0;
}
.activity .row .dot.cyan { background: var(--cyan); }
.activity .row .dot.green { background: var(--green); }
.activity .row .body { flex: 1; }
.activity .row .body .text { color: var(--text); }
.activity .row .body .text strong { font-weight: 600; }
.activity .row .body .when { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ============ COURSES ============ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.course-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(10,14,39,0.08); }
.course-thumb {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 39, 0.45);
  color: var(--cream);
  font-size: 36px;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.course-thumb .play::before {
  content: '';
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23faf7f0'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 56% center;
  background-size: 22px;
}
.course-card:hover .course-thumb .play { opacity: 1; }
.course-thumb .duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10,14,39,0.78);
  color: var(--cream);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.course-thumb .day-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: var(--cream);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.course-info { padding: 18px 20px 20px; }
.course-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.2;
}
.course-info p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.course-info .progress {
  height: 4px;
  background: var(--cream-warm);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.course-info .progress .fill { height: 100%; background: var(--orange); }
.course-info .meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.course-info .meta .done { color: var(--green); font-weight: 600; }

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-row .pill {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.filter-row .pill:hover { background: var(--cream-warm); }
.filter-row .pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

/* ============ TOOLS ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tool-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-card);
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 16px 40px rgba(10,14,39,0.08); }
.tool-card .logo {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-warm);
  border-radius: 10px;
}
.tool-card .logo img { width: 26px; height: 26px; object-fit: contain; }
.tool-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
}
.tool-card p { font-size: 12.5px; color: var(--muted); flex: 1; line-height: 1.5; }
.tool-card .open {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============ CALENDAR ============ */
.calendar {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--cream-warm);
}
.cal-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
}
.cal-head .nav { display: flex; gap: 8px; align-items: center; }
.cal-head .nav button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.cal-head .nav button:hover { background: var(--cream-warm); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-grid .dow {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--cream-warm);
}
.cal-grid .day {
  min-height: 100px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 12px;
  background: var(--cream);
  cursor: pointer;
  transition: background 0.15s ease;
}
.cal-grid .day:hover { background: var(--cream-warm); }
.cal-grid .day:nth-child(7n) { border-right: none; }
.cal-grid .day.muted { color: rgba(10,14,39,0.25); background: rgba(245,240,229,0.5); }
.cal-grid .day.today .num {
  background: var(--orange);
  color: var(--cream);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cal-grid .day .num { font-weight: 600; color: var(--text); }
.cal-grid .day .ev {
  margin-top: 6px;
  background: rgba(255, 95, 31, 0.1);
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-grid .day .ev.cyan {
  background: rgba(0, 212, 255, 0.1);
  color: #008cb3;
}
.cal-grid .day .ev.live {
  background: var(--orange);
  color: var(--cream);
}

/* ============ DELIVERABLES ============ */
.deliv-table {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.deliv-head, .deliv-row {
  display: grid;
  grid-template-columns: 40px 2fr 1fr 1fr 140px;
  gap: 16px;
  padding: 16px 20px;
  align-items: center;
  font-size: 13px;
}
.deliv-head {
  background: var(--cream-warm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.deliv-row { border-bottom: 1px solid var(--line); }
.deliv-row:last-child { border-bottom: none; }
.deliv-row .num { color: var(--orange); font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; }
.deliv-row .name { font-weight: 500; }
.deliv-row .name .small { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; font-weight: 400; }
.deliv-row .due { color: var(--text); }
.status-pill {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
}
.status-pill.todo { background: var(--cream-warm); color: var(--muted); border: 1px solid var(--line-strong); }
.status-pill.progress { background: rgba(0, 212, 255, 0.1); color: #008cb3; }
.status-pill.review { background: rgba(255, 95, 31, 0.1); color: var(--orange); }
.status-pill.done { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.deliv-row .upload-btn {
  background: var(--navy);
  color: var(--cream);
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.deliv-row .upload-btn:hover { background: var(--navy-soft); }
.deliv-row .upload-btn.done { background: var(--green); }

/* ============ QCM ============ */
.qcm-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.qcm-card .qhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.qcm-card .qhead h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
}
.qcm-card .qhead .progress-text { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.qcm-card .question { font-size: 17px; color: var(--text); margin-bottom: 20px; line-height: 1.4; }
.qcm-options { display: flex; flex-direction: column; gap: 10px; }
.qcm-option {
  padding: 14px 20px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.qcm-option:hover { border-color: var(--orange); background: rgba(255,95,31,0.04); }
.qcm-option .marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.qcm-option.selected { border-color: var(--orange); background: rgba(255,95,31,0.06); }
.qcm-option.selected .marker { border-color: var(--orange); background: var(--orange); color: var(--cream); }
.qcm-option.correct { border-color: var(--green); background: rgba(22,163,74,0.06); }
.qcm-option.correct .marker { border-color: var(--green); background: var(--green); color: var(--cream); }
.qcm-option.wrong { border-color: var(--red); background: rgba(220,38,38,0.06); }
.qcm-option.wrong .marker { border-color: var(--red); background: var(--red); color: var(--cream); }
.qcm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.qcm-foot .next-btn {
  background: var(--orange);
  color: var(--cream);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.qcm-result {
  margin-top: 12px;
  padding: 14px 18px;
  background: var(--cream-warm);
  border-left: 2px solid var(--orange);
  font-size: 13px;
  display: none;
}
.qcm-result.show { display: block; }

/* ============ RESOURCES ============ */
.resource-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.resource {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
  transition: border-color 0.15s ease;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.resource:hover { border-color: var(--orange); }
.resource .ic {
  width: 44px;
  height: 44px;
  background: var(--cream-warm);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text);
}
.resource .ic svg { width: 22px; height: 22px; }
.resource .body { flex: 1; min-width: 0; }
.resource h5 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.resource .ext { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.resource .arrow { color: var(--orange); font-size: 18px; }

/* ============ PROFILE ============ */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.profile-photo-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 600;
  margin: 0 auto 20px;
  overflow: hidden;
  position: relative;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-card .name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 4px;
}
.profile-photo-card .role {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 16px;
}
.upload-photo {
  background: var(--cream-warm);
  border: 1px dashed var(--line-strong);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  display: inline-block;
  font-weight: 500;
}
.upload-photo:hover { border-color: var(--orange); color: var(--orange); }
.profile-photo-card input[type=file] { display: none; }

.profile-form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.profile-form-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.profile-form-card .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.profile-form-card .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.profile-form-card label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-form-card input, .profile-form-card textarea, .profile-form-card select {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--cream);
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  width: 100%;
}
.profile-form-card input:focus, .profile-form-card textarea:focus, .profile-form-card select:focus {
  outline: none; border-color: var(--orange);
}
.profile-form-card textarea { min-height: 90px; resize: vertical; }
.profile-actions { display: flex; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-actions button {
  background: var(--orange);
  color: var(--cream);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.profile-actions button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 13px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============ PROJECT ============ */
.project-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.project-meta {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.project-meta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--text);
  margin-bottom: 6px;
}
.project-meta .tagline { color: var(--muted); font-size: 14px; margin-bottom: 20px; font-style: italic; }
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project-stats .stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  color: var(--orange);
  line-height: 1;
}
.project-stats .stat .lab { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.kanban {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.kanban h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 20px;
}
.kanban-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.kanban-col {
  background: var(--cream-warm);
  border-radius: 6px;
  padding: 14px;
  min-height: 240px;
}
.kanban-col h4 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.kanban-col h4 .ct {
  background: var(--cream);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  color: var(--text);
}
.kanban-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 12.5px;
  cursor: grab;
  border-left: 3px solid var(--orange);
}
.kanban-card.cyan { border-left-color: var(--cyan); }
.kanban-card.green { border-left-color: var(--green); }
.kanban-card .meta { font-size: 10.5px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; }

/* ============ MOBILE ============ */
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .kanban-cols { grid-template-columns: 1fr; }
  .resource-list { grid-template-columns: 1fr; }
  .deliv-head, .deliv-row { grid-template-columns: 30px 1.5fr 1fr 100px 110px; gap: 8px; padding: 12px; font-size: 12px; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 200;
  }
  .sidebar.open { left: 0; }
  .topbar { padding: 0 20px; }
  .view { padding: 24px 20px 60px; }
  .kpi-row { grid-template-columns: 1fr; }
  .course-grid, .tools-grid { grid-template-columns: 1fr; }
  .menu-btn { display: flex !important; }
  .deliv-head { display: none; }
  .deliv-row { grid-template-columns: 1fr; gap: 6px; }
}
.menu-btn { display: none; }

/* ============================================================
   v2 — Premium topbar, dropdowns, animated KPIs, login bg
   ============================================================ */

/* Animated background orbs (dashboard + login) */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.bg-orbs .orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,95,31,0.35) 0%, transparent 70%);
  top: -180px; right: -120px;
  animation: orbFloat 22s ease-in-out infinite;
}
.bg-orbs .orb-2 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0,212,255,0.25) 0%, transparent 70%);
  bottom: -120px; left: 10%;
  animation: orbFloat 28s ease-in-out infinite reverse;
}
.bg-orbs .orb-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(10,14,39,0.18) 0%, transparent 70%);
  top: 40%; right: 30%;
  animation: orbFloat 34s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.06); }
  66%      { transform: translate(-30px, 40px) scale(0.96); }
}
.main { position: relative; }
.main > .topbar { position: sticky; top: 0; z-index: 50; }
.main > .view { position: relative; z-index: 1; }

/* Topbar refinement */
.topbar { gap: 18px; }
.topbar .actions { gap: 10px; }
.topbar .icon-btn {
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.topbar .icon-btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.topbar .icon-btn.has-dot .dot { background: var(--orange); }
.topbar .icon-btn.has-dot .dot.dot-cyan { background: #5865F2; }

/* User pill — avatar + animated name reveal on hover */
.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
  cursor: pointer;
  position: relative;
}
.user-pill:hover {
  background: var(--cream-warm);
  border-color: var(--line);
}
.user-pill .user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-left: -10px;
}
.user-pill:hover .user-meta,
.user-pill:focus-within .user-meta {
  max-width: 240px;
  opacity: 1;
  margin-left: 0;
}
.user-pill .user-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.user-pill .user-cohort {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.user-pill .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  background: linear-gradient(135deg, var(--orange) 0%, #FF8E3C 100%);
  color: var(--cream);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(255,95,31,0.3), 0 0 0 1px rgba(10,14,39,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.user-pill:hover .user-avatar { transform: scale(1.04); box-shadow: 0 6px 18px rgba(255,95,31,0.4); }
.user-pill .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-pill .user-online {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Dropdowns (notifications & messages) */
.dropdown-wrap { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(10,14,39,0.14), 0 4px 14px rgba(10,14,39,0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 60;
  overflow: hidden;
}
.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}
.dropdown-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dropdown-head .title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.dropdown-head .sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.discord-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88,101,242,0.1);
  color: #5865F2;
  font-weight: 600;
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.dropdown-tabs {
  display: inline-flex;
  background: var(--cream-warm);
  padding: 3px;
  border-radius: 999px;
  align-self: flex-start;
}
.dropdown-tabs .tab {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-tabs .tab.active {
  background: var(--cream);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(10,14,39,0.08);
}
.dropdown-list {
  max-height: 420px;
  overflow-y: auto;
}
.dropdown-list::-webkit-scrollbar { width: 6px; }
.dropdown-list::-webkit-scrollbar-thumb { background: rgba(10,14,39,0.14); border-radius: 3px; }
.dropdown-foot {
  display: block;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}
.dropdown-foot:hover { background: var(--cream-warm); }

/* Notification rows */
.notif-row, .msg-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  padding: 14px 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.notif-row:hover, .msg-row:hover { background: var(--cream-warm); }
.notif-row:last-child, .msg-row:last-child { border-bottom: none; }
.notif-row.unread::before, .msg-row.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}
.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}
.notif-icon.deliv { background: rgba(255,95,31,0.12); color: var(--orange); }
.notif-icon.live { background: rgba(0,212,255,0.14); color: #0093c4; }
.notif-icon.success { background: rgba(34,197,94,0.14); color: #16a34a; }
.notif-icon.discord { background: rgba(88,101,242,0.12); color: #5865F2; }
.notif-icon svg { width: 16px; height: 16px; }
.notif-row .body, .msg-row .body { min-width: 0; }
.notif-row .body .text, .msg-row .body .text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.notif-row .body .text strong { font-weight: 700; }
.notif-row .body .when, .msg-row .body .when {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.notif-row .accept-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.notif-row .btn-mini {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  cursor: pointer;
  color: var(--text);
}
.notif-row .btn-mini.primary { background: var(--text); color: var(--cream); border-color: var(--text); }
.notif-row .when-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: var(--cream-warm);
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: center;
}

/* Message rows */
.msg-row .msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  position: relative;
}
.msg-row .msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-row .msg-avatar .pres {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--cream);
}
.msg-row .body .who {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-row .body .who .ch {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.msg-row .body .preview {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.msg-row .when-pill {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* KPI animation */
.kpi-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  position: relative;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(10,14,39,0.08); }
.kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,95,31,0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.kpi-card:hover::after { opacity: 1; }
.kpi-card .progress .fill {
  transform-origin: left;
  animation: progressIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes progressIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.kpi-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-top: 12px;
}
.kpi-spark .bar {
  flex: 1;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(255,95,31,0.25) 100%);
  border-radius: 1px;
  animation: sparkRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: bottom;
}
.kpi-spark.cyan .bar { background: linear-gradient(180deg, var(--cyan) 0%, rgba(0,212,255,0.2) 100%); }
.kpi-spark.green .bar { background: linear-gradient(180deg, #22c55e 0%, rgba(34,197,94,0.2) 100%); }
.kpi-spark.navy .bar { background: linear-gradient(180deg, var(--navy) 0%, rgba(10,14,39,0.2) 100%); }
@keyframes sparkRise {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* Counter — number reveal */
.count-up { display: inline-block; }

/* Dashboard view-head — subtle entrance */
.view-head h1 em { position: relative; }
.view-head h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: rgba(255,95,31,0.15);
  z-index: -1;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn 0.9s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes underlineIn { to { transform: scaleX(1); } }

/* ============ AUTH (premium) ============ */
.auth-body { position: relative; }
.auth-shell { position: relative; z-index: 1; }
.auth-visual::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}
.auth-visual {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,95,31,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(0,212,255,0.14) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.auth-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 247, 240, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 247, 240, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
}
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: orbFloat 20s ease-in-out infinite;
  opacity: 0.7;
}
.auth-orb.a {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,95,31,0.45), transparent 70%);
  top: -100px; right: -100px;
}
.auth-orb.b {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,212,255,0.32), transparent 70%);
  bottom: -120px; left: -80px;
  animation-direction: reverse;
}

.auth-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-particles .p {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 95, 31, 0.55);
  box-shadow: 0 0 8px rgba(255,95,31,0.6);
  animation: particleRise 14s linear infinite;
}
.auth-particles .p:nth-child(odd) { background: rgba(0,212,255,0.5); box-shadow: 0 0 8px rgba(0,212,255,0.5); }
@keyframes particleRise {
  from { transform: translateY(110vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

.auth-marquee {
  position: relative;
  margin-top: 36px;
  padding: 14px 0;
  border-top: 1px solid rgba(250,247,240,0.08);
  border-bottom: 1px solid rgba(250,247,240,0.08);
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.45);
  font-weight: 600;
}
.auth-marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee-app 35s linear infinite;
}
.auth-marquee-track span::after {
  content: '◆';
  margin-left: 60px;
  color: var(--orange);
  font-size: 8px;
}
@keyframes marquee-app {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.auth-form {
  position: relative;
  background: rgba(250, 247, 240, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 36px 40px;
  border-radius: 14px;
  border: 1px solid rgba(10,14,39,0.05);
  box-shadow: 0 30px 80px rgba(10,14,39,0.08);
}
.auth-form-wrap {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,95,31,0.07) 0%, transparent 60%),
    var(--cream);
}
.auth-cohort-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,95,31,0.08);
  color: var(--orange);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.auth-cohort-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  animation: pulseDot 2s ease-in-out infinite;
}

/* Refined login button */
.btn-primary[type="submit"], .btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

/* Better input focus ring */
.form-block input:focus, .form-block select:focus, .form-block textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,95,31,0.12);
}

/* Compact responsive for new topbar */
@media (max-width: 800px) {
  .user-pill .user-meta { display: none; }
  .dropdown { width: 320px; }
}

/* ============ Retractable sidebar + simplified foot ============ */
.app-shell { transition: grid-template-columns 0.32s cubic-bezier(0.22,1,0.36,1); }
.app-shell.sidebar-collapsed { grid-template-columns: 72px 1fr; }
.sidebar { transition: width 0.32s cubic-bezier(0.22,1,0.36,1); overflow: hidden; }
.app-shell.sidebar-collapsed .sidebar { width: 72px; }

.sidebar-brand { position: relative; }
.sidebar-collapse {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(250,247,240,0.18);
  background: rgba(250,247,240,0.04);
  color: rgba(250,247,240,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease, transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.sidebar-collapse:hover { background: rgba(250,247,240,0.1); color: var(--cream); }
.app-shell.sidebar-collapsed .sidebar-collapse { transform: translateY(-50%) rotate(180deg); }

/* Hide labels when collapsed */
.app-shell.sidebar-collapsed .sidebar-brand .cohort-badge { display: none; }
.app-shell.sidebar-collapsed .sidebar-brand > span:first-child { font-size: 26px; }
.app-shell.sidebar-collapsed .sidebar-nav .group-label { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.app-shell.sidebar-collapsed .sidebar-nav button {
  justify-content: center;
  padding: 12px 0;
  font-size: 0;
}
.app-shell.sidebar-collapsed .sidebar-nav button .icon-sm { font-size: 0; }
.app-shell.sidebar-collapsed .sidebar-nav button .icon-sm svg { width: 18px; height: 18px; }
.app-shell.sidebar-collapsed .sidebar-nav button .badge-num {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 9px;
  margin-left: 0;
}
.app-shell.sidebar-collapsed .sidebar-nav button { position: relative; }

/* Tooltip-style label on hover when collapsed */
.app-shell.sidebar-collapsed .sidebar-nav button[data-view]::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 200;
  letter-spacing: 0.04em;
}
.app-shell.sidebar-collapsed .sidebar-nav button[data-view]:hover::after { opacity: 1; }

/* New foot logout button */
.sidebar-foot-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 16px;
  padding: 12px 14px;
  border: 1px solid rgba(250,247,240,0.12);
  background: rgba(250,247,240,0.04);
  color: rgba(250,247,240,0.85);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  font-family: inherit;
}
.sidebar-foot-btn:hover {
  background: rgba(255,95,31,0.12);
  border-color: rgba(255,95,31,0.4);
  color: var(--orange);
}
.sidebar-foot-btn .ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-foot-btn .lbl { white-space: nowrap; transition: opacity 0.18s ease; }
.app-shell.sidebar-collapsed .sidebar-foot-btn {
  justify-content: center;
  padding: 12px 0;
  margin-left: 12px;
  margin-right: 12px;
}
.app-shell.sidebar-collapsed .sidebar-foot-btn .lbl { display: none; }

/* ============================================================
   UI/UX Pro Max — Founders App refinement layer
   Audit-driven enhancements: a11y, single-toggle, motion,
   micro-typography, focus rings, performance.
   ============================================================ */

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--orange);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---- Focus rings everywhere (a11y CRITICAL) ---- */
*:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible,
.form-submit:focus-visible {
  outline-color: var(--cyan);
}

/* ---- Reduced motion (a11y CRITICAL) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-orbs { display: none !important; }
  .auth-marquee, .auth-marquee-track { animation: none !important; transform: none !important; }
}

/* ---- Micro-typography ---- */
body {
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
}
.view-head h1, .form-block h2, .auth-quote p, .display-italic {
  font-feature-settings: 'kern' 1, 'liga' 1, 'dlig' 1;
  text-wrap: balance;
}

/* ---- Image performance ---- */
img { max-width: 100%; height: auto; }
.course-thumb img,
.profile-avatar img { content-visibility: auto; }

/* ---- Touch targets + tactility ---- */
button, .icon-btn, .pill, .upload-btn, .sidebar-nav button, .filter-row .pill {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary:active, .form-submit:active { transform: translateY(0px) scale(0.98); }
.icon-btn:active { transform: scale(0.94); }

/* ---- Active nav state polish (aria-current support) ---- */
.sidebar-nav button[aria-current="page"] {
  background: rgba(255, 95, 31, 0.12);
  color: var(--orange);
}
.sidebar-nav button[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}
.sidebar-nav button { position: relative; }

/* ============================================================
   Single sidebar toggle button (replaces sidebar-collapse +
   redundant menu-btn). Works on desktop AND mobile.
   ============================================================ */
.sidebar-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-toggle:hover {
  background: var(--cream-warm);
  border-color: var(--text);
}
.sidebar-toggle:active { transform: scale(0.94); }
.sidebar-toggle .ico-open,
.sidebar-toggle .ico-close {
  position: absolute;
  transition: opacity 0.18s ease, transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.sidebar-toggle .ico-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}
/* Desktop: collapsed state shows close-style icon (chevron-right effect via rotation) */
.app-shell.sidebar-collapsed .sidebar-toggle .ico-open { opacity: 0; transform: rotate(90deg) scale(0.7); }
.app-shell.sidebar-collapsed .sidebar-toggle .ico-close { opacity: 1; transform: rotate(0) scale(1); }

/* Mobile: when sidebar is open as drawer, show close icon */
@media (max-width: 800px) {
  .sidebar.open ~ .main .sidebar-toggle .ico-open { opacity: 0; transform: rotate(-90deg) scale(0.7); }
  .sidebar.open ~ .main .sidebar-toggle .ico-close { opacity: 1; transform: rotate(0) scale(1); }
  /* Backdrop when sidebar drawer is open */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    cursor: pointer;
  }
  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
  }
}

.crumb-trail {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: inline-block;
}
.crumb-trail strong { color: var(--text); font-weight: 600; }
@media (max-width: 480px) {
  .crumb-trail { font-size: 12px; }
  .crumb-trail strong:not(:last-child) { display: none; }
}

/* Hide old menu-btn references defensively */
.menu-btn { display: none !important; }

/* ============ PREPWORK (Phase 7) ============ */
.prep-progress-bar {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 28px;
}
.prep-progress-track {
  flex: 1; height: 8px; border-radius: 999px;
  background: rgba(250, 247, 240, 0.08);
  overflow: hidden;
}
.prep-progress-fill {
  height: 100%; background: var(--orange);
  transition: width 0.3s ease;
}
.prep-progress-text {
  font-size: 12px; color: rgba(250, 247, 240, 0.7);
  font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap;
}
.prep-days {
  display: flex; flex-direction: column; gap: 12px;
}
.prep-empty, .prep-error {
  padding: 32px; text-align: center;
  color: rgba(250, 247, 240, 0.5);
  font-size: 14px;
  border: 1px dashed rgba(250, 247, 240, 0.1);
  border-radius: 12px;
}
.prep-error { color: #ff6b6b; }
.prep-day {
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: rgba(250, 247, 240, 0.02);
  overflow: hidden;
}
.prep-day-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.prep-day-head:hover { background: rgba(250, 247, 240, 0.03); }
.prep-day.open .prep-day-head { border-bottom: 1px solid var(--line-light); }
.prep-day-title {
  display: flex; align-items: center; gap: 14px;
}
.prep-day-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 95, 31, 0.15);
  color: var(--orange);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.prep-day-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--cream);
}
.prep-day-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
  color: rgba(250, 247, 240, 0.55);
}
.prep-day-meta .check {
  color: var(--orange);
  font-weight: 700;
}
.prep-day-arrow {
  transition: transform 0.2s ease;
  opacity: 0.5;
}
.prep-day.open .prep-day-arrow { transform: rotate(90deg); opacity: 1; }
.prep-day-body {
  display: none;
  padding: 8px 20px 20px;
}
.prep-day.open .prep-day-body { display: block; }
.prep-resource {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  margin-top: 12px;
  background: rgba(10, 14, 39, 0.5);
}
.prep-resource.done { border-color: rgba(255, 95, 31, 0.3); }
.prep-resource-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
}
.prep-resource-info { flex: 1; min-width: 0; }
.prep-resource-title {
  font-weight: 600;
  color: var(--cream);
  font-size: 14px;
  margin-bottom: 4px;
}
.prep-resource-desc {
  color: rgba(250, 247, 240, 0.6);
  font-size: 13px;
  line-height: 1.5;
}
.prep-resource-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.prep-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(250, 247, 240, 0.06);
  color: rgba(250, 247, 240, 0.65);
  padding: 3px 8px;
  border-radius: 999px;
}
.prep-tag.type { color: var(--orange); background: rgba(255, 95, 31, 0.12); }
.prep-resource-cta {
  display: flex; align-items: center; gap: 8px;
}
.prep-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line-light);
  background: transparent;
  color: var(--cream);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.prep-btn:hover { background: rgba(250, 247, 240, 0.04); }
.prep-btn.primary { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.prep-btn.primary:hover { background: var(--orange-soft, var(--orange)); filter: brightness(1.05); }
.prep-btn.done { background: rgba(255, 95, 31, 0.15); color: var(--orange); border-color: rgba(255, 95, 31, 0.3); }
.prep-btn.done:hover { background: rgba(255, 95, 31, 0.2); }
.prep-resource-form {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
}
.prep-resource.editing .prep-resource-form { display: flex; }
.prep-resource-form label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 240, 0.55);
  font-weight: 600;
}
.prep-resource-form input[type="file"],
.prep-resource-form textarea {
  background: rgba(250, 247, 240, 0.04);
  border: 1px solid var(--line-light);
  color: var(--cream);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}
.prep-resource-form textarea { min-height: 60px; resize: vertical; }
.prep-resource-form .row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.prep-resource .proof-meta {
  font-size: 11px;
  color: rgba(250, 247, 240, 0.55);
  margin-top: 4px;
}
.prep-resource .proof-meta a { color: var(--orange); text-decoration: underline; }
