/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --blue-900: #0D2347;
  --blue-700: #1652A0;
  --blue-500: #2979C4;
  --blue-200: #B8D0EE;
  --blue-50:  #EEF4FB;
  --orange:   #F5821F;
  --orange-light: #FEF0E3;
  --green:    #1E9E5C;
  --green-light: #E4F7EE;
  --red:      #D93025;
  --red-light: #FDECEA;
  --yellow:   #E8A800;
  --yellow-light: #FFF8E1;
  --bg:       #F0F4F9;
  --surface:  #FFFFFF;
  --border:   #D0DCE8;
  --text:     #1A2E4A;
  --muted:    #6B7A9B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:    0 4px 12px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.07);
  --radius:   10px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, button { font-size: inherit; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: none;
  font-weight: 600; font-size: 0.875rem; transition: all .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-500); }
.btn-secondary { background: var(--blue-50); color: var(--blue-700); border: 1.5px solid var(--blue-200); }
.btn-secondary:hover { background: var(--blue-200); }
.btn-ghost     { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-success   { background: var(--green); color: #fff; }
.btn-success:hover { opacity: .88; }
.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; padding: 11px 16px; }

/* ── Logo ───────────────────────────────────────────────────────────────────── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 28px; width: auto; display: block; }
.logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.logo-sub { font-weight: 400; color: var(--muted); margin-left: 2px; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
label { display: flex; flex-direction: column; gap: 5px; }
label span { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
input[type="text"] {
  padding: 10px 13px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); outline: none; width: 100%;
  transition: border-color .15s;
}
input[type="text"]:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(41,121,196,.15); }

/* ════════════════════════════════════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.home-page { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner {
  max-width: 900px; margin: 0 auto; height: 60px;
  display: flex; align-items: center;
}

.home-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 3rem 1.5rem; gap: 2.5rem;
}

/* ── Header auth ────────────────────────────────────────────────────────────── */
.header-inner { justify-content: space-between; }
.header-auth { display: flex; align-items: center; gap: .75rem; }
.header-user { font-size: .875rem; font-weight: 600; color: var(--muted); }

/* ── Auth modal ─────────────────────────────────────────────────────────────── */
.auth-card { max-width: 360px; padding: 0; overflow: hidden; }
.auth-tabs { display: flex; border-bottom: 1.5px solid var(--border); }
.auth-tab {
  flex: 1; padding: .85rem; background: var(--bg); border: none;
  font-size: .875rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.auth-tab.active { background: var(--surface); color: var(--blue-700); box-shadow: inset 0 -2px 0 var(--blue-700); }
.auth-tab:hover:not(.active) { color: var(--text); }
#login-form, #register-form {
  flex-direction: column; gap: .85rem; padding: 1.5rem;
}
.form-error { color: var(--red); font-size: .8rem; background: var(--red-light); padding: 8px 12px; border-radius: 6px; }
.overlay-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none; font-size: 1rem; color: var(--muted); cursor: pointer;
}
.overlay-close:hover { color: var(--text); }
.overlay-card { position: relative; }

/* ── Workspaces ─────────────────────────────────────────────────────────────── */
.workspaces-section { width: 100%; max-width: 760px; }
.workspaces-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.workspaces-header h2 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.workspaces-grid { display: flex; flex-direction: column; gap: .5rem; }

.workspace-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; padding: .75rem 1rem; transition: border-color .12s;
}
.workspace-card:hover { border-color: var(--blue-200); }
.workspace-logo { width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.workspace-logo img { width: 100%; height: 100%; object-fit: contain; }
.workspace-logo-placeholder { font-size: 1rem; font-weight: 800; color: var(--blue-700); }
.workspace-info { flex: 1; min-width: 0; }
.workspace-name { font-size: .875rem; font-weight: 700; }
.workspace-meta { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.workspace-delete { color: var(--red); border-color: transparent; }
.workspace-delete:hover { background: var(--red-light); border-color: var(--red); }
.workspaces-empty { font-size: .85rem; color: var(--muted); padding: .75rem 1rem; background: var(--bg); border-radius: 8px; border: 1.5px dashed var(--border); }
.jira-connected-badge { font-size: .72rem; font-weight: 700; color: var(--green); background: var(--green-light); padding: 1px 7px; border-radius: 4px; }

.setup-badge.badge-active { background: var(--green-light); color: var(--green); }

.home-hero { text-align: center; }
.home-hero h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; color: var(--blue-900); }
.home-hero p { color: var(--muted); margin-top: .75rem; font-size: 1.05rem; }

.home-cards {
  display: flex; align-items: flex-start; gap: 1rem;
  width: 100%; max-width: 760px;
}
.home-card {
  flex: 1; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}
.home-card h2 { font-size: 1.15rem; font-weight: 700; }
.home-card p { color: var(--muted); font-size: .875rem; }
.home-card form { display: flex; flex-direction: column; gap: .85rem; margin-top: .25rem; }
.home-card-icon { width: 48px; height: 48px; background: var(--blue-50); border-radius: 12px; display: flex; align-items: center; justify-content: center; }

.home-divider {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0; color: var(--muted); font-size: .85rem; font-weight: 600; gap: 8px;
  min-width: 40px;
}
.home-divider::before, .home-divider::after {
  content: ''; flex: 1; width: 1px; background: var(--border);
}

.home-error { color: var(--red); font-size: .875rem; text-align: center; background: var(--red-light); padding: 10px 16px; border-radius: 8px; }

/* ── Setup sections (Jira + logo) ──────────────────────────────────────────── */
.setup-section { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }

.setup-toggle {
  width: 100%; display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; background: var(--bg); border: none;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  cursor: pointer; text-align: left; transition: background .12s;
}
.setup-toggle:hover { background: var(--blue-50); color: var(--text); }
.setup-toggle.open { background: var(--blue-50); color: var(--blue-700); }
.toggle-chevron { margin-left: auto; transition: transform .2s; flex-shrink: 0; }
.setup-toggle.open .toggle-chevron { transform: rotate(180deg); }
.setup-badge { font-size: .65rem; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: var(--border); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.setup-body {
  padding: .85rem; border-top: 1.5px solid var(--border);
  flex-direction: column; gap: .75rem; background: var(--surface);
}
.setup-hint { font-size: .78rem; color: var(--muted); }

.jira-fields-row { display: flex; gap: .6rem; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 38px; }
.show-token-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 2px;
}
.show-token-btn:hover { color: var(--text); }
.help-link { font-size: .7rem; color: var(--blue-500); font-weight: 400; float: right; margin-top: 1px; }

/* Logo upload */
.logo-upload-area {
  border: 1.5px dashed var(--border); border-radius: 8px;
  cursor: pointer; transition: border-color .15s; overflow: hidden; position: relative;
}
.logo-upload-area:hover { border-color: var(--blue-500); }
.logo-upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 1.25rem; color: var(--muted); text-align: center;
}
.logo-upload-placeholder span { font-size: .8rem; font-weight: 600; }
.logo-upload-placeholder small { font-size: .72rem; }
#logo-preview { width: 100%; max-height: 80px; object-fit: contain; padding: .5rem; display: block; }
.logo-remove {
  display: block; width: 100%; padding: 5px; background: var(--red-light);
  color: var(--red); border: none; cursor: pointer; font-size: .75rem; font-weight: 600;
}
.logo-remove:hover { background: var(--red); color: #fff; }

/* ════════════════════════════════════════════════════════════════════════════
   SESSION PAGE
   ════════════════════════════════════════════════════════════════════════════ */
.session-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* Header */
.session-header {
  flex-shrink: 0; height: 56px; background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; gap: 1rem;
}
.session-header-left  { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.session-header-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.session-title-wrap { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.session-title { font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-code-badge {
  font-family: monospace; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  background: var(--blue-50); color: var(--blue-700); border: 1.5px solid var(--blue-200);
  padding: 2px 8px; border-radius: 6px; flex-shrink: 0;
}
.participant-count {
  display: flex; align-items: center; gap: 5px;
  font-size: .875rem; font-weight: 600; color: var(--muted);
}

/* Layout grid */
.session-layout {
  flex: 1; display: grid;
  grid-template-columns: 270px 1fr 240px;
  overflow: hidden;
}

/* ── Panel shared ────────────────────────────────────────────────────────── */
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem .7rem; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-header h2 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

/* ── Stories panel ───────────────────────────────────────────────────────── */
.stories-panel {
  display: flex; flex-direction: column; border-right: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
}
.stories-list { flex: 1; overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; gap: 2px; }

.stories-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 3rem 1rem; text-align: center; color: var(--muted);
}
.stories-empty p { font-size: .875rem; }
.stories-empty span { font-size: .8rem; }

.story-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .12s;
  position: relative;
}
.story-item:hover { background: var(--blue-50); border-color: var(--blue-200); }
.story-item.active { background: var(--blue-50); border-color: var(--blue-700); }
.story-item.estimated { opacity: .65; }
.story-item.estimated::after {
  content: attr(data-points) ' pts';
  position: absolute; right: 8px; top: 8px;
  font-size: .7rem; font-weight: 700; background: var(--green-light);
  color: var(--green); padding: 1px 6px; border-radius: 4px;
}

.story-item-key { font-size: .7rem; font-weight: 700; color: var(--blue-500); font-family: monospace; }
.story-item-summary { font-size: .8rem; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-item-status { font-size: .7rem; color: var(--muted); }
.story-item-summary mark, .story-item-key mark {
  background: #FFF176; color: inherit; border-radius: 2px; padding: 0 1px;
}

/* ── Search box ──────────────────────────────────────────────────────────── */
.stories-search {
  padding: .5rem .75rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.stories-search input {
  width: 100%; padding: 6px 10px 6px 30px; font-size: .8rem;
  border: 1.5px solid var(--border); border-radius: 7px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='7' cy='7' r='4.5' stroke='%236B7A9B' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5l2.5 2.5' stroke='%236B7A9B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 9px center;
  outline: none; color: var(--text);
}
.stories-search input:focus { border-color: var(--blue-500); background-color: var(--surface); }

/* ── Voting area ─────────────────────────────────────────────────────────── */
.voting-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem; overflow-y: auto; gap: 1.5rem;
}

.voting-waiting {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center; color: var(--muted); max-width: 340px;
}
.voting-waiting h3 { font-size: 1.15rem; color: var(--text); }
.voting-waiting p { font-size: .875rem; }

.voting-active {
  width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 1.25rem;
}

/* Current story card */
.current-story-card {
  background: var(--surface); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.current-story-meta {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap;
}
.story-type-icon { width: 16px; height: 16px; }
.story-key { font-family: monospace; font-size: .85rem; font-weight: 700; color: var(--blue-500); }
.story-type-badge {
  font-size: .7rem; font-weight: 600; background: var(--bg); color: var(--muted);
  padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border);
}
.story-jira-link {
  display: flex; align-items: center; gap: 3px; margin-left: auto;
  font-size: .75rem; color: var(--blue-500); font-weight: 600;
}
.story-jira-link:hover { color: var(--blue-700); }
.current-story-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: .4rem; }
.current-story-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Cards row */
.cards-section { display: flex; flex-direction: column; gap: .6rem; }
.cards-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; text-align: center; }

.cards-row {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
}

.poker-card {
  width: 62px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 1.4rem; font-weight: 800;
  border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; transition: all .15s; user-select: none;
  box-shadow: var(--shadow-sm);
  color: var(--text);
}
.poker-card:hover { border-color: var(--blue-500); background: var(--blue-50); transform: translateY(-4px); box-shadow: var(--shadow); }
.poker-card.selected {
  border-color: var(--blue-700); background: var(--blue-700); color: #fff;
  transform: translateY(-6px); box-shadow: 0 8px 20px rgba(22,82,160,.35);
}
.poker-card.disabled { opacity: .45; cursor: default; pointer-events: none; }
.poker-card.question { font-size: 1.8rem; }

/* Dog card */
.poker-card.dog-card { padding: 0; overflow: hidden; }
.dog-card-img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.poker-card.dog-card.selected .dog-card-img { opacity: .85; }

/* Timer */
.timer-display {
  display: flex; align-items: center; gap: .5rem;
  background: var(--blue-50); border: 1.5px solid var(--blue-200);
  border-radius: 10px; padding: 8px 14px;
  font-size: 1rem; font-weight: 800; color: var(--blue-700);
  transition: all .3s;
}
.timer-display.timer-urgent {
  background: var(--red-light); border-color: var(--red);
  color: var(--red); animation: pulse .6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* Revealed results */
.revealed-results { display: flex; flex-direction: column; gap: 1rem; }

.results-summary {
  display: flex; gap: .75rem; flex-wrap: wrap;
}
.stat-pill {
  display: flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 10px; padding: .5rem .9rem; min-width: 70px;
}
.stat-pill .stat-val { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.stat-pill .stat-lbl { font-size: .65rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.stat-pill.consensus { border-color: var(--green); background: var(--green-light); }
.stat-pill.consensus .stat-val { color: var(--green); }

.results-votes { display: flex; flex-wrap: wrap; gap: .5rem; }
.vote-chip {
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 4px 10px 4px 6px; font-size: .8rem;
}
.vote-chip .chip-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-700); color: #fff; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vote-chip .chip-name { font-weight: 500; }
.vote-chip .chip-val { font-weight: 800; color: var(--blue-700); margin-left: 2px; }
.vote-chip.outlier { border-color: var(--orange); background: var(--orange-light); }
.vote-chip.outlier .chip-val { color: var(--orange); }

.estimate-pick { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.estimate-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.estimate-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.estimate-chip {
  padding: 5px 13px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer; font-weight: 700; font-size: .85rem;
  transition: all .12s;
}
.estimate-chip:hover { border-color: var(--blue-500); background: var(--blue-50); }
.estimate-chip.picked { border-color: var(--blue-700); background: var(--blue-700); color: #fff; }
.estimate-selected { font-size: .85rem; color: var(--muted); }

/* Host controls */
.host-controls { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.vote-progress { font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ── Participants panel ───────────────────────────────────────────────────── */
.participants-panel {
  display: flex; flex-direction: column; border-left: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
}
.participants-list { flex: 1; overflow-y: auto; padding: .5rem; display: flex; flex-direction: column; gap: 2px; }

.participant-item {
  display: flex; align-items: center; gap: .65rem;
  padding: 8px 10px; border-radius: 8px;
}
.p-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-700); color: #fff; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}
.p-avatar.host-avatar { background: var(--orange); }
.p-info { flex: 1; min-width: 0; }
.p-name { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.host-crown { font-size: .75rem; }
.p-status { font-size: .72rem; color: var(--muted); }
.p-status.voted { color: var(--green); font-weight: 600; }
.p-status.waiting { color: var(--muted); }
.p-vote-badge {
  width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800;
}
.p-vote-badge.hidden { background: var(--bg); border: 1.5px solid var(--border); color: var(--border); }
.p-vote-badge.shown { background: var(--blue-50); border: 1.5px solid var(--blue-200); color: var(--blue-700); }
.p-vote-badge.not-voted { background: var(--bg); border: 1.5px dashed var(--border); }

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(13,35,71,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; backdrop-filter: blur(4px);
}
.overlay-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1rem;
}
.overlay-card h2 { font-size: 1.25rem; font-weight: 800; }
.overlay-card form { display: flex; flex-direction: column; gap: .85rem; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--blue-900); color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: .875rem; font-weight: 600; pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .25s;
  opacity: 0; z-index: 200; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Responsive tweaks ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .session-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .stories-panel { border-right: none; border-bottom: 1px solid var(--border); max-height: 180px; }
  .participants-panel { border-left: none; border-top: 1px solid var(--border); max-height: 160px; }
}

@media (max-width: 600px) {
  .home-cards { flex-direction: column; }
  .home-divider { flex-direction: row; min-width: unset; width: 100%; }
  .home-divider::before, .home-divider::after { flex: 1; width: auto; height: 1px; }
  .home-hero h1 { font-size: 1.8rem; }
}
