:root {
  color-scheme: light;
  --ink: #17212f;
  --muted: #52616f;
  --line: #d8e0e8;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --navy: #13395b;
  --blue: #2563eb;
  --green: #0f8a5f;
  --red: #c2413b;
  --amber: #b7791f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #eef3f7;
}

button,
input {
  font: inherit;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: white;
  background: var(--navy);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  background: #97a6b5;
}

.secondary-button {
  color: var(--navy);
  background: #e7eef5;
}

.hidden {
  display: none !important;
}

.shell {
  min-height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px;
}

.brand-block h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.lead {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-panel,
.evaluation-form,
.briefing-panel,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
}

.app-view,
.evaluation-view {
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topbar h2 {
  margin: 0;
  font-size: 22px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  min-width: 420px;
}

.status-strip div {
  min-height: 48px;
  padding: 7px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.status-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.side-panel {
  padding: 16px;
  align-self: start;
}

.panel-section + .panel-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.panel-section h3,
.evaluation-form h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.scenario-list,
.progress-list {
  display: grid;
  gap: 10px;
}

.scenario-button {
  width: 100%;
  min-height: 72px;
  text-align: left;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
}

.scenario-button.active {
  border-color: var(--blue);
  box-shadow: inset 4px 0 0 var(--blue);
}

.scenario-button strong,
.scenario-button span {
  display: block;
}

.scenario-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.training-panel {
  min-height: calc(100vh - 128px);
}

.briefing-panel {
  min-height: 320px;
  padding: 24px;
}

.briefing-panel h2 {
  margin: 0 0 10px;
}

.briefing-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.briefing-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.briefing-meta div,
.progress-item {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.panorama {
  width: 100%;
  height: calc(100vh - 128px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #dbe5ef;
}

.hotspot-marker {
  width: 34px;
  height: 34px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 4px 14px rgba(23, 33, 47, 0.35);
}

.hotspot-marker::after {
  content: "!";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: white;
  font-weight: 700;
}

.hotspot-marker.correct {
  background: var(--green);
}

.dialog {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
}

.dialog::backdrop {
  background: rgba(12, 20, 30, 0.45);
}

.dialog form,
.result-box {
  padding: 24px;
}

.dialog h3 {
  margin: 0 0 10px;
}

.answer-options {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.answer-option {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
}

.muted {
  color: var(--muted);
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--red);
}

.result-text {
  color: var(--green);
  font-weight: 700;
}

.leaderboard {
  margin: 0;
  padding-left: 22px;
}

.leaderboard li {
  margin: 8px 0;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.badge {
  padding: 6px 10px;
  color: #0f3f2e;
  background: #dff6eb;
  border: 1px solid #a9dec4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.evaluation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.evaluation-form {
  padding: 20px;
}

.likert-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.likert-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.likert-scale label {
  display: flex;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

@media (max-width: 920px) {
  .login-view,
  .workspace,
  .evaluation-grid {
    grid-template-columns: 1fr;
  }

  .brand-block h1 {
    font-size: 36px;
  }

  .topbar {
    display: grid;
  }

  .status-strip {
    min-width: 0;
    grid-template-columns: 1fr 1fr;
  }

  .briefing-meta {
    grid-template-columns: 1fr;
  }

  .panorama {
    height: 68vh;
  }
}

