/* Corporate lobby dashboard — conversations home only */
body:not(.in-meeting) {
  --lobby-surface: #1e2224;
  --lobby-border: #3a403d;
  --lobby-muted: #9fab9c;
  --lobby-elev-shadow: 0 1px 0 #ffffff06 inset, 0 12px 36px #00000028;
}

html[data-theme="light"] body:not(.in-meeting) {
  --lobby-surface: #ffffff;
  --lobby-border: #e2e8de;
  --lobby-muted: #6f7a67;
  --lobby-elev-shadow: 0 1px 0 #ffffff inset, 0 10px 32px #2a38280c;
}

body:not(.in-meeting) .meet-home.lobby-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body:not(.in-meeting) .lobby-body {
  max-width: 1200px;
  padding: 20px 0 24px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lobby-page-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lobby-muted);
}

.lobby-command-copy {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

.lobby-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lobby-muted);
}

.lobby-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lobby-lead {
  margin: 0;
  font-size: 14px;
  color: var(--lobby-muted);
  max-width: 36ch;
}

.lobby-actions {
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
}

.lobby-chips {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lobby-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--lobby-border);
  background: var(--lobby-surface);
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.lobby-chip:hover {
  border-color: #737d76;
  filter: brightness(1.05);
}

html[data-theme="light"] .lobby-chip:hover {
  border-color: #b8c4b0;
}

.invitation-dormant {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed var(--lobby-border);
  font-size: 12px;
  color: var(--lobby-muted);
}

.invitation-dormant[hidden] {
  display: none !important;
}

.invitation-dormant .dot {
  width: 6px;
  height: 6px;
  opacity: 0.5;
}

.lobby-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 400px);
  gap: 20px;
  align-items: start;
  flex: 1;
  min-height: calc(100dvh - 220px);
}

.lobby-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100dvh - 220px);
  max-height: calc(100dvh - 220px);
}

.lobby-rail {
  align-self: start;
}

.lobby-calendar-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.lobby-cal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.lobby-month-title {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
}

.lobby-cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--lobby-border);
  border-radius: 10px;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}

.lobby-cal-today,
.lobby-cal-all {
  border: 1px solid var(--lobby-border);
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lobby-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lobby-muted);
  text-align: center;
  flex-shrink: 0;
}

.lobby-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.lobby-month-day {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 48px;
  max-height: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #252a27;
  color: inherit;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 6px 4px 4px;
  text-align: left;
  overflow: hidden;
}

html[data-theme="light"] .lobby-month-day {
  background: #f3f6f1;
}

.lobby-month-day.outside {
  opacity: 0.38;
}

.lobby-month-day.today:not(.selected):not([aria-pressed="true"]) {
  box-shadow: inset 0 0 0 1.5px #9aaf7a;
}

.lobby-month-day.selected,
.lobby-month-day[aria-pressed="true"] {
  background: #38462d;
  color: #e8f4c4;
  border-color: transparent;
  box-shadow: inset 0 0 0 2px #6b7a62;
}

html[data-theme="light"] .lobby-month-day.selected,
html[data-theme="light"] .lobby-month-day[aria-pressed="true"] {
  background: #e4eadf;
  color: #2f4a1f;
  border-color: transparent;
  box-shadow: inset 0 0 0 2px #a8c48a;
}

.lobby-month-day.today.selected,
.lobby-month-day.today[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #9aaf7a;
}

body:not(.in-meeting) .lobby-month-day:active {
  transform: none;
}

body:not(.in-meeting) .lobby-month-day:focus-visible {
  outline-offset: 0;
}

.lobby-month-num {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1px;
}

.lobby-month-events {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  pointer-events: none;
}

.lobby-month-chip {
  display: block;
  padding: 2px 4px;
  border-radius: 4px;
  background: #38462d;
  color: #dce8c4;
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] .lobby-month-chip {
  background: #dce8c8;
  color: #2f4a1f;
}

.lobby-month-day.selected .lobby-month-chip,
.lobby-month-day[aria-pressed="true"] .lobby-month-chip {
  background: #4a5a3c;
  color: #f0f6e4;
}

html[data-theme="light"] .lobby-month-day.selected .lobby-month-chip,
html[data-theme="light"] .lobby-month-day[aria-pressed="true"] .lobby-month-chip {
  background: #c8d8b4;
  color: #253d1e;
}

.lobby-month-more {
  font-size: 7px;
  font-weight: 650;
  color: var(--lobby-muted);
  padding: 0 1px;
  line-height: 1.1;
}

.lobby-day-agenda {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(62vh, 520px);
}

.lobby-agenda-head {
  flex-shrink: 0;
  margin-bottom: 10px;
}

.lobby-agenda-scroll {
  flex: 1;
  min-height: 120px;
  max-height: min(48vh, 400px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 0;
}

.lobby-agenda-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lobby-agenda-card .lobby-empty {
  min-height: auto !important;
  padding: 10px 6px !important;
}

.lobby-agenda-card .lobby-empty-title {
  font-size: 13px;
  margin: 8px 0 4px;
}

.lobby-agenda-card .lobby-empty p,
.lobby-agenda-card .lobby-empty-tips {
  font-size: 11px;
  line-height: 1.45;
}

.lobby-agenda-card .lobby-empty-tips {
  margin: 8px 0 10px;
}

.lobby-agenda-card .lobby-empty-actions .primary {
  font-size: 11px;
  padding: 10px 14px;
}

.lobby-agenda-card .lobby-empty-visual {
  display: none;
}

.lobby-agenda-card .conversation-row {
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 10px;
}

.lobby-agenda-card .conversation-row h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0 0;
  line-height: 1.3;
}

.lobby-agenda-card .conversation-row p {
  font-size: 10px;
  line-height: 1.35;
  margin: 0;
}

.lobby-agenda-card .conversation-row .dialog-actions {
  gap: 6px;
}

.lobby-agenda-card .conversation-row .dialog-actions .primary,
.lobby-agenda-card .conversation-row .dialog-actions .secondary {
  font-size: 10px;
  padding: 6px 10px;
  min-width: auto;
  border-radius: 8px;
}

.lobby-agenda-card .lobby-card-title {
  font-size: 14px;
}

.lobby-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lobby-side-actions .home-actions {
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
  margin: 0 !important;
  grid-template-columns: unset !important;
}

.lobby-side-actions .primary {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  justify-content: center;
}

.lobby-side-actions .quick-join {
  width: 100%;
  max-width: none !important;
  min-height: 52px;
  flex-direction: row !important;
  border-radius: 14px !important;
  padding: 6px 8px 6px 16px !important;
}

.lobby-side-actions .quick-join button {
  border-radius: 10px !important;
}

.lobby-scheduler-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--lobby-border);
  background: #2b302d;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  transition: filter 0.16s ease, border-color 0.16s ease;
}

html[data-theme="light"] .lobby-scheduler-btn {
  background: #eef2ea;
  color: #2f4a1f;
}

.lobby-scheduler-btn:hover {
  filter: brightness(1.06);
  border-color: #9aaf7a;
}

.lobby-scheduler-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  color: var(--lobby-muted);
}

.lobby-month-chip.kind-meeting {
  background: #3a4230;
  color: #e8f4c0;
}

.lobby-month-chip.kind-task {
  background: #2f3d2a;
  color: #d2e4c4;
}

.lobby-month-chip.kind-activity_review {
  background: #2a3238;
  color: #cfe0ea;
}

.lobby-month-chip.kind-report {
  background: #3a3228;
  color: #f0dcc0;
}

.lobby-month-chip.kind-event {
  background: #3a4230;
  color: #e8f4c0;
}

.lobby-workspace-row.kind-task { border-left: 3px solid #6d8f5a; }
.lobby-workspace-row.kind-activity_review { border-left: 3px solid #6a8fad; }
.lobby-workspace-row.kind-report { border-left: 3px solid #c4a06a; }
.lobby-workspace-row.kind-event { border-left: 3px solid #9aaf7a; }

.lobby-workspace-row .dialog-actions a.secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  text-decoration: none;
}

.lobby-next-week-range {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--lobby-muted);
}

.lobby-next-week-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lobby-next-week-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--lobby-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lobby-next-week-list li:last-child {
  border-bottom: 0;
}

.lobby-next-week-list strong {
  font-size: 13px;
  font-weight: 650;
}

.lobby-next-week-list span {
  font-size: 12px;
  color: var(--lobby-muted);
}

.lobby-muted-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lobby-muted);
}

.lobby-card {
  border: 1px solid var(--lobby-border);
  border-radius: 16px;
  background: var(--lobby-surface);
  box-shadow: var(--lobby-elev-shadow);
  padding: 16px 18px;
}

.lobby-card + .lobby-card {
  margin-top: 14px;
}

.lobby-rail .lobby-card + .lobby-card {
  margin-top: 14px;
}

.lobby-section-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lobby-muted);
}

.lobby-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lobby-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lobby-border);
}

.lobby-agenda .calendar-row {
  margin: 0;
  flex: 1;
  min-width: 200px;
  justify-content: flex-end;
}

.lobby-agenda .calendar-heading {
  display: none;
}

.lobby-card-body {
  min-height: 120px;
}

.lobby-empty {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  min-height: 200px !important;
  padding: 8px 4px 12px !important;
  background: transparent !important;
  text-align: left !important;
}

.lobby-empty-visual {
  width: 100%;
  padding: 12px 0 8px;
  opacity: 0.55;
}

.lobby-empty-skeleton {
  display: grid;
  gap: 10px;
}

.lobby-empty-skeleton span {
  display: block;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(90deg, #2a302c 0%, #323832 50%, #2a302c 100%);
  background-size: 200% 100%;
  animation: lobby-shimmer 2.4s ease-in-out infinite;
}

html[data-theme="light"] .lobby-empty-skeleton span {
  background: linear-gradient(90deg, #eef2ea 0%, #e4eadf 50%, #eef2ea 100%);
  background-size: 200% 100%;
}

@keyframes lobby-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.lobby-empty-title {
  margin: 12px 0 6px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.lobby-empty-tips {
  margin: 12px 0 16px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--lobby-muted);
}

.lobby-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lobby-next-up {
  font-size: 13px;
  line-height: 1.55;
}

.lobby-next-up strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.lobby-next-up time {
  font-size: 12px;
  color: var(--lobby-muted);
}

.lobby-next-up p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--lobby-muted);
}

.lobby-next-up .lobby-next-actions {
  margin-top: 12px;
}

.lobby-org-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.lobby-org-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--lobby-border);
  color: inherit;
}

.lobby-org-list li:last-child {
  border-bottom: 0;
}

.lobby-org-list li.is-active {
  color: #c5db7a;
  font-weight: 600;
}

html[data-theme="light"] .lobby-org-list li.is-active {
  color: #42622a;
}

.lobby-org-list .lobby-muted-line {
  font-size: 12px;
  color: var(--lobby-muted);
  border: 0;
  padding: 4px 0;
}

.lobby-shortcuts-grid {
  display: grid;
  gap: 6px;
}

.lobby-shortcuts-grid a,
.lobby-shortcuts-grid button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #252a27;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

html[data-theme="light"] .lobby-shortcuts-grid a,
html[data-theme="light"] .lobby-shortcuts-grid button {
  background: #f3f6f1;
}

.lobby-shortcuts-grid a:hover,
.lobby-shortcuts-grid button:hover {
  filter: brightness(1.08);
}

.lobby-stat-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.lobby-stat {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lobby-border);
  text-align: center;
}

.lobby-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.lobby-stat span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lobby-muted);
}

.lobby-trust {
  margin: 14px 4px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--lobby-muted);
  text-align: center;
}

body:not(.in-meeting) .lobby-agenda .conversation-list {
  margin-top: 4px;
}

body:not(.in-meeting) .lobby-body .together-intro {
  display: none;
}

body:not(.in-meeting) .lobby-body .sched-entry-row {
  display: none;
}

@media (max-width: 960px) {
  .lobby-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lobby-main {
    height: auto;
    max-height: none;
  }

  .lobby-calendar-card {
    min-height: min(58vh, 520px);
  }

  .lobby-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .lobby-rail .lobby-card + .lobby-card {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  body:not(.in-meeting) .lobby-body {
    padding: 20px 0 36px;
  }

  .lobby-month-day {
    min-height: 40px;
    font-size: 11px;
  }

  .lobby-month-chip {
    font-size: 7px;
  }

  .lobby-calendar-card {
    min-height: min(52vh, 480px);
  }

  .lobby-agenda-scroll {
    max-height: min(40vh, 320px);
  }
}