@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #19243a;
  background: #f4f6fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 83% 27%, rgba(222, 230, 250, 0.38), transparent 33%),
    #f4f6fb;
}

button {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6eaf2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #202b42;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: #5369d7;
  font-size: 17px;
}

.brand-light {
  color: #778197;
  font-weight: 500;
}

.session-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #788398;
  font-size: 13px;
}

.status-dot,
.caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5afc1;
}

.interview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.89fr);
  gap: clamp(44px, 7.4vw, 92px);
  align-items: start;
  padding: 70px 0 62px;
}

.interview-content {
  padding-top: 9px;
}

.eyebrow,
.question-number,
.progress-copy {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.eyebrow {
  color: #6375d6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 16px 0 12px;
  color: #1d2940;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.3vw, 41px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -1.8px;
}

.intro {
  max-width: 440px;
  margin-bottom: 39px;
  color: #778196;
  font-size: 15px;
  line-height: 1.75;
}

.progress-section {
  margin-bottom: 22px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #7a8498;
  font-size: 10px;
  letter-spacing: 0.8px;
}

#progress-percent {
  font-weight: 500;
  letter-spacing: 0;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: #e4e8f1;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: #6477df;
  transition: width 220ms ease;
}

.question-card {
  min-height: 174px;
  padding: 23px 25px 21px;
  border: 1px solid #e7eaf1;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 26px rgba(38, 52, 89, 0.035);
}

.question-number {
  margin-bottom: 14px;
  color: #7787dc;
  font-size: 10px;
  letter-spacing: 1px;
}

.question-card h2 {
  margin-bottom: 8px;
  color: #24314a;
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.55px;
}

.question-card p {
  margin-bottom: 0;
  color: #818b9f;
  font-size: 13px;
  line-height: 1.6;
}

.recording-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 38px;
  margin: 16px 0 19px;
  color: #788398;
  font-size: 12px;
  line-height: 1.55;
}

.status-icon {
  display: inline-grid;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid #b8c1d2;
  border-radius: 50%;
  color: #8791a5;
  font-family: Georgia, serif;
  font-size: 11px;
}

.recording-status.is-error,
.recording-status.is-recording {
  color: #58657e;
}

.recording-status.is-error .status-icon {
  border-color: #d76c72;
  color: #c7545b;
}

.recording-status.is-recording .status-icon {
  border-color: #dc6d75;
  background: #dc6d75;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.primary-button {
  display: inline-flex;
  min-width: 146px;
  height: 47px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #5369d7;
  box-shadow: 0 5px 12px rgba(83, 105, 215, 0.19);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 140ms ease, transform 140ms ease;
}

.primary-button:hover:not(:disabled) {
  background: #445bc9;
  transform: translateY(-1px);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(83, 105, 215, 0.28);
  outline-offset: 3px;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.secondary-button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  color: #58647c;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.secondary-button:hover:not(:disabled) {
  border-color: #bfc8e5;
  background: #f9faff;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#button-icon {
  font-size: 11px;
}

.time-limit,
.keyboard-note {
  color: #8791a3;
  font-size: 11px;
}

.keyboard-note {
  min-height: 16px;
  margin: 11px 0 0;
}

.video-panel {
  min-width: 0;
  padding-top: 23px;
}

.video-frame {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  border: 1px solid #e0e5ef;
  border-radius: 15px;
  background: linear-gradient(145deg, #e8ecf5, #dce3f0);
  box-shadow: 0 12px 32px rgba(38, 52, 89, 0.075);
}

.video-frame video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.video-frame.has-video video {
  display: block;
}

.camera-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 20px;
  color: #78849c;
  text-align: center;
}

.camera-symbol {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  place-items: center;
  border: 1px solid rgba(133, 148, 179, 0.19);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.camera-symbol svg {
  width: 28px;
  stroke: #8592ac;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.camera-placeholder strong {
  margin-bottom: 6px;
  color: #596780;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.camera-placeholder > span {
  max-width: 210px;
  font-size: 11px;
  line-height: 1.55;
}

.recording-badge,
.timer-badge {
  position: absolute;
  z-index: 1;
  top: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 6px;
  color: #fff;
  background: rgba(27, 34, 49, 0.74);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.65px;
  backdrop-filter: blur(8px);
}

.recording-badge {
  left: 13px;
}

.timer-badge {
  right: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

.recording-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6269;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}

.camera-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 3px;
  color: #838da0;
  font-size: 11px;
}

.camera-caption.is-on .caption-dot {
  background: #63b58d;
}

.camera-caption.is-recording .caption-dot {
  background: #dd666d;
}

.saved-answers {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e4e8f0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
}

.saved-answers h3 {
  margin-bottom: 11px;
  color: #35415a;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
}

#recordings-list {
  display: grid;
  gap: 9px;
}

.recording-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #586783;
  font-size: 11px;
  text-decoration: none;
}

.recording-link span:last-child {
  color: #5369d7;
  font-weight: 700;
}

.recording-link:hover span:last-child {
  text-decoration: underline;
}

footer {
  padding: 18px 0 27px;
  border-top: 1px solid #e6eaf2;
  color: #929bae;
  font-size: 11px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .app-shell {
    width: min(620px, calc(100% - 40px));
  }

  .interview-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-top: 45px;
  }

  .interview-content {
    padding-top: 0;
  }

  .video-panel {
    width: min(100%, 480px);
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .app-shell {
    width: calc(100% - 32px);
  }

  .topbar {
    height: 72px;
  }

  .brand {
    gap: 8px;
    font-size: 13px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .session-label {
    font-size: 11px;
  }

  .interview-layout {
    padding-top: 35px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .question-card {
    min-height: 0;
    padding: 20px;
  }
}
