.osce-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  text-align: left;
}

.osce-hero {
  text-align: center;
  margin: 10px auto 26px;
}

.osce-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 12px;
}

.osce-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #3f4a4d;
  line-height: 1.5;
  font-size: 1.05rem;
}

.osce-controls {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.osce-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.osce-field label,
.filter-label {
  color: #1d3438;
  font-weight: 700;
  font-size: 0.94rem;
}

.osce-field select,
.osce-field input,
.station-comments {
  width: 100%;
  border: 2px solid #b8e8ef;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  color: #17282b;
  background: #fff;
  outline: none;
}

.osce-field select:focus,
.osce-field input:focus,
.station-comments:focus {
  border-color: #00b0cb;
  box-shadow: 0 0 0 3px rgba(0, 176, 203, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 26px;
}

.filter-chip,
.role-tab,
.timer-button,
.station-button,
.station-action,
.secondary-action {
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.filter-chip {
  padding: 9px 13px;
  background: #eef9fb;
  color: #14515b;
}

.filter-chip.active,
.role-tab.active {
  background: #00b0cb;
  color: #fff;
}

.osce-layout {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.osce-category {
  border: 1px solid #d7eef2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 176, 203, 0.08);
  overflow: hidden;
}

.category-toggle {
  width: 100%;
  border: 0;
  background: #f5fcfd;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.category-toggle h2 {
  font-size: 1.1rem;
  color: #007a8a;
  margin: 0 0 4px;
}

.category-meta {
  color: #4d6267;
  font-size: 0.9rem;
}

.category-count {
  flex: 0 0 auto;
  color: #0d5965;
  font-weight: 800;
  font-size: 0.9rem;
}

.station-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border-top: 1px solid #d7eef2;
}

.station-button {
  min-height: 44px;
  padding: 10px;
  background: #fff;
  color: #17282b;
  border: 1px solid #cfe9ee;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.station-button:hover,
.station-button.active {
  background: #00b0cb;
  color: #fff;
}

.station-button.is-placeholder {
  color: #6a777a;
}

.station-button.active.is-placeholder {
  color: #fff;
}

.station-button.is-locked {
  color: #40575b;
  background: #f7fafb;
  border-color: #d8e3e6;
}

.station-button.is-locked:hover,
.station-button.is-locked.active {
  background: #17282b;
  color: #fff;
}

.station-lock-badge {
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef3f4;
  color: #40575b;
  font-size: 0.72rem;
  line-height: 1;
}

.station-button.is-locked:hover .station-lock-badge,
.station-button.is-locked.active .station-lock-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.station-panel {
  border: 1px solid #cfe9ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 176, 203, 0.1);
  min-height: 520px;
  overflow: hidden;
}

body.osce-focus-active {
  overflow: hidden;
}

.station-panel-expanded {
  position: fixed;
  inset: 18px;
  z-index: 1000;
  min-height: 0;
  overflow: auto;
  box-shadow: 0 24px 80px rgba(10, 38, 44, 0.28);
  overscroll-behavior: contain;
}

.station-panel-expanded article {
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.station-panel-expanded .station-header,
.station-panel-expanded .role-tabs,
.station-panel-expanded .station-toolbar {
  flex: 0 0 auto;
}

.station-panel-expanded .station-body {
  width: min(980px, 100%);
  margin: 0 auto;
  flex: 1 1 auto;
  overflow: auto;
}

.station-panel-expanded .score-bar {
  margin-bottom: 0;
}

.station-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 34px;
  text-align: center;
  color: #4d6267;
}

.station-locked-panel {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 34px;
  text-align: center;
  color: #26393d;
  background: linear-gradient(180deg, #f7fcfd 0%, #fff 100%);
}

.station-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #17282b;
  color: #fff;
}

.station-lock-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.station-lock-kicker {
  margin: 0;
  color: #007a8a;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.station-locked-panel h2 {
  margin: 0;
  color: #17282b;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.station-locked-panel p:not(.station-lock-kicker) {
  max-width: 520px;
  margin: 0;
  color: #40575b;
  line-height: 1.55;
}

.station-lock-actions,
.station-lock-prices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.station-lock-actions {
  margin-top: 4px;
}

.station-lock-primary,
.station-lock-secondary {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.station-lock-primary {
  background: #00b0cb;
  color: #fff;
}

.station-lock-secondary {
  background: #e6f5f8;
  color: #14515b;
}

.station-lock-primary:disabled,
.station-lock-secondary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.station-lock-status {
  color: #007a8a;
  font-weight: 800;
}

.station-lock-prices {
  color: #17282b;
  font-weight: 800;
}

.station-lock-prices span {
  border: 1px solid #d7eef2;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}

.station-header {
  padding: 20px;
  border-bottom: 1px solid #d7eef2;
  background: #f5fcfd;
}

.station-header h2 {
  margin: 0 0 8px;
  color: #17282b;
  font-size: 1.5rem;
}

.station-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #4d6267;
  font-weight: 700;
  font-size: 0.92rem;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eef7f9;
}

.station-panel-expanded .role-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  box-shadow: 0 6px 18px rgba(10, 38, 44, 0.08);
}

.role-tab {
  padding: 10px 14px;
  background: #eef9fb;
  color: #14515b;
}

.station-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef7f9;
}

.station-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timer-display {
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: #17282b;
  font-weight: 800;
  text-align: center;
}

.timer-button,
.secondary-action {
  padding: 10px 12px;
  background: #e6f5f8;
  color: #14515b;
}

.timer-button:hover,
.secondary-action:hover,
.station-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 176, 203, 0.16);
}

.station-action {
  padding: 10px 14px;
  background: #00b0cb;
  color: #fff;
}

.station-body {
  padding: 20px;
}

.brief-block {
  margin-bottom: 20px;
}

.brief-block h3 {
  color: #007a8a;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.brief-block p,
.brief-block li {
  color: #26393d;
  line-height: 1.55;
}

.brief-list {
  padding-left: 22px;
}

.clinical-image-frame {
  margin: 0;
  border: 1px solid #d7eef2;
  border-radius: 12px;
  overflow: hidden;
  background: #f5fcfd;
}

.clinical-image-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.clinical-image-frame figcaption,
.image-source {
  margin: 0;
  padding: 10px 12px;
  color: #40575b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.image-source {
  padding: 8px 0 0;
}

.image-source a {
  color: #007a8a;
  font-weight: 700;
}

.placeholder-message {
  border: 1px dashed #96d7e0;
  border-radius: 12px;
  padding: 18px;
  background: #f5fcfd;
  color: #40575b;
}

.marklist {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mark-section {
  border: 1px solid #d7eef2;
  border-radius: 12px;
  padding: 14px;
}

.mark-section h3 {
  color: #007a8a;
  margin-bottom: 10px;
  font-size: 1rem;
}

.mark-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: #26393d;
  line-height: 1.45;
}

.mark-item input {
  margin-top: 3px;
  transform: scale(1.15);
  accent-color: #00b0cb;
}

.score-bar {
  position: sticky;
  bottom: 0;
  margin: 16px -20px -20px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #17282b;
  color: #fff;
  font-weight: 800;
}

.station-comments {
  min-height: 96px;
  resize: vertical;
  margin-top: 12px;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .osce-controls,
  .osce-layout {
    grid-template-columns: 1fr;
  }

  .station-panel,
  .station-empty,
  .station-locked-panel {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .osce-page {
    width: min(100% - 20px, 1180px);
  }

  .station-list {
    grid-template-columns: 1fr;
  }

  .station-toolbar,
  .station-toolbar-actions,
  .score-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .timer {
    align-items: stretch;
  }

  .station-panel-expanded {
    inset: 8px;
    border-radius: 12px;
  }

  .station-panel-expanded article {
    min-height: calc(100vh - 16px);
  }

  .station-header {
    padding: 14px;
  }

  .station-header h2 {
    font-size: 1.18rem;
  }

  .station-meta {
    font-size: 0.84rem;
  }

  .role-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .role-tab {
    padding: 10px 6px;
    text-align: center;
  }
}
