:root {
  --ink: #1a1f2b;
  --ink-soft: #4a5262;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e6e2d8;
  --accent: #1f6f5c;
  --accent-soft: #e6f2ee;
  --gold: #b8862f;
  --gold-soft: #f7ecd8;
  --danger: #a33b3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 10, 0.04), 0 6px 20px rgba(20, 20, 10, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", "Charter", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--ink);
  color: #f4f1ea;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar .brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  color: #fff;
}
.sidebar .brand small { display: block; font-size: 0.7rem; color: #b9c2bd; font-family: monospace; font-weight: 400; }

.sidebar a {
  color: #d8dcd6;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: -apple-system, sans-serif;
  font-size: 0.92rem;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar .spacer { flex: 1; }
.sidebar .user-chip { font-family: -apple-system, sans-serif; font-size: 0.8rem; color: #9fa89f; padding: 10px 12px; }

.main { flex: 1; padding: 36px 44px; max-width: 1100px; }

h1, h2, h3 { font-family: -apple-system, "SF Pro Display", sans-serif; letter-spacing: -0.01em; }
h1 { font-size: 1.7rem; margin: 0 0 6px; }
h2 { font-size: 1.2rem; margin: 28px 0 12px; }
.subtitle { color: var(--ink-soft); font-family: -apple-system, sans-serif; font-size: 0.95rem; margin-bottom: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.filter-bar select { width: auto; min-width: 140px; }
.opp-snippet { font-family: -apple-system, sans-serif; font-size: 0.8rem; color: var(--ink-soft); margin: 6px 0 0; max-width: 46ch; }

/* --- Opportunities: swimlanes of cards, grouped by award-amount bucket
   (or AI-curated for the "Recommended" lane) instead of one long table --
   each lane scrolls horizontally so a bucket with 70 items doesn't blow out
   the page's vertical rhythm the way a single flat list would. */
.swimlane-section { margin-bottom: 32px; }
.swimlane-heading { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.swimlane-heading h2 { margin: 0; }
.swimlane-count { font-family: -apple-system, sans-serif; font-size: 0.8rem; color: var(--ink-soft); }
.swimlane-row {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; margin: 0 -4px;
  scroll-snap-type: x proximity;
}
.opp-card {
  scroll-snap-align: start; flex: 0 0 260px; display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); color: var(--ink);
}
.opp-card.recommended { border-color: var(--gold); border-width: 1.5px; }
.opp-card .opp-title {
  font-family: -apple-system, sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.3;
  color: var(--ink); text-decoration: none;
}
.opp-card .opp-title:hover { color: var(--accent); text-decoration: underline; }
.opp-card .opp-org { font-family: -apple-system, sans-serif; font-size: 0.78rem; color: var(--ink-soft); }
.opp-card .opp-snippet { margin: 0; max-width: none; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.opp-card .opp-reason { font-family: -apple-system, sans-serif; font-size: 0.78rem; color: #6b4a12; background: var(--gold-soft); border-radius: 8px; padding: 7px 10px; margin: 0; }
.opp-card .opp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: -apple-system, sans-serif; font-size: 0.8rem; }
.opp-card .opp-amount { color: var(--gold); font-weight: 700; }
.opp-card .opp-actions { margin-top: auto; padding-top: 4px; }
.opp-card .opp-actions form { margin: 0; }

label { display: block; font-family: -apple-system, sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-family: -apple-system, sans-serif; font-size: 0.95rem; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field { margin-bottom: 16px; }
.hint { font-family: -apple-system, sans-serif; font-size: 0.78rem; color: #8a8f80; margin-top: 4px; }

.btn {
  display: inline-block; font-family: -apple-system, sans-serif; font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 9px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; background: var(--accent); color: #fff;
}
.btn:hover { opacity: 0.92; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.gold { background: var(--gold); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 6px 12px; font-size: 0.8rem; }

.pill {
  display: inline-block; font-family: -apple-system, sans-serif; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.pill.muted { background: #eee; color: #777; }

.kanban { display: grid; grid-template-columns: repeat(6, minmax(160px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban-col { background: #f1efe8; border-radius: 12px; padding: 10px; min-height: 120px; }
.kanban-col h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 4px 6px 10px; font-family: -apple-system, sans-serif; }
.kanban-card { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; margin-bottom: 8px; font-family: -apple-system, sans-serif; font-size: 0.85rem; text-decoration: none; color: var(--ink); display: block; }
.kanban-card:hover { border-color: var(--accent); }
.kanban-card .amt { color: var(--gold); font-weight: 700; }
.kanban-card .deadline { color: var(--ink-soft); font-size: 0.75rem; }

.banner { border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; font-family: -apple-system, sans-serif; font-size: 0.9rem; }
.banner.info { background: var(--accent-soft); color: #14453a; }
.banner.warn { background: var(--gold-soft); color: #6b4a12; }
.banner.error { background: #fbe9e9; color: var(--danger); }

table { width: 100%; border-collapse: collapse; font-family: -apple-system, sans-serif; font-size: 0.88rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-soft); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

.checklist { list-style: none; padding: 0; font-family: -apple-system, sans-serif; font-size: 0.9rem; }
.checklist li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.checklist li:last-child { border-bottom: none; }

/* Full-width rotating carousel, not a 3-way split -- splitting into thirds
   meant each photo only had 1/3 the width to "cover" the same fixed height,
   which crops brutally hard on any normal-to-wide desktop monitor (the wider
   the screen, the more extreme and "cut off"-looking the crop gets, worst on
   the portrait graduation photo). Giving each slide the full hero width
   fixes that directly, on top of just being a nicer, more deliberate carousel. */
.auth-hero {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  height: 340px;
  overflow: hidden;
  background: var(--ink);
}
.auth-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.auth-hero-slide.is-active { opacity: 1; }
.auth-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
}
/* Each photo's actual subject sits at a different vertical spot in the
   frame (people/building lower-middle, ceremony crowd near the bottom under
   a lot of draped ceiling) -- tuned per-image so `cover` crops sky/ceiling
   instead of the part of the photo that's actually the point of showing it. */
.auth-hero-slide.slide-campus img { object-position: center 42%; }
.auth-hero-slide.slide-students img { object-position: center 68%; }
.auth-hero-slide.slide-graduation img { object-position: center 82%; }

.auth-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.auth-hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.auth-hero-dot.is-active { background: #fff; transform: scale(1.3); }
.auth-hero-dot:hover { background: rgba(255, 255, 255, 0.8); }

.auth-wrap { max-width: 400px; margin: 46px auto 90px; }
.auth-wrap .card { padding: 32px; }
.auth-wrap h1 { text-align: center; }
.muted-link { font-family: -apple-system, sans-serif; font-size: 0.85rem; text-align: center; margin-top: 14px; }
.muted-link a { color: var(--accent); }

@media (max-width: 640px) {
  .auth-hero { height: 220px; }
  .auth-wrap { margin-top: 30px; }
}

/* --- Resume upload --- */
.resume-upload-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.resume-upload-row .hint { margin: 0; }

/* --- Profile interview chat --- */
.interview-card { padding: 0; overflow: hidden; }
.chat-log { max-height: 55vh; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; flex-direction: column; max-width: 75%; }
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.assistant { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  font-family: -apple-system, sans-serif; font-size: 0.92rem; line-height: 1.45;
  padding: 12px 16px; border-radius: 16px;
}
.chat-msg.assistant .chat-bubble { background: var(--accent-soft); color: #14453a; border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-saved-hint {
  font-family: -apple-system, sans-serif; font-size: 0.7rem; color: var(--ink-soft);
  margin-top: 4px; padding: 0 4px;
}
.chat-status {
  font-family: -apple-system, sans-serif; font-size: 0.78rem; color: var(--ink-soft);
  padding: 0 24px; min-height: 18px;
}
.chat-input-row { display: flex; gap: 10px; padding: 16px 24px 24px; align-items: flex-end; }
#chatInput {
  flex: 1; margin: 0; resize: none; overflow-y: auto;
  min-height: 42px; max-height: 240px; line-height: 1.4;
}
.mic-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex-shrink: 0; color: var(--ink);
}
.mic-btn.recording { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1.4s infinite; }
.mic-btn:disabled { opacity: 0.4; cursor: not-allowed; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.interview-footer { display: flex; align-items: center; padding: 0 24px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
