/* Unified conversational assessment workspace. */
.focus-app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  grid-template-columns: 1fr;
  grid-template-rows: 70px minmax(0, 1fr);
  overflow: hidden;
}

.focus-app .top {
  grid-column: 1;
}

.focus-app > .side {
  display: none;
}

.focus-app > .main {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.focus-app .interview {
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.focus-app .interview-head {
  height: auto;
}

.interview-grid.unified {
  grid-template-columns: 220px minmax(0, 1fr);
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.unified-room {
  grid-template-rows: 1fr;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #f7f9fc;
}

.unified-room .messages {
  min-height: 0;
  padding: 24px clamp(24px, 4vw, 64px) 70px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.focus-app .memory-panel {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.current-focus b {
  display: block;
  margin-top: 4px;
  color: #234d81;
  font-size: 12px;
}

.current-focus p {
  margin: 4px 0 0;
}

.memory-steps {
  display: grid;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid #e6edf4;
}

.memory-steps > small {
  color: #8a99aa;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.memory-steps > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5d7085;
  font-size: 10px;
}

.memory-steps i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: #eaf1ff;
  color: #2865cd;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.unified-question {
  max-width: 1120px;
  padding: 20px;
  margin-bottom: 0;
  background: #fff !important;
  border-color: #d9e4f0 !important;
  box-shadow: 0 12px 34px rgba(20, 45, 80, .07);
}

.unified-question > h2 {
  max-width: 920px;
  font-size: 20px;
}

.unified-question .evidence {
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 3px 14px;
  padding: 12px 14px;
  background: #f8fbff;
}

.unified-question .evidence b {
  grid-row: 1 / 3;
  color: #234d81;
}

.response-workspace {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5ebf2;
}

.response-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 13px;
}

.response-title .eyebrow {
  margin-bottom: 3px;
}

.response-title h3 {
  margin: 0;
  font-size: 16px;
}

.response-title > span {
  color: #7c8da0;
  font-size: 9px;
}

.level-scale {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.level-scale .option {
  min-height: 118px;
  grid-template-columns: 30px 1fr 14px;
  align-content: start;
  padding: 11px;
}

.level-scale .option > i {
  width: 28px;
  height: 28px;
}

.level-scale .option b {
  font-size: 11px;
}

.level-scale .option span {
  margin-top: 3px;
  line-height: 1.35;
}

.level-scale .option small {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #d8e3f3;
}

.integrated-note {
  margin: 16px 0 10px;
  color: #243b58;
}

.integrated-note > span,
.integrated-ask label > span:first-child {
  font-weight: 750;
  font-size: 10px;
}

.integrated-note textarea {
  width: 100%;
  min-height: 82px;
  background: #fbfdff;
  outline: none;
}

.integrated-note textarea:focus {
  border-color: #6c9bf1;
  box-shadow: 0 0 0 3px #e8f0ff;
}

.conversation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8edf3;
}

.integrated-ask {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.integrated-ask label {
  display: grid;
  gap: 6px;
}

.ask-control {
  display: flex;
  gap: 7px;
}

.ask-control input {
  min-width: 0;
  flex: 1;
  background: #fbfdff;
}

.integrated-ask .ask-control button {
  width: auto;
  min-width: 112px;
  padding: 0 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 750;
}

.confirm-block {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.confirm-block .draft-state {
  margin: 0;
}

.confirm-block .primary {
  min-width: 205px;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 1200px) {
  .level-scale {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .conversation-actions {
    grid-template-columns: 1fr;
  }

  .confirm-block {
    justify-items: stretch;
  }
}

@media (max-width: 900px) {
  .interview-grid.unified {
    grid-template-columns: 1fr;
  }

  .interview-grid.unified .memory-panel {
    display: none;
  }

  .level-scale {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .focus-app {
    grid-template-rows: 62px minmax(0, 1fr);
  }

  .focus-app .interview {
    grid-template-rows: 70px minmax(0, 1fr);
  }

  .unified-room .messages {
    padding: 14px 12px 38px;
  }

  .unified-question {
    padding: 14px;
  }

  .unified-question .evidence,
  .level-scale {
    grid-template-columns: 1fr;
  }

  .unified-question .evidence b {
    grid-row: auto;
  }

  .response-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .level-scale .option {
    min-height: auto;
  }

  .ask-control {
    flex-direction: column;
  }

  .integrated-ask .ask-control button,
  .confirm-block .primary {
    width: 100%;
  }
}
