/* ==========================================================================
   Guide home — the HOST half of the landing screen (Paper file
   "Daily Call — Guide home", page "Final — a guide's Monday", 2026-10-09).
   A 224px rail + a main pane: toolbar over one column per call kind.
   Students, guests and the dev selector keep landing.css's centred hero;
   everything here hangs off `.landing-screen.is-guide-home`.
   ========================================================================== */

.landing-screen.is-guide-home {
  padding: 0;
  align-items: stretch;
  flex-direction: row;
  overflow: hidden; /* the calls area scrolls, never the screen */
  background: var(--surface-base);
}
.landing-screen.is-guide-home > .landing-content {
  display: none;
}
.landing-screen.is-guide-home > .guide-home-root {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}
.landing-screen.is-guide-home .checkout-card-root {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.landing-screen.is-guide-home .checkout-card-root > * {
  pointer-events: auto;
}

/* --- Rail ---------------------------------------------------------------- */
.gh-rail {
  flex: 0 0 224px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px 20px;
  background: var(--surface-raised);
  border-right: 1px solid var(--border-subtle);
  min-height: 0;
}
/* macOS hides the title bar and insets the traffic lights at (16, 18) over a
   38px drag strip; the brand eyebrow has to start below them, not beside. */
body.platform-darwin .gh-rail {
  padding-top: 54px;
}
/* Update required: the rail dims, but Sign out and the gear stay usable
   (the settings panel is where a stuck update is checked and the logs are
   revealed); only the board-facing controls go inert. */
.gh-rail.is-dimmed > * {
  opacity: 0.35;
}
.gh-rail.is-dimmed .gh-rail-top,
.gh-rail.is-dimmed .gh-slot-private-room {
  pointer-events: none;
}
.gh-rail-top,
.gh-rail-bottom {
  display: flex;
  flex-direction: column;
}
.gh-rail-top {
  overflow-y: auto;
  overflow-x: hidden; /* a vertical scroll only: no stray horizontal bar when squeezed */
  min-height: 0;
}
.gh-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 26px;
}
.gh-brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  color: var(--color-accent-text);
}
.gh-brand-lockup {
  display: flex;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.gh-brand-lockup .accent {
  color: var(--color-accent);
}

.gh-tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}
.gh-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.gh-tab:hover {
  color: var(--text-primary);
  background: rgb(255 255 255 / 4%);
}
.gh-tab[aria-selected="true"] {
  background: var(--surface-overlay);
  color: var(--text-primary);
  font-weight: 600;
}
.gh-tab-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}
.gh-tab[aria-selected="true"] .gh-tab-count {
  color: var(--color-accent-text);
}

.gh-rail-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 0 16px;
}
.gh-kinds-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--text-subtle);
  margin: 0 0 10px 12px;
}
.gh-kind-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.gh-kind-toggle:hover {
  background: rgb(255 255 255 / 4%);
}
.gh-kind-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-kind-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: var(--kind-color);
  color: var(--text-inverse);
  flex: none;
}
.gh-kind-box svg {
  width: 10px;
  height: 10px;
}
.gh-kind-toggle[aria-checked="false"] {
  color: var(--text-subtle);
}
.gh-kind-toggle[aria-checked="false"] .gh-kind-box {
  background: none;
  border: 1.5px solid var(--border-strong);
  color: transparent;
}
.gh-kind-toggle.is-flagged[aria-checked="false"] .gh-kind-box {
  border-color: var(--color-accent);
}
.gh-kind-toggle.is-flagged .gh-kind-count {
  color: var(--color-accent-text);
}
.gh-kind-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subtle);
}
.gh-show-all {
  margin: 8px 12px 0;
  align-self: flex-start;
}

.gh-rail-bottom {
  gap: 12px;
}
.gh-rail-bottom .private-room-toggle {
  align-self: flex-start;
}
.gh-rail-bottom .private-room-panel {
  margin-top: 4px;
}
/* The private-room form, compacted to the rail's 176px column (the
   landing hero's 16px pill button would wrap to three lines and widen the
   rail). */
.gh-rail-bottom .reveal-panel {
  padding: 12px;
  gap: 10px;
  min-width: 0;
}
.gh-rail-bottom .private-room-panel .text-input {
  padding: 8px 10px;
  font-size: 14px;
}
.gh-rail-bottom .private-room-panel .btn {
  padding: 8px 14px;
  font-size: 14px;
}
.gh-rail-bottom .private-room-role {
  gap: 12px;
}
.gh-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gh-identity .launch-identity {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
.gh-identity .switch-timeback-user {
  align-self: flex-start;
  margin: 0;
  font-size: 13px;
}
.gh-corner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.is-guide-home .landing-settings,
.is-guide-home .app-version {
  position: static;
}

/* --- Main pane ------------------------------------------------------------ */
.gh-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 34px 0;
  overflow: hidden;
  position: relative;
}
.gh-main.is-centred {
  justify-content: center;
  align-items: center;
}
.gh-slot-banners.has-joining-card .launch-progress {
  display: none;
}
.gh-main .updated-banner,
.gh-main .landing-error {
  margin: 0 0 14px;
}

.gh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 20px;
  flex: none;
}
.gh-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
}
.gh-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  flex: none;
}
.gh-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}
.gh-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.gh-search input::placeholder {
  color: var(--text-subtle);
}
.gh-live-only {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}
.gh-live-only-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.gh-live-only-knob {
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  position: relative;
}
.gh-live-only-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: left var(--duration-fast) var(--ease-default);
}
.gh-live-only[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: rgba(245, 158, 11, 0.12);
  color: var(--text-primary);
  font-weight: 600;
}
.gh-live-only[aria-pressed="true"] .gh-live-only-knob {
  background: var(--color-accent);
}
.gh-live-only[aria-pressed="true"] .gh-live-only-knob::after {
  left: 14px;
  background: var(--text-inverse);
}
/* Status + refresh travel together: when the toolbar wraps, the pair moves
   to the second line, right-aligned, instead of stranding the refresh
   control on the left. */
.gh-toolbar-end {
  /* Basis 420px: on a wide pane the pair shares line one with the search
     and the pill, and the status wraps inside itself; below that (960×640)
     the pair moves to line two, right-aligned. */
  flex: 1 1 420px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}
.gh-status {
  /* Two stacked mono lines, right-aligned against the refresh button:
     "17 CALLS · 4 LIVE" above, "NEXT Emily's Group Call opens 9:45" (or the
     Show everything / Clear search / See you tomorrow link) beneath.
     Rodrigo, 2026-10-11: the one-line form crowded the toolbar. */
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
}
/* The summary wraps (a long search query must never be clipped). */
.gh-status-text {
  white-space: normal;
  overflow-wrap: anywhere;
}
.gh-status-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
/* On its own line the tail needs no leading dot. */
.gh-status-sep {
  display: none;
}
.gh-status-next-label {
  color: var(--text-subtle);
}
.gh-status-next {
  color: var(--color-accent-text);
}
.gh-status .link-btn {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.gh-refresh {
  /* The boxed 32px refresh button stays; the mono label beside it shows
     only when it has news — amber REFRESHING…, red COULDN'T REFRESH /
     COULDN'T LOAD. In the ordinary fresh state the age lives in the
     button's tooltip (Rodrigo, 2026-10-11: the standing text took too
     much room). */
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-updated {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  white-space: nowrap;
}
.gh-refresh.is-fresh .gh-updated,
.gh-refresh.is-loading .gh-updated {
  display: none;
}
.gh-refresh-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.gh-refresh-btn svg {
  width: 14px;
  height: 14px;
}
.gh-refresh-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-subtle);
}
.gh-refresh.is-refreshing .gh-updated {
  color: var(--color-accent-text);
}
.gh-refresh.is-refreshing .gh-refresh-btn {
  border-color: var(--color-accent);
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-accent-text);
}
.gh-refresh.is-refreshing .gh-refresh-btn svg {
  animation: spin 1s linear infinite;
}
/* A fetch in flight while the control is red: the icon spins, the colour
   stays (the failure is still the news until a fetch succeeds). */
.gh-refresh.is-busy .gh-refresh-btn svg {
  animation: spin 1s linear infinite;
}
.gh-refresh.is-stale .gh-updated,
.gh-refresh.is-never .gh-updated {
  color: var(--color-error-text);
}
.gh-refresh.is-stale .gh-refresh-btn,
.gh-refresh.is-never .gh-refresh-btn {
  border-color: var(--color-error-text);
  background: rgba(248, 113, 113, 0.14);
  color: var(--color-error-text);
}
.gh-refresh.is-stale .gh-refresh-btn:hover,
.gh-refresh.is-never .gh-refresh-btn:hover {
  background: rgba(248, 113, 113, 0.24);
}

.gh-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 36px;
  padding: 8px 14px;
  margin: -6px 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
  font-size: 13px;
  color: var(--text-primary);
  flex: none;
}
.gh-notice::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-error-text);
  flex: none;
}
.gh-notice .link-btn {
  font-weight: 600;
}
.gh-updated-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  min-height: 36px;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(87, 201, 155, 0.45);
  background: rgba(87, 201, 155, 0.09);
  font-size: 13px;
  color: var(--text-primary);
  flex: none;
}
.gh-updated-banner svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}
.gh-updated-banner .link-btn {
  color: var(--text-muted);
}
.gh-updated-banner .link-btn:hover {
  color: var(--text-primary);
}

/* --- Board ---------------------------------------------------------------- */
.gh-board {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 28px;
}
.gh-board.is-joining .gh-column > :not(.is-joining):not(:has(.is-joining)),
.gh-board.is-joining .gh-hidden-card,
.gh-board.is-joining .gh-note {
  opacity: 0.6;
}
.gh-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 16px;
}
.gh-column {
  flex: 0 0 235px;
  width: 235px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gh-column-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 2px solid var(--kind-color);
}
.gh-column-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.gh-column-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent-text);
  white-space: nowrap;
}

/* Cards: your calls. The row contract (.session-row, data-action, data-call-id) lives on the card. */
.gh-card.session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 7px 10px 7px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--duration-fast) var(--ease-default),
    background var(--duration-fast) var(--ease-default);
}
.gh-card::before {
  content: "";
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: var(--color-accent);
  flex: none;
  margin-left: 2px;
  opacity: 0.5;
}
.gh-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}
.gh-card .session-title {
  font-weight: 600;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.gh-card .session-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  white-space: normal;
}
.gh-card[data-state="upcoming"] {
  opacity: 0.7;
  cursor: default;
}
.gh-card[data-state="open"] {
  background: var(--surface-raised);
  border-color: var(--border-strong);
}
.gh-card[data-state="open"]::before,
.gh-card[data-state="live"]::before {
  opacity: 1;
}
.gh-card[data-state="open"] .session-time,
.gh-card[data-state="live"] .session-time {
  color: var(--color-accent-text);
}
.gh-card[data-state="live"] {
  background: var(--surface-raised);
  border-color: var(--color-accent);
}
.gh-card[data-state="live"]:hover,
.gh-card[data-state="open"]:hover {
  border-color: var(--color-accent);
  background: color-mix(
    in srgb,
    var(--surface-raised) 85%,
    var(--color-accent)
  );
}
.gh-join {
  flex: none;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gh-card[data-state="open"] .gh-join {
  border: 1px solid var(--color-accent);
  color: var(--color-accent-text);
}
.gh-card[data-state="live"] .gh-join {
  background: var(--color-accent);
  color: var(--text-inverse);
}
.gh-card.is-joining .gh-join .spinner {
  width: 12px;
  height: 12px;
  border-width: 2px;
}

/* Dense rows: everyone else. Same contract, smaller furniture. */
.gh-others-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  white-space: nowrap;
}
.gh-others-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.gh-row.session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  padding: 6px 4px 6px 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
}
.gh-row.session-row:hover:not(:disabled) {
  background: rgb(255 255 255 / 3%);
  border-color: var(--border-subtle);
}
.gh-row.session-row:disabled {
  opacity: 0.7;
  cursor: default;
}
.gh-row-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  margin-left: 2px;
  background: transparent;
}
.gh-row[data-state="live"] .gh-row-dot {
  background: var(--color-accent);
}
.gh-row .session-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 400;
}
.gh-row .gh-row-with {
  color: var(--text-muted);
}
.gh-row .session-time {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  white-space: nowrap;
  flex: none;
}
.gh-card[data-state="upcoming"] .session-time,
.gh-row[data-state="upcoming"] .session-time {
  color: var(--text-muted);
}
.gh-row[data-state="live"] .session-time {
  color: var(--color-accent-text);
}
.gh-more {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 0 0 19px;
  font-size: 13px;
}
.gh-more .gh-more-tail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
}
.gh-earlier-count {
  padding: 6px 0 0 19px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* Fold lines (your Earlier, Live-only's upcoming, nothing live). */
.gh-fold {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 30px;
  padding: 6px 10px;
  margin-top: 4px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  white-space: normal;
  overflow: visible;
}
.gh-fold > span {
  overflow-wrap: anywhere;
}
.gh-fold svg {
  width: 10px;
  height: 10px;
  color: var(--text-subtle);
  flex: none;
}
.gh-fold-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
  white-space: nowrap;
}
.gh-fold-tag.is-next {
  color: var(--color-accent-text);
}
.gh-kind-note {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
}

/* Notes and cards that span the board. */
.gh-columns + .gh-note {
  margin-top: 20px;
}
.gh-note {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  max-width: 988px;
}
.gh-note-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.gh-note-body {
  font-size: 14px;
  line-height: 18px;
  color: var(--text-muted);
}
.gh-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 4px;
  font-size: 13px;
}
.gh-note-actions .link-btn {
  white-space: nowrap;
}
.gh-note-hint {
  color: var(--text-subtle);
}
.gh-hidden-row .gh-hidden-none {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gh-hidden-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 235px;
  padding: 12px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.gh-hidden-card .gh-fold-tag {
  margin-bottom: 2px;
}
.gh-hidden-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.gh-hidden-row .gh-hidden-mine {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.gh-hidden-titles {
  font-size: 13px;
  color: var(--text-subtle);
  overflow-wrap: anywhere;
}
.gh-cover {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}
.gh-cover .session-row {
  border: none;
  background: none;
  padding: 0;
  min-height: 0;
}

/* Update required: the existing panel, centred in the main pane. */
.gh-main .update-required {
  margin: 0;
}

/* 960×640: the toolbar becomes two lines, columns two per row (235×2 + gap fits 672). */
@media (max-width: 1100px) {
  .gh-main {
    padding: 24px 32px 0;
  }
}
