@font-face {
  font-family: "Entry Rounded";
  src: url("/assets/entry-rounded.otf") format("opentype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

.welcome {
  --entry-ink: #2a2050;
  --entry-muted: #544966;
  --entry-line: #e3daf5;
  --entry-accent: #5135d4;
  margin: 0;
  min-height: 100vh;
  color: var(--entry-ink);
  background: radial-gradient(ellipse at 14% 24%, #d7c7fc 0%, transparent 56%), linear-gradient(115deg, #e9dfff 8%, #f1e9ff 53%, #faf8ff 88%);
  font: 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}
.welcome * { box-sizing: border-box; }
.welcome [hidden] { display: none; }
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(22px, 6vw, 84px);
}
.entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font: 650 25px/1 ui-rounded, "Avenir Next", system-ui, sans-serif;
  letter-spacing: -.025em;
  text-decoration: none;
}
.entry-label { color: #594687; }
.entry-label, .entry-kicker { color: #5d6170; font-size: 13px; font-weight: 550; }
.entry-main {
  width: min(100% - 48px, 1060px);
  margin: clamp(36px, 8vh, 112px) auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 1fr);
  align-items: center;
  gap: clamp(32px, 8vw, 112px);
}
.entry-intro h1, .entry-preview h2 { font-family: "Entry Rounded", "PingFang SC", sans-serif; }
.entry-intro h1 { font-size: clamp(32px, 4.5vw, 57px); line-height: 1.19; margin: 12px 0 15px; font-weight: 550; letter-spacing: -.012em; }
.entry-intro p, .entry-preview p { color: var(--entry-muted); margin: 0; }
.entry-illustration { display: block; width: 100%; max-width: 550px; height: auto; margin-top: 28px; }
.entry-preview { border: 1px solid var(--entry-line); border-radius: 20px; padding: clamp(23px, 4vw, 38px); background: #fff; }
.entry-preview h2 { margin: 0 0 6px; font-size: 25px; line-height: 1.3; font-weight: 600; }
.entry-preview p { font-size: 14px; }
.entry-form { display: grid; gap: 14px; margin-top: 22px; }
.entry-form label { display: grid; gap: 4px; font-size: 14px; }
.entry-form input { border: 1px solid var(--entry-line); padding: 10px 12px; border-radius: 7px; font: inherit; color: inherit; min-width: 0; }
.entry-primary { display: block; width: 100%; border: 0; background: var(--entry-accent); color: #fff; border-radius: 7px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 550; text-align: center; text-decoration: none; cursor: pointer; }
.entry-primary:hover { background: #442bbb; }
.entry-primary:disabled { opacity: .7; cursor: progress; }
a.entry-primary { margin-top: 22px; }
.entry-secondary { display: block; margin-top: 12px; color: var(--entry-muted); font-size: 14px; text-align: center; }
.entry-preview .entry-error:empty { display: none; }
.entry-preview .entry-error:not(:empty) { color: #a13435; margin-top: 12px; }
.welcome :is(a, input, button):focus-visible { outline: 2px solid var(--entry-accent); outline-offset: 3px; }
@media (max-width: 680px) {
  .entry-main { display: flex; flex-direction: column; align-items: stretch; margin-top: 18px; gap: 24px; }
  .entry-intro h1 { font-size: clamp(29px, 7.5vw, 39px); }
  .entry-illustration { display: none; }
}

.focus-workbench .start-workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 6vw, 68px);
  width: min(100%, 720px);
  margin: clamp(14px, 8vh, 70px) auto;
}
.start-workspace h2 { font-size: clamp(24px, 3vw, 35px); margin: 12px 0 8px; }
.start-workspace p { color: #5d6170; font-size: 15px; margin: 0 0 22px; }
.focus-workbench .video-status { display: block; color: #5d6170; font-size: 12px; margin-top: 4px; }
.focus-workbench :is(.video-status, .start-workspace, .integrated-player, .dashboard, button, h1)[hidden] { display: none; }
#recordContext > .primary { margin-top: 9px; }
.focus-workbench .tour-dialog { width: min(460px, calc(100% - 32px)); padding: 24px; border-radius: 12px; }
.tour-top, .tour-actions { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tour-dialog h2 { margin: 10px 0; font-size: 24px; }
.tour-dialog h2:focus { outline: none; }
.tour-dialog #tourDescription { min-height: 3em; line-height: 1.6; color: #505464; }
.tour-actions { flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }

/* Export remains secondary to checking the report. */
.focus-workbench .report-actions { gap: 8px; }
.focus-workbench .report-actions #generateReport { order: -2; }
.focus-workbench .report-actions #pdfReport { order: -1; }
.focus-workbench #classDate::before { content: none; }
