/* ================================================================
   NEXUS · AI Hackathon · Control Center
   Light theme — client brand palette (deep green accent).
   ================================================================ */

:root {
  /* Background */
  --bg-deep:  #E3F4EA;
  --bg-mid:   #EEF9F2;
  --bg-page:  #F6FCF8;

  /* Glass panels */
  --glass:         rgba(255, 255, 255, 0.72);
  --glass-strong:  rgba(255, 255, 255, 0.92);
  --glass-border:  rgba(27, 115, 64, 0.10);
  --glass-border-strong: rgba(27, 115, 64, 0.22);

  /* Text */
  --text:       #0B2E18;
  --text-dim:   #1F6B3A;
  --text-faint: #4D9965;

  /* Brand / accent */
  --accent:      #1B7340;
  --accent-soft: #2DA652;
  --accent-glow: 0 0 24px rgba(27, 115, 64, 0.22);

  /* Status */
  --danger:  #DC2626;
  --success: #059669;
  --warn:    #D97706;

  /* Shape */
  --radius:    20px;
  --radius-sm: 12px;

  /* Shadows */
  --shadow-lg: 0 20px 60px rgba(5, 40, 20, 0.12);
  --shadow-md: 0 8px 28px rgba(5, 40, 20, 0.09);

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
button, input, textarea, select { font-family: inherit; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wallpaper: use project asset if available, fall back to brand gradient */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("assets/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--bg-deep);
}
.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(45, 166, 82, 0.12), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(27, 115, 64, 0.07), transparent 50%),
    linear-gradient(160deg, #D4EFE0 0%, #EAF7F0 40%, #F6FCF8 100%);
}

.screen { min-height: 100vh; width: 100%; }
.hidden { display: none !important; }

/* ===================== LOGIN SCREEN ===================== */

#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 80px;
}
.login-inner {
  width: min(1100px, 100%);
  text-align: center;
  animation: fadeUp 0.6s ease both;
}
.login-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(27, 115, 64, 0.18));
  margin-bottom: 16px;
}
.login-kicker {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 10px;
}
.login-title {
  font-size: clamp(48px, 8vw, 88px);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(160deg, #0B2E18 0%, #1B7340 60%, #2DA652 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-sub {
  color: var(--text-dim);
  margin: 0 0 8px;
  font-size: 16px;
}
.login-instruction {
  color: var(--text-faint);
  margin: 0 0 40px;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.team-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
.team-tiles-compact {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-tile {
  text-align: left;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
  color: inherit;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.team-tile:hover {
  border-color: rgba(27, 115, 64, 0.35);
  box-shadow: 0 12px 36px rgba(27, 115, 64, 0.14);
  transform: translateY(-2px);
}
.team-tile .tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.team-tile .tile-num {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 700;
}
.team-tile .tile-count {
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: lowercase;
}
.team-tile h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}
.team-tile .tile-tagline {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
}
.team-tile .tile-members {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(27, 115, 64, 0.08);
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.team-tile .tile-members li {
  padding-left: 14px;
  position: relative;
}
.team-tile .tile-members li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.45;
}

/* ===================== DASHBOARD ===================== */

#dashboard {
  display: flex;
  flex-direction: column;
  padding: 0 0 120px;
}

.menu-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(135deg, #0F4D28 0%, #1B7340 60%, #22894D 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 2px 16px rgba(10, 40, 20, 0.28);
}
.menu-left { display: flex; align-items: center; gap: 10px; }
.menu-logo         { width: auto; flex-shrink: 0; }
.menu-logo-lb      { height: 26px; }
.menu-brand {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 16px;
}
.menu-right { display: flex; align-items: center; gap: 14px; }

.menu-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.50); }
.menu-clock {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  min-width: 64px;
  text-align: right;
}

.team-badge {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(27, 115, 64, 0.08);
  border: 1px solid rgba(27, 115, 64, 0.2);
  border-radius: 999px;
}

.dashboard-grid {
  display: flex;
  gap: 18px;
  padding: 22px;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
  align-items: stretch;
}
.column { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.column-side  { flex: 0 0 32%; max-width: 420px; }
.column-main  { flex: 1; min-width: 0; }

.widget {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.widget-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.widget-subtitle {
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.45;
  margin: 0 0 16px;
  padding-left: 15px;
}
.widget-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(27, 115, 64, 0.5);
}
.dot-challenge { background: #EA6C2E; box-shadow: 0 0 8px rgba(234, 108, 46, 0.55); }
.dot-checklist { background: #059669; box-shadow: 0 0 8px rgba(5, 150, 105, 0.55); }
.dot-prompts   { background: #7C3AED; box-shadow: 0 0 8px rgba(124, 58, 237, 0.55); }
.dot-guidelines{ background: #D97706; box-shadow: 0 0 8px rgba(217, 119, 6, 0.55); }
.dot-pipeline  { background: #0891B2; box-shadow: 0 0 8px rgba(8, 145, 178, 0.55); }
.dot-guide     { background: #1B7340; box-shadow: 0 0 8px rgba(27, 115, 64, 0.55); }
.dot-notes     { background: #CA8A04; box-shadow: 0 0 8px rgba(202, 138, 4, 0.55); }
.dot-toolbox   { background: #059669; box-shadow: 0 0 8px rgba(5, 150, 105, 0.55); }

/* ---- QR / Voting widget ---- */
.dot-qr { background: #7C3AED; box-shadow: 0 0 8px rgba(124, 58, 237, 0.45); }
.qr-badge { font-size: 10px; padding: 1px 7px; border-radius: 10px; margin-left: 6px; font-weight: 600; letter-spacing: 0.04em; }
.qr-badge.qr-locked   { background: rgba(220, 38, 38, 0.1);  color: #DC2626; }
.qr-badge.qr-unlocked { background: rgba(5, 150, 105, 0.12); color: #059669; }
.qr-wrap { position: relative; display: flex; justify-content: center; padding: 12px 0 6px; }
.qr-svg-wrap { width: 148px; height: 148px; border-radius: 8px; overflow: hidden; transition: filter 0.7s ease; padding: 6px; background: white; box-sizing: border-box; box-shadow: 0 2px 12px rgba(5, 40, 20, 0.1); }
.qr-svg-wrap.locked { filter: blur(7px); }
.qr-svg-wrap svg, .qr-svg-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-veil {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: opacity 0.7s ease;
}
.qr-veil.hidden { opacity: 0; pointer-events: none; }
.qr-veil-icon { font-size: 26px; line-height: 1; }
.qr-veil-text { font-size: 11px; color: var(--text-faint); text-align: center; }

@media (max-width: 1180px) {
  .dashboard-grid { flex-direction: column; }
  .column-side, .column-main { flex: 1 1 auto; max-width: none; width: 100%; }
}

/* ----- Countdown ----- */
.widget-countdown {
  background: linear-gradient(135deg, rgba(27, 115, 64, 0.10) 0%, rgba(255, 255, 255, 0.9) 60%);
  border-color: rgba(27, 115, 64, 0.18);
  position: relative;
  overflow: hidden;
}
.widget-countdown::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(45, 166, 82, 0.14), transparent 60%);
  pointer-events: none;
}
.countdown-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(32px, 3.2vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 6px 0 14px;
  color: var(--accent);
  position: relative;
  transition: color 0.4s ease;
}
.countdown-time.is-ending  { color: var(--warn); }
.countdown-time.is-warning { color: #E05A1A; }
.countdown-time.is-urgent  { color: var(--danger); }
.countdown-time.is-done    { color: var(--success); font-size: clamp(28px, 2.4vw, 40px); }
.countdown-time.is-pre     { color: var(--accent-soft); }
.countdown-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 115, 64, 0.1);
  overflow: hidden;
}
.countdown-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  box-shadow: 0 0 12px rgba(27, 115, 64, 0.35);
  border-radius: 999px;
}
.countdown-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ----- Challenge ----- */
.challenge-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.team-number {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.challenge-panel {
  border: 1.5px solid var(--glass-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
}
.challenge-tabs-bar {
  display: flex;
  align-items: stretch;
  background: rgba(27, 115, 64, 0.05);
  border-bottom: 2px solid rgba(27, 115, 64, 0.15);
  padding: 0 4px;
  gap: 2px;
  flex-wrap: wrap;
}
.challenge-tabs {
  display: flex;
  flex-wrap: wrap;
}
.challenge-tab {
  padding: 13px 16px;
  border: none;
  border-top: 3px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.15s, border-top-color 0.15s, background 0.15s;
  font-family: var(--font);
  letter-spacing: 0.01em;
}
.challenge-tab:hover {
  color: var(--text-dim);
  background: rgba(27, 115, 64, 0.07);
}
.challenge-tab.active {
  color: var(--accent);
  border-top-color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}
.challenge-content {
  padding: 24px 26px 28px;
  background: rgba(255, 255, 255, 0.45);
}
.challenge-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
.challenge-body {
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 15px;
  margin: 0 0 18px;
  max-width: 780px;
}
.challenge-body .ch-context {
  margin: 0 0 16px;
  color: var(--text-dim);
  line-height: 1.7;
}
.challenge-body .ch-section { margin: 0 0 16px; }
.challenge-body .ch-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.challenge-body ul {
  margin: 0;
  padding-left: 18px;
}
.challenge-body ul li {
  margin-bottom: 6px;
  line-height: 1.55;
}
.challenge-body .ch-mission {
  background: rgba(27, 115, 64, 0.07);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
  margin-top: 4px;
}
.challenge-body .ch-mission strong { color: var(--accent); }
.challenge-members { margin-top: auto; }
.members-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.members-list { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 115, 64, 0.06);
  border: 1px solid rgba(27, 115, 64, 0.14);
  font-size: 12.5px;
  color: var(--text);
}

/* ----- Teams overview ----- */
.teams-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.team-overview-tile {
  text-align: left;
  background: rgba(27, 115, 64, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.team-overview-tile .tile-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.team-overview-tile .tile-num {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--accent);
  font-weight: 700;
}
.team-overview-tile .tile-count {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.team-overview-tile h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.team-overview-tile .tile-tagline {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
}
.team-overview-tile .tile-members {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(27, 115, 64, 0.08);
  color: var(--text-dim);
  font-size: 11.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.team-overview-tile .tile-members li {
  padding-left: 12px;
  position: relative;
}
.team-overview-tile .tile-members li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.4;
}
@media (max-width: 640px) {
  .teams-overview-grid { grid-template-columns: 1fr; }
}

/* ----- Checklist ----- */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(27, 115, 64, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.checklist li:hover { background: rgba(27, 115, 64, 0.07); border-color: rgba(27, 115, 64, 0.22); }
.checklist li.done { background: rgba(5, 150, 105, 0.07); border-color: rgba(5, 150, 105, 0.25); }
.checklist li.done .checklist-title { text-decoration: line-through; color: var(--text-faint); }
.check-box {
  width: 18px; height: 18px;
  border: 1.5px solid rgba(27, 115, 64, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.checklist li.done .check-box { background: var(--success); border-color: var(--success); }
.check-box svg { opacity: 0; transition: opacity 0.15s; }
.checklist li.done .check-box svg { opacity: 1; }
.checklist-body { display: flex; flex-direction: column; gap: 2px; }
.checklist-title { font-weight: 600; font-size: 14px; color: var(--text); }
.checklist-sub   { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; }
.checklist-section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 0 2px;
  border: none !important;
  background: none !important;
  cursor: default;
  pointer-events: none;
}
.checklist-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 12px; color: var(--text-faint);
}
.ghost-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ghost-btn:hover { background: rgba(27, 115, 64, 0.07); color: var(--text); }

/* ----- Prompts ----- */
.prompt-inventory {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.prompt-item {
  background: rgba(27, 115, 64, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prompt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.prompt-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prompt-tool { display: none; }
.prompt-tool-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.prompt-name { font-weight: 600; font-size: 14px; color: var(--text); }
.prompt-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.icon-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(27, 115, 64, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(27, 115, 64, 0.12); color: var(--text); }
.icon-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(27, 115, 64, 0.08);
  border: 1px solid rgba(27, 115, 64, 0.22);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { background: rgba(27, 115, 64, 0.15); color: #0B2E18; border-color: rgba(27, 115, 64, 0.4); }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { background: var(--success); color: #fff; border-color: var(--success); }
.prompt-options { display: flex; flex-direction: column; }
.prompt-option {
  padding: 12px 0 0;
  margin-top: 10px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prompt-option:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.prompt-option-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prompt-option-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.prompt-body {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.65;
  white-space: pre-wrap;
}
.prompt-placeholder {
  background: rgba(217, 119, 6, 0.12);
  color: #B45309;
  font-weight: 600;
  border-radius: 3px;
  padding: 0 3px;
}

/* ----- Guidelines ----- */
.widget-guidelines { gap: 10px; }
.guideline-block {
  background: rgba(27, 115, 64, 0.03);
  border: 1px solid rgba(27, 115, 64, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.guideline-block + .guideline-block { margin-top: 10px; }
.guideline-title {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}
.guideline-block p, .guideline-block ul {
  margin: 0;
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.55;
}
.guideline-block ul { padding-left: 18px; }
.guideline-block li + li { margin-top: 3px; }
.guideline-block strong { color: var(--text); }

/* ----- Toolbox ----- */
.toolbox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.tool-card {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(27, 115, 64, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: default;
  color: inherit;
  text-align: left;
  align-items: flex-start;
}
.tool-card-clickable { cursor: pointer; transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.tool-card-clickable:hover { background: rgba(27, 115, 64, 0.06); border-color: rgba(27, 115, 64, 0.25); box-shadow: 0 4px 16px rgba(27, 115, 64, 0.08); }
.tool-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.tool-card-icon svg { width: 22px; height: 22px; }
.tool-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool-card-name { font-size: 14px; font-weight: 600; color: var(--text); }
.tool-card-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.45; }
.tool-tips {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tool-tips li {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.tool-tips li::before { content: "💡"; position: absolute; left: 0; font-size: 11px; }

/* ----- Notes ----- */
.notes-area {
  width: 100%;
  background: rgba(27, 115, 64, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  min-height: 140px;
  flex: 1;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.notes-area:focus { border-color: rgba(27, 115, 64, 0.4); background: rgba(27, 115, 64, 0.05); }
.notes-saved {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--success);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.notes-saved.visible { opacity: 1; }

/* ===================== DOCK ===================== */

.dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 10px 14px 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 115, 64, 0.14);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}
.dock-item {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  font: inherit;
}
.dock-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 14px rgba(5, 40, 20, 0.15);
  transition: transform 0.12s ease;
}
.dock-item:hover .dock-icon  { transform: translateY(-4px); }
.dock-item:active .dock-icon { transform: translateY(-1px); }
.dock-icon svg { width: 26px; height: 26px; }
.dock-label {
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dock-sep {
  width: 1px;
  height: 44px;
  margin: 0 6px;
  background: rgba(27, 115, 64, 0.14);
  align-self: center;
}

/* Tool icon backgrounds — unchanged across projects */
/* ===================== PRISM FIELD GUIDE ===================== */

.prism-guide { display: flex; flex-direction: column; }

.guide-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--glass-border);
}
.guide-step:last-child { border-bottom: none; padding-bottom: 2px; }
.guide-step:first-child { padding-top: 4px; }

.guide-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.guide-body { min-width: 0; }

.guide-title {
  margin: 2px 0 5px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}

.guide-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-dim);
}

/* Literal Prism UI control names */
.guide-text-cont { margin-top: 9px; }

.ui-chip {
  background: rgba(27, 115, 64, 0.10);
  border-radius: 5px;
  padding: 1px 7px;
  font-weight: 600;
  font-size: 12.2px;
  color: var(--accent);
  white-space: nowrap;
}

.guide-gotcha {
  margin-top: 10px;
  padding: 10px 13px;
  border-left: 3px solid var(--warn);
  background: rgba(217, 119, 6, 0.07);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.4px;
  line-height: 1.58;
  color: var(--text-dim);
}
.guide-gotcha .ui-chip {
  background: rgba(217, 119, 6, 0.13);
  color: #9A5A04;
}
.guide-gotcha b { color: #9A5A04; }

@media (max-width: 640px) {
  .guide-step { gap: 11px; }
  .guide-num { width: 23px; height: 23px; font-size: 11px; }
}

.bg-prism       { background: linear-gradient(135deg, #0F4D28 0%, #1B7340 50%, #2DA652 100%); }
.bg-gemini      { background: linear-gradient(135deg, #1a73e8 0%, #8a2be2 50%, #e91e8c 100%); }
.bg-teams       { background: linear-gradient(135deg, #1B7340 0%, #2DA652 100%); }
.bg-timer       { background: linear-gradient(135deg, #ff7847 0%, #ffb547 100%); }

/* ===================== MODALS ===================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 30, 15, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(27, 115, 64, 0.05);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: rgba(27, 115, 64, 0.1); color: var(--text); }
.modal-title { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--text); }
.modal-sub   { margin: 0 0 20px; color: var(--text-dim); font-size: 14px; }
.modal-switch { width: min(960px, 100%); }
.modal-switch .team-tiles-compact { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Pitch timer */
.modal-pitch  { text-align: center; width: min(480px, 100%); }
.modal-teams  { width: min(720px, 100%); }
.pitch-time {
  font-variant-numeric: tabular-nums;
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin: 8px 0 20px;
}
.pitch-time.warn   { color: var(--warn); }
.pitch-time.danger { color: var(--danger); }
.pitch-time.done   { color: var(--success); }

.pitch-controls { display: flex; gap: 10px; justify-content: center; margin-bottom: 18px; }
.pill-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(27, 115, 64, 0.07);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.pill-btn:hover { background: rgba(27, 115, 64, 0.13); }
.pill-btn:active { transform: scale(0.97); }
.pill-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
  border-color: transparent;
}
.pill-primary:hover { filter: brightness(1.08); }

.pitch-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.preset {
  background: rgba(27, 115, 64, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.preset:hover, .preset.active { background: rgba(27, 115, 64, 0.12); color: var(--accent); border-color: rgba(27, 115, 64, 0.3); }

.pitch-custom { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.pitch-custom input {
  width: 56px;
  background: rgba(27, 115, 64, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 5px 8px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  text-align: center;
}
.pitch-custom input:focus { outline: none; border-color: rgba(27, 115, 64, 0.4); }

/* ===================== ANIMATIONS ===================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  .dashboard-grid { padding: 14px; gap: 14px; }
  .widget { padding: 16px; }
  .menu-brand { display: none; }
  .dock { gap: 4px; padding: 8px 8px 6px; bottom: 10px; }
  .dock-icon { width: 40px; height: 40px; }
  .dock-icon svg { width: 22px; height: 22px; }
  .dock-label { font-size: 9.5px; }
}
