/* vSpes host and guest pages. Tokens and fonts match the vSpes marketing site. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0f1424;
  --ink-2: #2c3550;
  --slate: #5a6378;
  --line: #e3e7ef;
  --line-strong: #cfd6e4;
  --fog: #f4f6fb;
  --white: #ffffff;
  --blue: #1557c8;
  --blue-deep: #0f44a6;
  --cyan: #09b5e6;
  --aqua: #bff3ff;
  --ok: #14532d;
  --ok-bg: #e8f7ee;
  --err: #8a1c14;
  --err-bg: #fdecea;
  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 20, 36, 0.06), 0 8px 24px rgba(15, 20, 36, 0.06);
  --brand-gradient: linear-gradient(110deg, #1557c8 0%, #1557c8 45%, #09b5e6 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.035em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.muted { color: var(--slate); }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: 600 15px/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--blue-deep); color: #fff; }
.btn i { font-size: 18px; }
.btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-outline { background: #fff; color: var(--blue); border-color: #c9d6ee; }
.btn-outline:hover { background: #f5f8ff; border-color: var(--blue); color: var(--blue-deep); }

.btn-danger { background: #fff; color: #b42318; border-color: #f1c4bf; }
.btn-danger:hover { background: var(--err-bg); color: #b42318; border-color: #e9a59e; }

.btn-on-blue { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-on-blue:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }

.header-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 8px;
}
.header-link:hover { color: var(--aqua); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-inner {
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left { display: flex; align-items: center; gap: 12px; }

.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.top-nav { display: flex; gap: 4px; }
.top-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
}
.top-nav a:hover { color: var(--aqua); }

.top-actions { display: flex; align-items: center; gap: 12px; }

.user-chip { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; }

.avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font: 700 13px/1 var(--display);
}

/* ---------- Host layout: sidebar and content ---------- */

.app {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 14px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.sidebar-close { display: none; }

.side-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 4px 12px 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.side-link i { font-size: 20px; color: var(--slate); }
.side-link:hover { background: #f1f5fd; color: var(--blue); }
.side-link:hover i { color: var(--blue); }
.side-link.is-active {
  background: #eaf1fd;
  color: var(--blue);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--blue);
}
.side-link.is-active i { color: var(--blue); }

.side-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.side-account { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; font-size: 14px; }
.side-account strong { display: block; color: var(--ink); line-height: 1.3; }
.side-account small { color: var(--slate); word-break: break-all; }

.content {
  min-width: 0;
  padding: 32px 36px 56px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.page-head p { color: var(--slate); margin-top: 8px; max-width: 620px; }

.crumb { margin-bottom: 10px; font-size: 14px; }
.crumb a { color: var(--blue); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Cards, forms and alerts ---------- */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card + .card { margin-top: 20px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.narrow-form { max-width: 760px; }

.stack { display: grid; gap: 18px; }

.field { display: grid; gap: 6px; }
.field > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13px; color: var(--slate); }

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 16px var(--body);
}
.input::placeholder { color: #98a1b5; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 87, 200, 0.15); }
.input[readonly] { background: #f6f8fc; color: var(--slate); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.flash {
  border: 1px solid;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 15px;
}
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: #bfe6cc; }
.flash.err { background: var(--err-bg); color: var(--err); border-color: #f5c2bd; }

.invite-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.invite-box .input { flex: 1 1 320px; font-size: 14px; }

.copy-status { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--ok); }

.divider { height: 1px; background: var(--line); margin: 22px 0; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--slate); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list i { color: var(--blue); font-size: 18px; margin-top: 3px; flex: 0 0 auto; }

/* ---------- Meetings table ---------- */

.table-wrap { overflow-x: auto; }

table.meetings { width: 100%; border-collapse: collapse; min-width: 560px; }
table.meetings th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.meetings td {
  padding: 16px 12px;
  border-bottom: 1px solid #eef1f7;
  vertical-align: middle;
  font-size: 15px;
}
table.meetings tr:last-child td { border-bottom: 0; }

.topic { font-weight: 600; color: var(--ink); }

.room {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: #eef2f9;
  color: var(--ink-2);
  font: 13px ui-monospace, Menlo, Consolas, monospace;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.badge-on { background: var(--ok-bg); color: var(--ok); }
.badge-off { background: #eef1f7; color: var(--slate); }

.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions form { margin: 0; }

.empty { text-align: center; padding: 40px 12px; color: var(--slate); }
.empty strong { display: block; color: var(--ink); font: 700 1.15rem/1.2 var(--display); margin-bottom: 6px; }
.empty .btn { margin-top: 18px; }

/* ---------- Guest and sign-in pages (no sidebar) ---------- */

.hero-band {
  background: var(--brand-gradient);
  color: #fff;
  padding: 48px 20px 84px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-band h1 { color: #fff; }
.hero-band p { color: rgba(255, 255, 255, 0.86); margin-top: 12px; font-size: 1.05rem; max-width: 640px; }
.eyebrow { color: var(--aqua) !important; font-weight: 600; font-size: 14px; margin-bottom: 12px !important; }

.guest-grid {
  max-width: 1100px;
  margin: -52px auto 0;
  padding: 0 20px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: start;
}
.guest-grid .card + .card { margin-top: 0; }

.narrow-wrap {
  max-width: 480px;
  margin: -52px auto 0;
  padding: 0 20px 56px;
}

.page { flex: 1; }

/* ---------- Footer (same as the marketing site) ---------- */

.site-footer {
  margin-top: auto;
  background: var(--brand-gradient);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

.footer-logo { height: 40px; width: auto; display: block; }
.footer-tag { margin-top: 18px; }
.footer-contact { margin-top: 22px; font-size: 14px; line-height: 1.7; }

.ndpc {
  display: inline-block;
  margin-top: 24px;
  padding: 6px;
  background: #fff;
  border-radius: 10px;
}
.ndpc img { height: 80px; width: auto; display: block; }
.ndpc:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }

.ndpc-link {
  display: block;
  margin-top: 12px;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.footer-cols h2 {
  font: 600 13px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.footer-bottom-inner p { margin: 0; }

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); }
}

@media (max-width: 1180px) {
  .top-nav { display: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .app { grid-template-columns: minmax(0, 1fr); }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    width: 280px;
    max-width: 86vw;
    z-index: 90;
    padding: 18px 14px 20px;
    box-shadow: 0 0 30px rgba(10, 13, 20, 0.25);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .sidebar.is-open { transform: none; }

  .sidebar-close {
    display: inline-flex;
    align-self: flex-end;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-2);
    font-size: 22px;
    cursor: pointer;
  }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(10, 13, 20, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .scrim.is-visible { opacity: 1; pointer-events: auto; }

  .content { padding: 24px 18px 40px; }

  .guest-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { padding: 44px 20px; }
}

@media (max-width: 640px) {
  .user-name { display: none; }
  .header-link { display: none; }
  .header-signout { display: none; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .hero-band { padding: 36px 20px 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar, .scrim { transition: none; }
}

/* ---------- Scheduling options, tags, errors and the invitation modal ---------- */

[hidden] { display: none !important; }

.option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  cursor: pointer;
}
.option:hover { border-color: #c9d6ee; }
.option input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); cursor: pointer; }
.option strong { display: block; color: var(--ink); font-weight: 600; }
.option .hint { display: block; margin-top: 2px; font-size: 14px; color: var(--slate); }

.radio-group {
  margin: 0 0 0 0;
  padding: 4px 0 0 46px;
  border: 0;
  display: grid;
  gap: 10px;
}
.radio { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }

select.input { appearance: auto; }

.hint { font-size: 13px; color: var(--slate); }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef2f9;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.tag-link { background: #eaf1fd; color: var(--blue); text-decoration: none; }
.tag-link:hover { background: #dbe7fb; }

.error-list { margin: 0; padding-left: 18px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 13, 20, 0.5);
}
.modal-box {
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(10, 13, 20, 0.35);
  padding: 24px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.modal-head h2 { font-size: 1.25rem; }
.modal-close {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: 22px;
  cursor: pointer;
}
.invite-text {
  margin-top: 14px;
  resize: vertical;
  min-height: 300px;
  font: 14px/1.6 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.modal-actions .copy-status { margin-right: auto; }

@media (max-width: 640px) {
  .modal-box { padding: 18px; }
  .radio-group { padding-left: 0; }
}

/* Host dashboard */
.dash-hero {
  background: linear-gradient(120deg, #1557c8 0%, #0d47a1 58%, #09b5e6 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(21, 87, 200, 0.18);
}
.dash-hero h1 { color: #fff; font-size: 1.9rem; margin: 4px 0 6px; }
.dash-hero p { color: rgba(255, 255, 255, 0.86); margin: 0; }
.dash-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78) !important; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-hero,
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #fff;
}
.btn-hero { background: #fff; color: #1557c8; }
.btn-hero-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-hero:hover, .btn-hero-ghost:hover { filter: brightness(0.97); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  background: #fff;
  border: 1px solid #e3e8f1;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: #e8f0fd; color: #1557c8; font-size: 22px; flex-shrink: 0;
}
.stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1; color: #0f1f3d; }
.stat-label { color: #5b6b82; font-size: 14px; margin-top: 4px; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.next-when { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.next-title { font-size: 1.35rem; margin: 0 0 6px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.next-actions { margin-top: 18px; }

.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid #edf1f7;
}
.mini-list li:first-child { border-top: 0; padding-top: 4px; }
.mini-main { display: flex; flex-direction: column; min-width: 0; }
.mini-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-note { margin: 12px 0 0; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
.facts dt { color: #5b6b82; font-size: 14px; }
.facts dd { margin: 0; font-size: 14px; word-break: break-word; }

@media (max-width: 1000px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-hero { padding: 20px; }
  .dash-hero h1 { font-size: 1.5rem; }
  .mini-list li { flex-wrap: wrap; }
}
