:root {
  --page: #f1f3f7;
  --panel: #ffffff;
  --ink: #222831;
  --muted: #728094;
  --line: #dde4ee;
  --blue: #2f68e8;
  --blue-soft: #eaf1ff;
  --navy: #24405f;
  --slate: #5d6f82;
  --orange: #f06418;
  --sample: #fff8d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(760px, 1fr);
  grid-template-rows: 54px 1fr;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e7ef;
  background: #fff;
}

.sls-logo {
  width: 52px;
  max-height: 42px;
  height: auto;
  display: block;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  min-height: 45px;
  padding: 0;
  border-radius: 11px;
  background: #ffe0cf;
  color: #4b2313;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
}

.breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #9aa5b4;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.breadcrumb strong {
  overflow: hidden;
  color: #22262d;
  font-weight: 500;
  text-overflow: ellipsis;
}

.folder-icon,
.page-icon {
  width: 28px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.content {
  overflow: auto;
  position: relative;
  padding: 42px 72px 120px;
}

.tour-launch {
  position: fixed;
  right: 22px;
  top: 72px;
  z-index: 20;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #b8c7df;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-weight: 800;
  box-shadow: 0 8px 22px rgb(24 38 58 / 10%);
}

.intro {
  max-width: 820px;
  margin: 0 auto;
}

.title-line {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 34px;
}

.page-icon.large {
  width: 32px;
  height: 40px;
  flex: 0 0 auto;
  font-size: 15px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.intro ol {
  margin: 0;
  padding-left: 22px;
  font-size: 20px;
  line-height: 1.5;
}

.intro li + li {
  margin-top: 4px;
}

.read-link {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2463df;
  font-size: 17px;
}

.question-area,
.assistant-output {
  max-width: 820px;
  margin: 34px auto 0;
}

h2 {
  margin: 0 0 36px;
  font-size: 24px;
}

.question {
  margin: 0 0 22px;
  font-size: 20px;
}

.response-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  background: var(--sample);
}

.response-picker p {
  margin: 0;
  color: #657488;
  font-size: 15px;
  font-weight: 800;
}

.picker-buttons {
  display: flex;
  gap: 8px;
}

.response-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #b8c5d7;
  border-radius: 999px;
  background: #fff;
  color: #526174;
  font-size: 14px;
}

.response-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

.answer-label {
  display: block;
  margin-bottom: 8px;
  color: #6d7b8e;
  font-size: 14px;
  font-weight: 800;
}

.answer-box {
  width: 100%;
  min-height: 300px;
  resize: none;
  padding: 22px 20px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #222831;
  font-size: 18px;
  line-height: 1.45;
}

.answer-box:focus {
  border-color: #93b0ff;
  box-shadow: 0 0 0 3px rgb(47 104 232 / 12%);
}

.marks-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: #6d7b8e;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.marks-row strong {
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 7px;
  background: #e2e9fb;
  color: #2367e8;
  text-align: center;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
}

.secondary-action,
.primary-action {
  min-width: 170px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.secondary-action {
  background: var(--slate);
}

.primary-action {
  background: var(--blue);
}

.assistant-output {
  transition: opacity 180ms ease, transform 180ms ease;
}

.assistant-output.is-hidden {
  display: none;
}

.notice {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid #91b0ff;
  border-left: 6px solid var(--blue);
  border-radius: 6px;
  background: #fff;
}

.notice p {
  margin: 0;
  font-size: 18px;
}

.info-icon {
  width: 30px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 800;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-top: 22px;
  border-radius: 8px;
  background: #fff;
}

.tabs.is-hidden,
.feedback-card.is-hidden {
  display: none;
}

.tabs button {
  min-height: 50px;
  border: 0;
  background: #fff;
  color: #728095;
  font-size: 18px;
}

.tabs button.is-active {
  background: var(--slate);
  color: #fff;
}

.feedback-card {
  margin-top: 18px;
  padding: 26px 22px 24px;
  border-radius: 8px;
  background: var(--panel);
  animation: feedbackIn 260ms ease both;
}

@keyframes feedbackIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-title-row,
.assistant-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feedback-title-row h2 {
  margin: 0;
  font-size: 22px;
}

.feedback-icon {
  position: relative;
  width: 32px;
  height: 32px;
}

.feedback-icon::before {
  content: "";
  position: absolute;
  inset: 8px 13px 0 0;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.feedback-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 23px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 5px;
  box-shadow: -8px 7px 0 -5px #fff, -8px 7px 0 -3px var(--blue);
}

.assistant-line {
  margin-top: 20px;
  color: var(--orange);
  font-size: 18px;
}

.assistant-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-size: 18px;
}

.feedback-date {
  margin: 10px 0 14px;
  color: #6c7a8d;
  font-size: 14px;
  font-weight: 800;
}

.feedback-copy {
  font-size: 19px;
  line-height: 1.45;
}

.feedback-copy p {
  margin: 0 0 20px;
}

.feedback-copy p:last-child {
  margin-bottom: 0;
}

.feedback-float {
  position: fixed;
  left: 22px;
  bottom: 28px;
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgb(15 23 42 / 62%);
}

.tour-overlay.is-hidden,
.tour-popover.is-hidden {
  display: none;
}

.tour-highlight {
  position: relative;
  z-index: 90;
  box-shadow: 0 0 0 4px #fff, 0 0 0 10px rgb(47 104 232 / 65%), 0 18px 48px rgb(15 23 42 / 36%);
}

.tour-popover {
  position: fixed;
  z-index: 100;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 58px rgb(15 23 42 / 30%);
}

.tour-progress {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-popover h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.tour-popover p {
  margin: 0;
  color: #526174;
  font-size: 15px;
  line-height: 1.45;
}

.tour-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.tour-secondary,
.tour-primary {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.tour-secondary {
  border: 1px solid #c8d2e0;
  background: #fff;
  color: #526174;
}

.tour-primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 28px 20px 110px;
  }

  .breadcrumb {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 8px;
  }

  .user-chip {
    display: none;
  }

  .breadcrumb {
    font-size: 14px;
  }

  .title-line,
  .response-picker,
  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .picker-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

}
