body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f1ea;
  color: #1f2933;
}

.page {
  max-width: 900px;
  margin: 60px auto;
  padding: 24px;
}

h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.card,
.player-hero,
.map-card,
.stat-card,
.action-card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.card {
  margin-top: 32px;
  padding: 24px;
}

.card a {
  display: block;
  margin: 12px 0;
  padding: 14px 18px;
  background: #1f2933;
  color: white;
  text-decoration: none;
  border-radius: 12px;
}

.dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #667085;
}

.back-link {
  color: #1f2933;
  text-decoration: none;
  font-weight: bold;
}

.player-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 22px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #1f2933;
  color: white;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: bold;
}

.map-card {
  padding: 24px;
  margin-bottom: 22px;
}

.map-placeholder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.map-stage {
  min-height: 90px;
  border: 2px dashed #c9ced6;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: bold;
  background: #f9fafb;
}

.map-stage.active {
  border-style: solid;
  background: #e7f6ed;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card,
.action-card {
  padding: 20px;
}

.stat-card h3 {
  font-size: 34px;
  margin: 6px 0;
}

.action-card {
  display: block;
  color: #1f2933;
  text-decoration: none;
}

.action-card h3 {
  margin-top: 0;
}

.mini-chart {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 18px;
  background: #f9fafb;
  border-radius: 14px;
  margin-top: 16px;
}

.mini-chart div {
  flex: 1;
  background: #1f2933;
  border-radius: 10px 10px 0 0;
  min-height: 20px;
}

@media (max-width: 900px) {
  .grid,
  .map-placeholder {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.simple-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.simple-form label {
  display: grid;
  gap: 8px;
  font-weight: bold;
}

.simple-form input,
.simple-form textarea,
.simple-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #c9ced6;
  border-radius: 12px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

.simple-form textarea {
  min-height: 110px;
  resize: vertical;
}

.simple-form button {
  width: fit-content;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: #1f2933;
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.reflection-list {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.reflection-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f2933;
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.reflection-step h2 {
  margin-top: 0;
}

.reflection-step input,
.reflection-step textarea,
.reflection-step select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #c9ced6;
  border-radius: 12px;
  font-size: 16px;
  font-family: Arial, sans-serif;
}

.reflection-step textarea {
  min-height: 90px;
  resize: vertical;
}

.reflection-step button,
.primary-button {
  margin-top: 10px;
  padding: 13px 18px;
  border: 0;
  border-radius: 12px;
  background: #1f2933;
  color: white;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.challenge-grid label {
  font-weight: bold;
}

@media (max-width: 700px) {
  .reflection-step {
    grid-template-columns: 1fr;
  }

  .challenge-grid {
    grid-template-columns: 1fr;
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 14px;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.data-table th {
  background: #f9fafb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667085;
}

.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 18px;
  border-radius: 12px;
  background: #1f2933;
  color: white;
  font-weight: bold;
  text-decoration: none;
}

.fingerprint-chart {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.fingerprint-row {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 12px;
}

.bar-track {
  height: 18px;
  background: #eef0f3;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #1f2933;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .fingerprint-row {
    grid-template-columns: 1fr;
  }
}

.card-link {
  display: block;
  color: #1f2933;
  text-decoration: none;
}

.activity-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  align-items: end;
  padding: 20px;
  background: #f9fafb;
  border-radius: 14px;
  margin-top: 18px;
}

.activity-column {
  height: 220px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
  text-align: center;
  font-weight: bold;
}

.activity-bar {
  width: 100%;
  background: #1f2933;
  border-radius: 10px 10px 0 0;
  min-height: 12px;
}

.activity-column.warning .activity-bar {
  background: #9a3412;
}

@media (max-width: 700px) {
  .activity-chart {
    grid-template-columns: repeat(3, 1fr);
    height: auto;
  }
}

.small-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #1f2933;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.table-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid #c9ced6;
  border-radius: 8px;
}

.data-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.danger-button {
  background: #9a3412;
  margin-left: 6px;
}

.button-card {
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: Arial, sans-serif;
}

.danger-card {
  border: 2px solid #9a3412;
}

/* Fix: activity chart should scroll sideways when there are more than 9 sessions */
.activity-chart {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: end;
  gap: 12px;
  min-height: 260px;
  height: auto;
}

.activity-column {
  min-width: 70px;
  height: 220px;
  flex-shrink: 0;
}

.warning-bar {
  background: #9a3412 !important;
}

.activity-block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.activity-block-grid label {
  font-weight: bold;
}

.helper-text {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  color: #475467;
}

@media (max-width: 700px) {
  .activity-block-grid {
    grid-template-columns: 1fr;
  }
}

.status-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e7f6ed;
  font-weight: bold;
}

.reflection-detail {
  background: #f9fafb;
  border-radius: 14px;
  padding: 18px;
  margin: 8px 0;
}

.reflection-detail h3 {
  margin-top: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.detail-grid div {
  background: white;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.review-actions {
  margin-top: 16px;
}

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

.facilitator-note-box {
  margin-top: 16px;
  padding: 14px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.facilitator-note-box label {
  display: grid;
  gap: 8px;
}

.facilitator-note-box textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #c9ced6;
  border-radius: 10px;
  font-size: 15px;
  font-family: Arial, sans-serif;
  resize: vertical;
}

.behaviour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.behaviour-grid label {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
}

.behaviour-grid small {
  color: #667085;
  font-weight: normal;
}

@media (max-width: 900px) {
  .behaviour-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .behaviour-grid {
    grid-template-columns: 1fr;
  }
}

.matrix-wrapper {
  margin-top: 16px;
  overflow-x: auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 10px;
  min-width: 960px;
}

.matrix-cell {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
}

.matrix-cell input {
  margin-right: 8px;
}

.matrix-centre {
  grid-column: 1 / -1;
  padding: 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.equation-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
}

.equation-line span {
  padding: 4px 8px;
}

.archetype-equation-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: center;
}

.archetype-cell {
  position: relative;
  padding: 12px 8px;
  border-radius: 12px;
  background: #f4f1ea;
  font-weight: bold;
  text-align: center;
}

.archetype-cell small {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #667085;
}

.commander-cell {
  background: #e7f6ed;
}

/* Archetypal Matrix column tinting */
.archetype-column-0 {
  background: #eef6ff;
}

.archetype-column-1 {
  background: #fff1f2;
}

.archetype-column-2 {
  background: #fff7ed;
}

.archetype-column-3 {
  background: #f5f3ff;
}

.archetype-column-4 {
  background: #f0fdf4;
}

.archetype-column-5 {
  background: #fefce8;
}

.matrix-cell.column-hover {
  outline: 3px solid #1f2933;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.matrix-cell {
  transition: 0.15s ease;
}

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

.leader-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.15s ease;
}

.leader-card:hover {
  outline: 3px solid #1f2933;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.leader-card input {
  width: auto;
  margin: 0;
}

.leader-card span {
  color: #475467;
  font-weight: bold;
}

.leader-card small {
  color: #667085;
  line-height: 1.4;
}

.leader-card:has(input:checked) {
  background: #e7f6ed;
  border-color: #1f2933;
}

.starfish-card {
  background: #fff7ed;
}

@media (max-width: 800px) {
  .leader-grid {
    grid-template-columns: 1fr;
  }
}

.definition-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

@media (max-width: 800px) {
  .definition-summary {
    grid-template-columns: 1fr;
  }
}

.help-panel {
  border: 2px solid #cbd5e1;
}

.help-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border: 0;
  border-radius: 50%;
  background: #1f2933;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.help-button:hover {
  transform: translateY(-1px);
}

.inline-help-box {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

.inline-help-box.open {
  display: block;
}

.inline-help-box h3 {
  margin: 0 0 8px;
}

.inline-help-box p:last-child {
  margin-bottom: 0;
}

/* Fix inline help box width inside reflection steps */
.inline-help-box {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
}

.reflection-step .inline-help-box {
  margin-left: 0;
}

.image-preview-box {
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 14px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #f9fafb;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #667085;
}

.image-preview-box img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
}

/* -------------------------------
   Visual polish pass v1
-------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
}

.dashboard {
  padding-bottom: 80px;
}

.topbar h1 {
  margin-top: 0;
  line-height: 1.1;
}

.card,
.player-hero,
.map-card,
.stat-card,
.action-card,
.reflection-step {
  border: 1px solid rgba(31, 41, 51, 0.06);
}

.card {
  overflow-x: auto;
}

.action-card {
  min-height: 120px;
  transition: 0.15s ease;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card h3 {
  line-height: 1;
}

.data-table {
  min-width: 720px;
}

.data-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.data-table tbody tr:hover {
  background: #f4f7fb;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(31, 41, 51, 0.18);
  border-color: #1f2933;
}

button,
.button-link,
.action-card,
.card-link {
  transition: 0.15s ease;
}

.primary-button:hover,
.small-button:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.matrix-cell:has(input:checked) {
  outline: 3px solid #1f2933;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.matrix-cell span {
  font-size: 15px;
}

.reflection-step h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.inline-help-box {
  font-size: 15px;
}

.image-preview-box {
  overflow: hidden;
}

.status-badge {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .dashboard {
    padding: 18px;
  }

  h1 {
    font-size: 32px;
  }

  .player-hero {
    align-items: flex-start;
  }

  .avatar {
    width: 58px;
    height: 58px;
    font-size: 26px;
  }
}

.warning-card {
  border: 2px solid #9a3412;
  background: #fff7ed;
}

#localStateSummary {
  margin-bottom: 8px;
}

#lastExportNotice {
  color: #667085;
  font-weight: bold;
}

/* Public parent-share prototype */
body:has(.parent-share-page) {
  background:
    radial-gradient(circle at 12% 0%, rgba(29, 211, 217, 0.13), transparent 32%),
    linear-gradient(180deg, #f6fbfb 0%, #eef7f7 48%, #f7f9f6 100%);
}

.parent-share-page {
  max-width: 1010px;
  margin-top: 28px;
  color: #102a43;
  font-family: Arial, sans-serif;
}

.parent-share-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0;
  color: #5d7183;
  font-weight: bold;
  font-size: 14px;
}

.parent-share-meta span:not([hidden]) + span:not([hidden])::before {
  content: "|";
  margin-right: 10px;
}

.parent-share-status-card {
  font-weight: bold;
}

.parent-share-preview-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #d8a722;
  background: #fff8df;
  color: #7a4f00;
  font-weight: bold;
}

.parent-share-preview-banner[hidden] {
  display: none;
}

.parent-share-preview-banner span {
  font-weight: normal;
}

.parent-share-page .parent-share-brand {
  margin-bottom: 10px;
}

.parent-share-page .parent-share-brand .eyebrow {
  color: #287a83;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.parent-share-page .player-hero {
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(37, 99, 105, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 44px rgba(16, 42, 67, 0.08);
}

.parent-share-page .player-hero .avatar {
  width: 54px;
  height: 54px;
  background: #e6f7f8;
  color: #0f5963;
  font-size: 24px;
}

.parent-share-page .player-hero h2 {
  margin: 0 0 2px;
  color: #102a43;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: 0;
}

.parent-share-page .player-hero p {
  margin: 0;
  color: #5d7183;
  line-height: 1.45;
}

.parent-share-report-card {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding-top: 0;
  border: 1px solid rgba(37, 99, 105, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(16, 42, 67, 0.08);
}

.parent-share-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
  padding: 10px 10px 0;
  border-bottom: 1px solid #c6d8dc;
  border-radius: 18px 18px 0 0;
  background: #f4fbfb;
}

.parent-share-tab {
  min-height: 44px;
  margin-bottom: -1px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: #355466;
  font-weight: bold;
  letter-spacing: 0;
  cursor: pointer;
}

.parent-share-tab:hover {
  background: #e9f7f8;
  color: #102a43;
}

.parent-share-tab.active {
  background: #ffffff;
  border-color: #9fc6cd;
  border-bottom-color: #ffffff;
  color: #102a43;
  box-shadow: 0 -2px 0 #19b8c5;
}

.parent-share-panel {
  display: grid;
  gap: 16px;
  max-width: 860px;
  padding-top: 26px;
}

.parent-share-panel[hidden] {
  display: none;
}

.parent-share-panel h2,
.parent-share-panel p {
  margin: 0;
}

.parent-share-panel h2 {
  color: #102a43;
  font-size: 30px;
  line-height: 1.2;
}

.parent-share-report-text {
  white-space: pre-wrap;
  font-size: 18px;
  line-height: 1.68;
}

.parent-share-orientation {
  max-width: 720px;
  padding: 12px 14px;
  border-left: 4px solid #cbd5e1;
  background: #f8fafc;
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
}

.parent-share-markdown {
  display: grid;
  gap: 19px;
  white-space: normal;
}

.parent-share-markdown h3 {
  margin: 10px 0 0;
  color: #123047;
  font-size: 23px;
  line-height: 1.25;
}

.parent-share-markdown p {
  margin: 0;
}

#annualPanel {
  max-width: 920px;
}

#annualPanel h2 {
  max-width: 760px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
}

@media (min-width: 721px) {
  #annualPanel h2 {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(28px, 3.4vw, 38px);
  }
}

.annual-address-public-text {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.08);
}

.annual-address-public-text h3 {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(16, 42, 67, 0.10);
  color: #0f5963;
  font-size: 26px;
}

.annual-address-public-text h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.annual-address-public-text p {
  color: #27384a;
  font-size: 18px;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.annual-address-pullquote {
  margin: 10px 0;
  padding: 18px 22px;
  border-left: 4px solid #19b8c5;
  border-radius: 14px;
  background: #f4fbfb;
}

.annual-address-pullquote p {
  margin: 0;
  color: #102a43;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  hyphens: none;
}

.annual-address-pullquote cite {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 15px;
  font-style: normal;
  text-align: left;
}

.annual-address-signature {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  color: #27384a;
  text-align: left;
}

.annual-address-signature strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.annual-address-signature span {
  color: #667085;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.development-control-room-page .readiness-checklist {
  position: fixed;
  right: 18px;
  top: 118px;
  z-index: 20;
  width: min(280px, calc(100vw - 36px));
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.14);
}

.development-control-room-page .readiness-checklist-header {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.development-control-room-page .readiness-checklist-header h2 {
  margin: 0;
  color: #102a43;
  font-size: 18px;
  line-height: 1.2;
}

.development-control-room-page .readiness-checklist ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.development-control-room-page .readiness-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px 9px 30px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 10px;
  background: #f8fafc;
  position: relative;
}

.development-control-room-page .readiness-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.development-control-room-page .readiness-item.complete {
  border-color: rgba(22, 163, 74, 0.22);
  background: #f0fdf4;
}

.development-control-room-page .readiness-item.complete::before {
  background: #16a34a;
}

.development-control-room-page .readiness-item.warning {
  border-color: rgba(217, 119, 6, 0.26);
  background: #fffbeb;
}

.development-control-room-page .readiness-item.warning::before {
  background: #d97706;
}

.development-control-room-page .readiness-label {
  color: #102a43;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.development-control-room-page .readiness-detail {
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}

.development-control-room-page .prepare-panel {
  display: grid;
  gap: 16px;
}

.development-control-room-page .prepare-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

.development-control-room-page .prepare-section-heading,
.development-control-room-page .prepare-section summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.development-control-room-page .prepare-section-heading.action-heading {
  justify-content: space-between;
}

.development-control-room-page .prepare-section-heading h2,
.development-control-room-page .prepare-section-heading p {
  margin: 0;
}

.development-control-room-page .prepare-section-heading p:not(.eyebrow) {
  margin-top: 5px;
  color: #64748b;
  line-height: 1.45;
}

.development-control-room-page .prepare-section-number {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #102a43;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.development-control-room-page .prepare-section h2 {
  color: #102a43;
  font-size: 22px;
  line-height: 1.2;
}

.development-control-room-page .prepare-section button {
  min-height: 40px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: #1f2933;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.development-control-room-page .prepare-section button:disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
}

.development-control-room-page .prepare-section label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.development-control-room-page .prepare-section input,
.development-control-room-page .prepare-section select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #c9ced6;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2933;
  font: inherit;
}

.development-control-room-page .prepare-section-inputs {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.16);
}

.development-control-room-page .prepare-section-draft,
.development-control-room-page .prepare-section-preview {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.18);
}

.development-control-room-page .prepare-section-review {
  background: #f8fafc;
  border-color: rgba(100, 116, 139, 0.16);
}

.development-control-room-page .prepare-section-library,
.development-control-room-page .prepare-section-backup,
.development-control-room-page .prepare-section-diagnostics {
  background: #ffffff;
  border-color: rgba(100, 116, 139, 0.16);
}

.development-control-room-page .prepare-section-dry-run {
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.22);
}

.development-control-room-page .prepare-section-publish {
  border: 2px solid rgba(185, 28, 28, 0.36);
  background: #fff7ed;
}

.development-control-room-page .prepare-section-publish .prepare-section-number {
  background: #b91c1c;
}

.development-control-room-page .prepare-section-publish button {
  background: #b91c1c;
}

.development-control-room-page .prepare-section-publish button:disabled {
  background: #fee2e2;
  color: #991b1b;
}

.development-control-room-page .prepare-section summary {
  cursor: pointer;
  color: #102a43;
  font-size: 18px;
  font-weight: 800;
  list-style-position: outside;
}

.development-control-room-page .prepare-details-body {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 42, 67, 0.08);
}

.development-control-room-page .prepare-section .draft-actions {
  justify-content: flex-start;
}

.development-control-room-page .prepare-section .report-library-table-wrap {
  margin-top: 0;
}

.development-control-room-page .prepare-section .publish-diagnostics,
.development-control-room-page .prepare-section .dry-run-grid {
  margin-top: 0;
}

.development-control-room-page .prepare-section .dry-run-json {
  min-height: 280px;
}

.development-control-room-page .history-picker {
  display: grid;
  gap: 8px;
}

.development-control-room-page .history-picker p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.development-control-room-page .period-helper {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.development-control-room-page .history-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.development-control-room-page .period-option {
  display: inline-grid;
  gap: 2px;
  align-items: center;
  min-width: 132px;
  padding: 9px 11px;
  border: 1px solid rgba(16, 42, 67, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #102a43;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
}

.development-control-room-page .period-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.development-control-room-page .period-option.current {
  border-color: rgba(37, 99, 235, 0.42);
  background: #dbeafe;
}

.development-control-room-page .period-option.selected {
  border-color: rgba(22, 163, 74, 0.42);
  background: #dcfce7;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.16);
}

.development-control-room-page .period-option.selected::after,
.development-control-room-page .period-option.current::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.development-control-room-page .period-option.current::after {
  background: #2563eb;
}

.development-control-room-page .period-option.unavailable {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.82);
  color: #94a3b8;
  cursor: not-allowed;
}

.development-control-room-page .period-availability {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.development-control-room-page .prepare-data-review {
  display: grid;
  gap: 12px;
}

.development-control-room-page .historical-review-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(16, 42, 67, 0.12);
  border-radius: 12px;
  background: #ffffff;
}

.development-control-room-page .historical-review-card h3 {
  margin: 0;
  color: #102a43;
  font-size: 17px;
  line-height: 1.3;
}

.development-control-room-page .historical-review-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.development-control-room-page .historical-review-grid dt,
.development-control-room-page .historical-review-grid dd {
  margin: 0;
  padding: 8px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.development-control-room-page .historical-review-grid dt {
  font-weight: 800;
}

.development-control-room-page .historical-review-grid dd {
  background: #ffffff;
  overflow-wrap: anywhere;
}

@media (min-width: 1280px) {
  .development-control-room-page {
    padding-right: 318px;
  }
}

@media (max-width: 1120px) {
  .development-control-room-page .readiness-checklist {
    position: static;
    width: auto;
    max-height: none;
    margin: 0 0 18px;
  }

  .development-control-room-page .prepare-section-heading.action-heading {
    display: grid;
  }
}

@media (max-width: 720px) {
  .development-control-room-page .historical-review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .annual-address-public-text p {
    text-align: left;
    hyphens: manual;
  }
}

.parent-share-guidance-block {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid #c9e7ea;
  border-left: 5px solid #19b8c5;
  border-radius: 14px;
  background: #f4fbfb;
}

.parent-share-guidance-block h3,
.parent-share-guidance-block p {
  margin: 0;
}

.parent-share-guidance-block h3 {
  color: #123047;
  font-size: 20px;
  line-height: 1.25;
}

.parent-share-guidance-block p {
  color: #405b6b;
  font-size: 16px;
  line-height: 1.55;
}

.parent-share-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin: 30px 0 10px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 105, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(16, 42, 67, 0.06);
  color: #5d7183;
  font-size: 13px;
  text-align: center;
}

.parent-share-footer-brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 680px;
}

.parent-share-footer-brand-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 100px;
  padding: 20px 22px;
  border: 1px solid #d9eaed;
  border-radius: 14px;
  background: #fbfefe;
  color: #355466;
  text-decoration: none;
}

.parent-share-footer-brand-card:hover {
  border-color: #19b8c5;
  text-decoration: none;
}

.parent-share-footer-brand-card img {
  display: block;
  max-width: 138px;
  max-height: 42px;
  object-fit: contain;
}

.parent-share-footer-brand-card span {
  color: #355466;
  font-size: 14px;
  font-weight: bold;
}

.parent-share-footer-brand-card strong {
  color: #0f5963;
  font-size: 13px;
  font-weight: bold;
}

.parent-share-footer p {
  margin: 0;
}

.parent-share-footer a {
  color: #0f5963;
  font-weight: bold;
  text-decoration: none;
}

.parent-share-footer a:hover {
  text-decoration: underline;
}

.parent-share-page .local-parent-development-preview {
  position: static;
  top: auto;
  max-width: 100%;
}

#developmentPanel .local-parent-development-preview .preview-header,
#developmentPanel .local-parent-development-preview .column-label,
#developmentPanel .local-parent-development-preview .preview-label,
#developmentPanel .local-parent-development-preview .prototype-section-heading .eyebrow,
#developmentPanel .local-parent-development-preview .compact-card > .eyebrow {
  display: none;
}

#developmentPanel .local-parent-development-preview .public-development-metric {
  margin: 6px 0 8px;
  color: #102a43;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
}

#developmentPanel .local-parent-development-preview .journey-marker.map-pin-marker {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: #d92d20;
  box-shadow: 0 0 0 2px rgba(16, 42, 67, 0.34), 0 10px 22px rgba(16, 42, 67, 0.28);
  transform: translate(-50%, -100%) rotate(-45deg);
  z-index: 4;
}

#developmentPanel .local-parent-development-preview .journey-marker.map-pin-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

#developmentPanel .local-parent-development-preview .journey-marker.map-pin-marker span {
  position: absolute;
  left: 28px;
  top: -7px;
  width: max-content;
  max-width: 160px;
  padding: 6px 9px;
  border: 1px solid rgba(16, 42, 67, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #102a43;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
  box-shadow: 0 7px 18px rgba(16, 42, 67, 0.18);
  transform: rotate(45deg);
}

#developmentPanel .local-parent-development-preview .journey-map.public-development-focused-map {
  position: relative;
  height: clamp(230px, 32vw, 320px);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#developmentPanel .local-parent-development-preview .journey-map.public-development-focused-map::-webkit-scrollbar {
  display: none;
}

#developmentPanel .local-parent-development-preview .public-development-focused-surface {
  position: relative;
}

#developmentPanel .local-parent-development-preview .public-development-focused-map .journey-marker.public-development-focused-marker {
  z-index: 6;
}

#developmentPanel .local-parent-development-preview .public-development-focused-map .journey-marker.public-development-focused-marker span {
  left: 50%;
  top: -42px;
  transform: translateX(-50%) rotate(45deg);
}

#developmentPanel .local-parent-development-preview .public-development-focused-surface > img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#developmentPanel .local-parent-development-preview .public-activity-history-title {
  margin: 0 0 10px;
  color: #102a43;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

#developmentPanel .local-parent-development-preview .public-activity-period-label {
  margin: 0 0 10px;
  color: #102a43;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#developmentPanel .local-parent-development-preview .activity-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#developmentPanel .local-parent-development-preview .activity-layout > div:first-child {
  width: 100%;
}

#developmentPanel .local-parent-development-preview .public-activity-split-panel,
#developmentPanel .local-parent-development-preview .public-activity-graph-panel {
  padding: 14px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
}

#developmentPanel .local-parent-development-preview .public-activity-graph-panel {
  overflow-x: auto;
}

#developmentPanel .local-parent-development-preview .activity-line-chart {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 420px;
}

#developmentPanel .local-parent-development-preview .activity-legend[hidden] {
  display: none;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale.growth-scale {
  min-height: 252px;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-labels {
  position: relative;
  z-index: 2;
  padding-top: 122px;
  font-size: 12px;
  line-height: 1.15;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-role-ticks {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 90px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
  pointer-events: none;
  z-index: 2;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-role-ticks i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: #667085;
  box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.18);
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout {
  position: absolute;
  left: 0;
  display: grid;
  gap: 2px;
  width: 126px;
  padding: 7px 8px;
  border: 1px solid rgba(16, 42, 67, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  color: #344054;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  box-shadow: 0 8px 18px rgba(16, 42, 67, 0.12);
  transform: translateX(var(--si-callout-shift, -50%));
  z-index: 5;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout.previous {
  top: 8px;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout.current {
  top: 158px;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout strong,
#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout span {
  display: block;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout strong {
  color: #102a43;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout::after {
  content: "";
  position: absolute;
  left: var(--si-anchor-position, 50%);
  width: 1px;
  border-left: 1px dashed rgba(102, 112, 133, 0.72);
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout.previous::after {
  top: 100%;
  height: 46px;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .public-spatial-callout.current::after {
  bottom: 100%;
  height: 62px;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-marker span,
#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-marker.first span,
#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-marker.current span {
  display: none;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-marker.public-spatial-marker-near-overlap {
  margin-left: 0;
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-marker.public-spatial-marker-near-overlap .growth-person {
  opacity: 0.95;
  filter: drop-shadow(0 0 0 #ffffff) drop-shadow(0 2px 4px rgba(16, 42, 67, 0.18));
}

#developmentPanel .local-parent-development-preview #previewGrowthScale .growth-marker.public-spatial-marker-near-overlap::after {
  content: none;
}

#developmentPanel .local-parent-development-preview .public-self-image-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(82px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
}

#developmentPanel .local-parent-development-preview .public-self-image-chart-header {
  grid-column: 1 / -1;
}

#developmentPanel .local-parent-development-preview .public-self-image-chart-header h4 {
  margin: 0 0 4px;
  color: #102a43;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

#developmentPanel .local-parent-development-preview .public-self-image-chart-header p {
  margin: 0 0 4px;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.35;
}

#developmentPanel .local-parent-development-preview .public-self-image-column {
  display: grid;
  grid-template-rows: auto 150px auto auto;
  gap: 7px;
  align-items: end;
  text-align: center;
  min-width: 0;
}

#developmentPanel .local-parent-development-preview .public-self-image-column strong {
  color: #102a43;
  font-size: 0.86rem;
  line-height: 1.2;
}

#developmentPanel .local-parent-development-preview .public-self-image-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 150px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.72);
  overflow: hidden;
}

#developmentPanel .local-parent-development-preview .public-self-image-bar {
  width: 62%;
  min-height: 6px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #1ba7b6, #12656f);
}

#developmentPanel .local-parent-development-preview .public-self-image-column span {
  color: #102a43;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
}

#developmentPanel .local-parent-development-preview .public-self-image-column small {
  color: #667085;
  font-size: 0.75rem;
  line-height: 1.2;
}

@media (max-width: 760px) {
  #developmentPanel .local-parent-development-preview .public-self-image-chart {
    grid-template-columns: repeat(3, minmax(82px, 1fr));
  }
}

#developmentPanel .local-parent-development-preview .leadership-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 10px 0 12px;
}

#developmentPanel .local-parent-development-preview .public-leadership-card {
  grid-column: 1 / -1;
}

#developmentPanel .local-parent-development-preview .leadership-role {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.86);
}

#developmentPanel .local-parent-development-preview .leadership-role[hidden] {
  display: none;
}

#developmentPanel .local-parent-development-preview .leadership-role strong,
#developmentPanel .local-parent-development-preview .leadership-role span,
#developmentPanel .local-parent-development-preview .leadership-role em {
  display: block;
  font-style: normal;
}

#developmentPanel .local-parent-development-preview .leadership-role strong {
  color: #102a43;
  font-size: 0.9rem;
}

#developmentPanel .local-parent-development-preview .leadership-role span {
  color: #0f5963;
  font-size: 1rem;
  font-weight: 800;
}

#developmentPanel .local-parent-development-preview .leadership-role em {
  color: #667085;
  font-size: 0.78rem;
}

#developmentPanel .local-parent-development-preview .leadership-role.active {
  border-color: rgba(15, 89, 99, 0.78);
  background: rgba(224, 247, 250, 0.98);
  box-shadow: inset 0 0 0 3px rgba(27, 167, 182, 0.26), 0 10px 22px rgba(16, 42, 67, 0.10);
}

#developmentPanel .local-parent-development-preview .public-leadership-card-badge {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #0f5963;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

#developmentPanel .local-parent-development-preview .leadership-role.public-leadership-previous-role {
  border-style: dashed;
  background: rgba(248, 250, 252, 0.66);
}

#developmentPanel .local-parent-development-preview .public-leadership-previous,
#developmentPanel .local-parent-development-preview .public-leadership-movement {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.35;
}

#developmentPanel .local-parent-development-preview .public-leadership-movement {
  padding: 9px 11px;
  border: 1px solid rgba(16, 42, 67, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

#developmentPanel .local-parent-development-preview .public-satisfaction-card {
  grid-column: 1 / -1 !important;
  width: 100%;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0 14px;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-summary-box {
  padding: 16px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.86);
}

#developmentPanel .local-parent-development-preview .public-satisfaction-summary-box span,
#developmentPanel .local-parent-development-preview .public-satisfaction-summary-box strong {
  display: block;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-summary-box span {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-summary-box strong {
  margin-top: 6px;
  color: #102a43;
  font-size: 1.45rem;
  line-height: 1.15;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-graph {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(16, 42, 67, 0.10);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
  overflow-x: auto;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-graph h4 {
  margin: 0 0 12px;
  color: #102a43;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

#developmentPanel .local-parent-development-preview .public-satisfaction-graph svg {
  display: block;
  width: 100%;
  min-width: 620px;
}

#developmentPanel .local-parent-development-preview .public-highlights-card {
  grid-column: 1 / -1 !important;
  width: 100%;
}

@media (max-width: 620px) {
  #developmentPanel .local-parent-development-preview .public-satisfaction-summary {
    grid-template-columns: 1fr;
  }
}

#developmentPanel .local-parent-development-preview .public-development-full-map-toggle {
  width: fit-content;
  min-height: 38px;
  margin-top: 12px;
  padding: 9px 13px;
  border: 1px solid #b9dce1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f5963;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

#developmentPanel .local-parent-development-preview .public-development-full-map-toggle:hover {
  background: #f2fafa;
}

#developmentPanel .local-parent-development-preview .public-development-full-map {
  margin-top: 10px;
}

#developmentPanel .local-parent-development-preview .public-development-full-map[hidden] {
  display: none;
}

#developmentPanel .local-parent-development-preview .public-development-full-map-frame {
  overflow: auto;
  max-height: min(78vh, 760px);
  border: 1px solid #c9e7ea;
  border-radius: 14px;
  background: #f4fbfb;
}

#developmentPanel .local-parent-development-preview .public-development-full-map-surface {
  position: relative;
  width: 100%;
  min-width: 760px;
}

#developmentPanel .local-parent-development-preview .public-development-full-map-surface img {
  display: block;
  width: 100%;
  height: auto;
}

#developmentPanel .local-parent-development-preview .public-development-full-map-marker {
  z-index: 5;
}

.development-control-room-page #controlMap.control-map,
.development-control-room-page #previewJourneyMap.journey-map {
  min-height: 0 !important;
  overflow: hidden;
}

.development-control-room-page #controlMap.control-map > img,
.development-control-room-page #previewJourneyMap.journey-map > img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.parent-share-table-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

#languagePanel .parent-share-table-wrap {
  margin-top: 2px;
}

.parent-share-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.5;
}

.parent-share-table th,
.parent-share-table td {
  padding: 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.parent-share-table th {
  background: #f9fafb;
  color: #475467;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.parent-share-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

#languagePanel .parent-share-table {
  font-size: 14px;
  line-height: 1.42;
}

#languagePanel .parent-share-table th,
#languagePanel .parent-share-table td {
  padding: 10px 11px;
  border-color: #dce8ea;
}

#languagePanel .parent-share-table th {
  background: #f2fafa;
  color: #355466;
  font-size: 11px;
}

#languagePanel .parent-share-table tbody tr:nth-child(even) {
  background: #fbfefe;
}

#languagePanel .parent-share-status-table tbody tr.language-stage-1 {
  background: #fff9d8;
}

#languagePanel .parent-share-status-table tbody tr.language-stage-2 {
  background: #ecf9e9;
}

#languagePanel .parent-share-status-table tbody tr.language-stage-3 {
  background: #e8f8fb;
}

#languagePanel .parent-share-status-table tbody tr.language-stage-4 {
  background: #fff1df;
}

#languagePanel .parent-share-status-table tbody tr.language-stage-5 {
  background: #fdecec;
}

.parent-share-creation-block {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 16px;
  border: 1px solid #d9eaed;
  border-radius: 14px;
  background: #f8fcfc;
}

.parent-share-creation-block h3 {
  margin: 0;
  color: #123047;
}

.parent-share-creation-block p {
  color: #405b6b;
  font-size: 15px;
  line-height: 1.55;
}

.parent-share-audio-table audio {
  width: 100%;
  margin-top: 0;
}

.parent-share-audio-table {
  min-width: 820px;
  table-layout: fixed;
}

.parent-share-audio-table th:first-child,
.parent-share-audio-table td:first-child {
  width: 260px;
}

.parent-share-audio-table th:nth-child(2),
.parent-share-audio-table td:nth-child(2),
.parent-share-audio-table th:nth-child(3),
.parent-share-audio-table td:nth-child(3) {
  width: calc((100% - 260px) / 2);
}

.parent-share-audio-label {
  color: #123047;
  font-weight: bold;
}

.parent-share-audio-control {
  display: grid;
  gap: 7px;
}

.parent-share-audio-control-cell {
  background: #fbfefe;
}

.parent-share-evidence-access {
  display: grid;
  gap: 12px;
}

.parent-share-evidence-toggle {
  width: fit-content;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #b9dce1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f5963;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.parent-share-evidence-toggle:hover {
  background: #f2fafa;
}

.parent-share-evidence-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d8dee8;
  border-radius: 14px;
  background: #f8fafc;
}

.parent-share-evidence-section[hidden] {
  display: none;
}

.parent-share-evidence-section h3,
.parent-share-evidence-section p {
  margin: 0;
}

.parent-share-evidence-list {
  display: grid;
  gap: 12px;
}

.parent-share-evidence-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.parent-share-evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.parent-share-evidence-header h4 {
  margin: 0;
  font-size: 17px;
}

.parent-share-evidence-marker {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f6ed;
  color: #1f2933;
  font-size: 12px;
  font-weight: bold;
}

.parent-share-evidence-text {
  color: #1f2933;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .parent-share-page {
    margin-top: 0;
    padding: 18px;
  }

  .parent-share-page .player-hero {
    padding: 14px;
  }

  .parent-share-page .player-hero h2 {
    font-size: 28px;
  }

  .parent-share-report-card {
    padding: 18px;
  }

  .parent-share-tabs {
    gap: 6px;
  }

  .parent-share-tab {
    flex: 1 1 100px;
    padding: 10px 12px;
  }

  .parent-share-report-text {
    font-size: 16px;
  }

  .parent-share-markdown h3 {
    font-size: 21px;
  }

  .parent-share-footer {
    padding: 18px;
  }

  .parent-share-footer-brands {
    grid-template-columns: 1fr;
  }

  #developmentPanel .local-parent-development-preview .public-development-full-map-surface {
    min-width: 640px;
  }

  .parent-share-table th,
  .parent-share-table td {
    padding: 12px;
  }

  .parent-share-evidence-toggle {
    width: 100%;
  }

  .parent-share-evidence-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Tool 1 — Activity Percentage graph input */
.activity-graph-frame {
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.activity-graph-input {
  position: relative;
  display: grid;
  grid-template-columns: 120px repeat(6, minmax(86px, 1fr));
  gap: 8px;
  min-width: 760px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.activity-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.activity-path-line {
  fill: none;
  stroke: #1f2933;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-path-dot {
  fill: #1f2933;
  stroke: white;
  stroke-width: 3;
}

.activity-graph-corner,
.activity-graph-header,
.activity-row-label {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
}

.activity-graph-corner,
.activity-graph-header {
  background: white;
  border: 1px solid #e5e7eb;
  color: #475467;
  font-size: 13px;
}

.activity-row-label.objective {
  background: #e7f6ed;
}

.activity-row-label.subjective {
  background: #eef6ff;
}

.activity-graph-cell {
  position: relative;
  z-index: 3;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.activity-graph-cell.objective {
  background: #f0fdf4;
}

.activity-graph-cell.subjective {
  background: #eff6ff;
}

.activity-graph-cell span {
  width: 14px;
  height: 14px;
  display: block;
  margin: auto;
  border-radius: 50%;
  background: #cbd5e1;
}

.activity-graph-cell:hover {
  outline: 3px solid rgba(31, 41, 51, 0.18);
}

.activity-graph-cell.selected {
  outline: 3px solid #1f2933;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.activity-graph-cell.selected span {
  background: #1f2933;
}

.activity-centre-line {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  padding: 8px 12px;
  text-align: center;
  border-radius: 999px;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  color: #9a3412;
  font-size: 14px;
}

.path-display {
  margin-top: 14px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-weight: bold;
  font-size: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.oscillation-chart-wrap {
  margin-top: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow-x: auto;
}

.oscillation-scroll {
  min-width: 900px;
}

.oscillation-svg {
  width: 100%;
  height: auto;
  display: block;
}

.oscillation-line {
  fill: none;
  stroke: #1f2933;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oscillation-point circle {
  fill: #1f2933;
  stroke: white;
  stroke-width: 3;
}

.oscillation-point.warning-dot circle {
  fill: #9a3412;
}

.oscillation-point text {
  font-size: 12px;
  fill: #475467;
}

.grid-line {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.threshold-line {
  stroke: #9a3412;
  stroke-width: 3;
  stroke-dasharray: 8 8;
}

.oscillation-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: #475467;
}

/* Activity path oscillation graph */
.activity-oscillation-line {
  fill: none;
  stroke: #1f2933;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oscillation-row-line {
  stroke-width: 18;
  opacity: 0.55;
}

.oscillation-row-line.objective-row {
  stroke: #e7f6ed;
}

.oscillation-row-line.subjective-row {
  stroke: #eef6ff;
}

.oscillation-row-label {
  font-size: 15px;
  font-weight: bold;
  fill: #1f2933;
}

.activity-centre-threshold {
  stroke: #9a3412;
  stroke-width: 3;
  stroke-dasharray: 8 8;
}

.centre-label {
  font-size: 12px;
  font-weight: bold;
  fill: #9a3412;
}

.session-marker-line {
  stroke: #cbd5e1;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.session-label {
  font-size: 13px;
  font-weight: bold;
  fill: #475467;
}

.activity-path-point circle {
  stroke: white;
  stroke-width: 3;
}

.activity-path-point.objective-dot circle {
  fill: #166534;
}

.activity-path-point.subjective-dot circle {
  fill: #1d4ed8;
}

.activity-bar {
  position: relative;
}

.activity-bar-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: bold;
  color: #1f2933;
  white-space: nowrap;
}

.activity-satisfaction-wrap {
  margin-top: 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow-x: auto;
}

.activity-satisfaction-svg {
  width: 100%;
  min-width: 900px;
  height: auto;
  display: block;
}

.activity-satisfaction-bar {
  fill: #1f2933;
  opacity: 0.72;
}

.bar-value,
.satisfaction-label,
.axis-label {
  font-size: 12px;
  font-weight: bold;
  fill: #475467;
}

.satisfaction-line {
  fill: none;
  stroke: #9a3412;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.satisfaction-dot {
  fill: #9a3412;
  stroke: white;
  stroke-width: 3;
}

.previous-patterns {
  margin-top: 16px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.previous-patterns summary {
  cursor: pointer;
  font-weight: bold;
}

.previous-path-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.previous-path-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.previous-path-item span {
  font-weight: bold;
  overflow-x: auto;
  white-space: nowrap;
}

.previous-path-item small {
  color: #667085;
}

.simple-fieldset {
  border: 1px solid #d8e1ea;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  background: #f7fafc;
}

.simple-fieldset legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 6px;
}

.simple-fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.simple-fieldset input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.challenge-option {
  border: 1px solid transparent;
}

.challenge-yellow {
  background: #fff8d8 !important;
  border-color: #f1d36b;
}

.challenge-blue {
  background: #e8f2ff !important;
  border-color: #9dc5f3;
}

.challenge-orange {
  background: #fff0df !important;
  border-color: #f0b26f;
}

.challenge-purple {
  background: #f3eaff !important;
  border-color: #c6a4ef;
}

.history-level-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.history-level-card {
  min-width: 140px;
  padding: 14px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #d8e1ea;
}

.history-level-card strong,
.history-level-card span,
.history-level-card small {
  display: block;
}

.history-level-card span {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 6px 0;
}

.activity-history-card {
  margin: 14px 0;
  padding: 16px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid #d8e1ea;
}

.activity-history-card h3 {
  margin-bottom: 4px;
}

.mini-activity-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-top: 10px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.mini-activity-centre-line {
  stroke: #94a3b8;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.mini-activity-line {
  fill: none;
  stroke: #1f2937;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-section-card {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #f7fafc;
  border: 1px solid #d8e1ea;
}

.form-section-card h3 {
  margin-bottom: 12px;
}

.record-detail-grid {
  display: grid;
  gap: 16px;
}

.record-raw-text {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 14px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid #d8e1ea;
  font-size: 0.9rem;
}

.milestone-stage-card {
  margin: 14px 0;
  padding: 14px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #d8e1ea;
}

.milestone-stage-card h4 {
  margin-bottom: 10px;
}

.milestone-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 7px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
}

.milestone-row input[type="checkbox"] {
  margin-top: 2px;
}

.si-preview-item {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d8e1ea;
}

.si-preview-item p {
  margin-top: 6px;
}

.form-block {
  margin: 22px 0;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid #d8e1ea;
}

.form-block-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.form-block-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.block-identity { background: #f4f7fb; }
.block-language { background: #eef6ff; }
.block-si { background: #f5efff; }
.block-activity { background: #effaf3; }
.block-archetypes { background: #fff8df; }
.block-satisfaction { background: #fff1ec; }
.block-engagement { background: #fff6df; }
.block-money { background: #eefbf4; }
.block-interpretation { background: #f7f4ef; }


.facilitator-stats-grid {
  margin-top: 28px;
}

.facilitator-functions-panel {
  margin-top: 28px;
  background: #fffaf0;
  border: 1px solid #f0d9a8;
}

.primary-functions-grid {
  margin-top: 18px;
}

.primary-function-card {
  background: #ffffff;
  border: 1px solid #e2b86f;
  box-shadow: 0 8px 20px rgba(90, 60, 20, 0.08);
}

.primary-function-card h3::after {
  content: " →";
}

.primary-function-card:hover {
  transform: translateY(-2px);
}

.dashboard-block {
  margin: 28px 0;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #d8e1ea;
}

.dashboard-block-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-block-number {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.dashboard-block-stats {
  background: #f4f7fb;
}

.dashboard-block-functions {
  background: #fffaf0;
  border-color: #f0d9a8;
}

.dashboard-block-work {
  background: #f7fafc;
}

.dashboard-block-players {
  background: #f5f7ff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button-row button {
  cursor: pointer;
}

/* Language manual entry */
#languageManualMilestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.milestone-stage-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.milestone-stage-card h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.milestone-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  line-height: 1.35;
}

.milestone-row:first-of-type {
  border-top: 0;
}

.milestone-row input {
  margin-top: 2px;
}

.milestone-row span {
  display: block;
}

#languageManualPanel .help-text {
  margin: 10px 0 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

#languageParsePreview {
  margin-top: 16px;
}

#languageParsePreview div {
  margin: 4px 0;
}

/* Compact 5-column language manual entry */
.block-language {
  grid-column: 1 / -1;
}

#languageManualPanel {
  overflow-x: auto;
}

#languageManualMilestones {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 8px;
  min-width: 950px;
  margin-top: 12px;
}

#languageManualMilestones .milestone-stage-card {
  border-radius: 8px;
  padding: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

#languageManualMilestones .milestone-stage-card h4 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: center;
}

#languageManualMilestones .milestone-row {
  display: grid;
  grid-template-columns: 1fr 18px;
  align-items: center;
  gap: 4px;
  padding: 5px 4px;
  min-height: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.62rem;
  line-height: 1.15;
  background: rgba(255, 255, 255, 0.5);
}

#languageManualMilestones .milestone-row:first-of-type {
  border-top: 0;
}

#languageManualMilestones .milestone-row input {
  width: 12px;
  height: 12px;
  margin: 0;
  justify-self: end;
}

#languageManualMilestones .milestone-row span {
  display: block;
}

/* Historical language stage colours */
#languageManualMilestones .milestone-stage-card:nth-child(1) {
  background: rgba(255, 235, 59, 0.35);
}

#languageManualMilestones .milestone-stage-card:nth-child(2) {
  background: rgba(76, 175, 80, 0.28);
}

#languageManualMilestones .milestone-stage-card:nth-child(3) {
  background: rgba(3, 169, 244, 0.28);
}

#languageManualMilestones .milestone-stage-card:nth-child(4) {
  background: rgba(255, 152, 0, 0.32);
}

#languageManualMilestones .milestone-stage-card:nth-child(5) {
  background: rgba(244, 67, 54, 0.32);
}

/* Cleaner language mode selector */
.block-language .simple-fieldset {
  display: flex;
  gap: 12px;
  align-items: center;
}

.block-language .simple-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 6px 10px;
  font-size: 0.8rem;
}

/* Fix compact language manual entry readability */
#languageManualMilestones {
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  min-width: 1150px;
  gap: 10px;
}

#languageManualMilestones .milestone-row {
  grid-template-columns: 1fr 18px;
  min-height: auto;
  padding: 6px 6px;
  font-size: 0.7rem;
  line-height: 1.2;
}

#languageManualMilestones .milestone-row span {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

#languageManualMilestones .milestone-row input {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  margin-top: 1px;
}

#languageManualMilestones .milestone-stage-card h4 {
  font-size: 0.78rem;
  margin-bottom: 8px;
}

#languageManualMilestones .milestone-stage-card {
  padding: 8px;
}

/* Refine language manual cards: use full card height and pull checkboxes closer */
#languageManualMilestones .milestone-stage-card {
  display: flex;
  flex-direction: column;
}

#languageManualMilestones .milestone-stage-card h4 {
  flex: 0 0 auto;
}

#languageManualMilestones .milestone-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 14px;
  column-gap: 3px;
}

#languageManualMilestones .milestone-row input {
  width: 10px;
  height: 10px;
  justify-self: start;
}

#languageManualMilestones .milestone-row span {
  max-width: 100%;
}

/* Spread shorter stages down the card instead of leaving one large empty block */
#languageManualMilestones .milestone-stage-card:nth-child(1) .milestone-row {
  margin-bottom: auto;
}

#languageManualMilestones .milestone-stage-card:nth-child(1) .milestone-row:last-child {
  margin-bottom: 0;
}

/* FINAL OVERRIDE — language manual mountain grid */
#languageManualPanel #languageManualMilestones {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  align-items: end !important;
  gap: 10px !important;
  min-width: 1120px !important;
  margin-top: 14px !important;
}

#languageManualPanel .language-stage-column {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  border: 1px solid rgba(0, 0, 0, 0.22) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

#languageManualPanel .language-stage-1 {
  height: 250px !important;
  background: rgba(255, 235, 59, 0.42) !important;
}

#languageManualPanel .language-stage-2 {
  height: 360px !important;
  background: rgba(76, 175, 80, 0.32) !important;
}

#languageManualPanel .language-stage-3 {
  height: 470px !important;
  background: rgba(3, 169, 244, 0.32) !important;
}

#languageManualPanel .language-stage-4 {
  height: 560px !important;
  background: rgba(255, 152, 0, 0.36) !important;
}

#languageManualPanel .language-stage-5 {
  height: 650px !important;
  background: rgba(244, 67, 54, 0.36) !important;
}

#languageManualPanel .language-stage-column h4 {
  margin: 0 0 auto !important;
  padding-bottom: 8px !important;
  text-align: center !important;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}

#languageManualPanel .language-stage-milestones {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

#languageManualPanel label.language-milestone-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 12px !important;
  align-items: start !important;
  gap: 4px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 5px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  box-sizing: border-box !important;
}

#languageManualPanel label.language-milestone-row span {
  display: block !important;
  font-size: 0.61rem !important;
  line-height: 1.12 !important;
  text-align: left !important;
  max-width: 100% !important;
}

#languageManualPanel label.language-milestone-row input {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  margin: 1px 0 0 !important;
  justify-self: end !important;
}

#languageManualPanel .language-stage-total {
  margin-top: 5px !important;
  padding: 4px !important;
  border-radius: 5px !important;
  background: rgba(255, 255, 255, 0.75) !important;
  text-align: center !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
}

/* Keep language stage titles safely inside each mountain card */
#languageManualPanel .language-stage-column {
  padding-top: 10px !important;
  overflow: hidden !important;
}

#languageManualPanel .language-stage-column h4 {
  position: static !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 auto !important;
  padding: 4px 4px 8px !important;
  box-sizing: border-box !important;
  line-height: 1.15 !important;
}

/* Slightly increase Stage 3 mountain height so title sits cleanly inside */
#languageManualPanel .language-stage-3 {
  height: 500px !important;
}


/* Save completion workflow */
.save-complete-panel {
  margin: 20px 0;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(46, 125, 50, 0.35);
  background: rgba(232, 245, 233, 0.95);
}

.save-complete-panel h2 {
  margin-top: 0;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.completion-actions button {
  width: auto;
}

/* Polished save completion panel */
.save-complete-panel {
  margin: 24px 0;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background:
    linear-gradient(135deg, rgba(232, 245, 233, 0.98), rgba(240, 253, 244, 0.92));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.save-complete-panel .eyebrow {
  color: #166534;
}

.save-complete-panel h2 {
  margin: 4px 0 8px;
  color: #14532d;
}

#historicalSaveCompleteSummary {
  margin: 0;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.completion-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.completion-actions button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.completion-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

#historicalNextSamePlayerButton {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(239, 246, 255, 0.95);
}

#historicalNextDifferentPlayerButton {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(255, 251, 235, 0.95);
}

#historicalViewPlayerHistoryButton {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(240, 253, 244, 0.95);
}

/* Session Evidence Review */
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.session-evidence-wide-table th,
.session-evidence-wide-table td {
  min-width: 92px;
  vertical-align: top;
}

.session-evidence-wide-table th:first-child,
.session-evidence-wide-table td:first-child {
  min-width: 160px;
  position: sticky;
  left: 0;
  background: #ffffff;
  z-index: 1;
}

.session-evidence-cell {
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  line-height: 1.2;
}

.session-evidence-cell strong {
  display: block;
  font-size: 0.95rem;
}

.session-evidence-cell small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.82;
}

.confidence-known {
  background: rgba(34, 197, 94, 0.16);
}

.confidence-reconstructed {
  background: rgba(59, 130, 246, 0.14);
}

.confidence-estimated {
  background: rgba(245, 158, 11, 0.18);
}

.confidence-unknown {
  background: rgba(148, 163, 184, 0.16);
}

.muted-cell {
  opacity: 0.45;
}

/* Session evidence fields inside historical import */
.session-evidence-fieldset {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.72);
}

.session-evidence-fieldset legend {
  padding: 0 8px;
  font-weight: 800;
  color: #1e3a8a;
}

.session-evidence-fieldset .help-text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.82;
}

.session-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.session-evidence-fieldset textarea {
  min-height: 70px;
}

@media (max-width: 900px) {
  .session-evidence-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 560px) {
  .session-evidence-grid {
    grid-template-columns: 1fr;
  }
}

/* Session Evidence Review polish */
.session-evidence-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.session-evidence-legend span {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  line-height: 1.3;
}

.session-evidence-legend strong {
  display: block;
  font-size: 0.82rem;
}

.session-evidence-wide-table {
  border-collapse: separate;
  border-spacing: 0;
}

.session-evidence-wide-table th {
  background: rgba(241, 245, 249, 0.95);
  font-size: 0.78rem;
  white-space: nowrap;
}

.session-evidence-wide-table td {
  background: rgba(255, 255, 255, 0.92);
}

.session-evidence-wide-table th,
.session-evidence-wide-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.session-evidence-wide-table th:first-child,
.session-evidence-wide-table td:first-child {
  box-shadow: 6px 0 12px rgba(15, 23, 42, 0.04);
}

.session-evidence-cell {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.session-evidence-cell strong {
  font-size: 1.05rem;
}

.session-evidence-cell small {
  margin-top: 2px;
}

.confidence-known {
  background: rgba(34, 197, 94, 0.20);
  border-color: rgba(34, 197, 94, 0.28);
}

.confidence-reconstructed {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.25);
}

.confidence-estimated {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.30);
}

.confidence-unknown {
  background: rgba(148, 163, 184, 0.20);
  border-color: rgba(148, 163, 184, 0.25);
}

#sessionEvidenceStatus.notice-card {
  margin-top: 12px;
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(37, 99, 235, 0.18);
}

#sessionEvidenceDetailBody td {
  vertical-align: top;
}

#sessionEvidenceDetailBody td:nth-child(7) {
  max-width: 320px;
  white-space: normal;
}

/* Keep Session Evidence page aligned with normal page margins */
.session-evidence-page {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.session-evidence-page .card,
.session-evidence-page .hero-card {
  width: 100%;
  box-sizing: border-box;
}

.session-evidence-page .table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

@media (max-width: 700px) {
  .session-evidence-page {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Put session evidence mode options on one row */
.session-evidence-mode-fieldset {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.session-evidence-mode-fieldset label {
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
}

.session-evidence-mode-fieldset input[type="radio"] {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

@media (max-width: 700px) {
  .session-evidence-mode-fieldset {
    flex-direction: column !important;
  }
}

/* Compact challenge count row */
.challenge-count-fieldset {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.challenge-count-fieldset legend {
  grid-column: 1 / -1;
}

.challenge-count-fieldset .challenge-option {
  margin: 0;
}

.challenge-count-fieldset .challenge-option input {
  width: 100%;
}

.challenge-count-fieldset label:not(.challenge-option) {
  grid-column: 1 / -1;
  margin-top: 6px;
}

@media (max-width: 800px) {
  .challenge-count-fieldset {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 520px) {
  .challenge-count-fieldset {
    grid-template-columns: 1fr;
  }
}

/* Five compact challenge inputs: yellow, blue, orange, purple, purple documents */
.challenge-count-fieldset {
  grid-template-columns: repeat(5, minmax(110px, 1fr)) !important;
}

.challenge-purple-docs {
  background: rgba(126, 87, 194, 0.14);
  border-color: rgba(126, 87, 194, 0.25);
}

@media (max-width: 900px) {
  .challenge-count-fieldset {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
  }
}

/* Login page */
.login-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.login-card {
  max-width: 520px;
  margin: 0 auto;
}

.login-form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.login-form input {
  width: 100%;
}

.login-form button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
}

#loginStatus.notice-card {
  margin: 4px 0 0;
}

/* Login page visual alignment */
.login-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 560px;
  padding: 32px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.login-card h1 {
  margin-bottom: 10px;
}

.login-card p {
  line-height: 1.5;
}

.login-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.login-form input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.login-form input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.45);
}

.login-form button {
  border: 0;
  background: #0f172a;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.login-form .secondary-button {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

#loginStatus.notice-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.16);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .login-page {
    padding: 18px;
  }

  .login-card {
    padding: 24px;
  }
}

/* Historical import compact row layouts */

/* Section 1: Input owner, player, year, report period on one row */
#historicalImportForm > .form-block:first-of-type {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

#historicalImportForm > .form-block:first-of-type .form-block-heading,
#historicalImportForm > .form-block:first-of-type .session-evidence-fieldset {
  grid-column: 1 / -1;
}

/* Keep Level / location neat after session evidence */
#historicalImportForm > .form-block:first-of-type > label {
  margin: 0;
}

/* Section 2: Leadership choices on one row */
.block-leadership .leadership-preference-fieldset {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
  gap: 10px !important;
}

.block-leadership .leadership-preference-fieldset legend {
  grid-column: 1 / -1;
}

.block-leadership .leadership-preference-fieldset label {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Section 4: Freedom, Security, Responsibility on one row */
.block-si {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.block-si .form-block-heading,
.block-si p,
.block-si #siPreview {
  grid-column: 1 / -1;
}

.block-si label {
  margin: 0;
}

/* Section 8: Project sessions and L3 reflections on one row */
.block-engagement {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.block-engagement .form-block-heading,
.block-engagement .compact-notice,
.block-engagement .challenge-count-fieldset {
  grid-column: 1 / -1;
}

.block-engagement > label {
  margin: 0;
}

/* Section 9: Money inputs on one row */
.block-money {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.block-money .form-block-heading {
  grid-column: 1 / -1;
}

.block-money label {
  margin: 0;
}

/* Responsive fallbacks */
@media (max-width: 1000px) {
  #historicalImportForm > .form-block:first-of-type,
  .block-money {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .block-leadership .leadership-preference-fieldset {
    grid-template-columns: repeat(2, minmax(140px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #historicalImportForm > .form-block:first-of-type,
  .block-si,
  .block-engagement,
  .block-money,
  .block-leadership .leadership-preference-fieldset {
    grid-template-columns: 1fr !important;
  }
}

/* Hide protected pages until login check completes */
body.auth-checking {
  visibility: hidden;
}

/* Logged-in / logout bar */
.twofish-logout-bar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  font-size: 0.82rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.18);
}

.twofish-logout-bar strong {
  color: #bfdbfe;
}

.twofish-logout-bar button {
  width: auto;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.twofish-logout-bar button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.twofish-logout-bar button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 640px) {
  .twofish-logout-bar {
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 12px;
  }
}


/* Session scores / satisfaction manual entry */
.satisfaction-mode-fieldset {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.satisfaction-mode-fieldset legend {
  flex: 0 0 100%;
}

.satisfaction-mode-fieldset label {
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 12px 14px !important;
  margin: 0 !important;
}

.satisfaction-mode-fieldset input[type="radio"] {
  width: auto !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.satisfaction-manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 12px;
}

.satisfaction-manual-actions button {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
}

.satisfaction-manual-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.satisfaction-manual-row {
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.14);
  margin: 0;
}

.satisfaction-manual-row span {
  font-size: 0.82rem;
  font-weight: 700;
}

.satisfaction-manual-row input {
  width: 100%;
  min-height: 34px;
  text-align: center;
}

@media (max-width: 700px) {
  .satisfaction-mode-fieldset {
    flex-direction: column !important;
  }
}

/* Historical import progress navigation */
.historical-progress-nav {
  position: fixed;
  right: 18px;
  top: 92px;
  z-index: 60;
  width: 190px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.historical-progress-nav p {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.historical-progress-nav button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.historical-progress-nav button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
  font-size: 0.68rem;
}

.historical-progress-nav button.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1e3a8a;
}

.historical-progress-nav button.active span {
  background: #1d4ed8;
  color: #ffffff;
}

/* Stronger progressive historical import card tints */
#historicalImportForm .form-block {
  border-left: 7px solid rgba(15, 23, 42, 0.12);
}

#historicalImportForm .form-block:nth-of-type(1) {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(37, 99, 235, 0.55);
}

#historicalImportForm .form-block:nth-of-type(2) {
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(16, 185, 129, 0.58);
}

#historicalImportForm .form-block:nth-of-type(3) {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.97), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(245, 158, 11, 0.62);
}

#historicalImportForm .form-block:nth-of-type(4) {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(59, 130, 246, 0.56);
}

#historicalImportForm .form-block:nth-of-type(5) {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.96), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(124, 58, 237, 0.58);
}

#historicalImportForm .form-block:nth-of-type(6) {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.97), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(34, 197, 94, 0.60);
}

#historicalImportForm .form-block:nth-of-type(7) {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.97), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(20, 184, 166, 0.62);
}

#historicalImportForm .form-block:nth-of-type(8) {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.96), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(99, 102, 241, 0.58);
}

#historicalImportForm .form-block:nth-of-type(9) {
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.97), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(249, 115, 22, 0.58);
}

#historicalImportForm .form-block:nth-of-type(10) {
  background: linear-gradient(135deg, rgba(250, 250, 249, 0.98), rgba(255, 255, 255, 0.96));
  border-left-color: rgba(120, 113, 108, 0.58);
}

/* Keep the floating progress out of the way on narrower screens */
@media (max-width: 1450px) {
  .historical-progress-nav {
    display: none;
  }
}

/* Progress nav visibility override */
@media (min-width: 1201px) {
  .historical-progress-nav {
    display: grid !important;
  }
}

@media (max-width: 1200px) {
  .historical-progress-nav {
    display: none !important;
  }
}

/* Manual card completion checks */
.historical-card-check-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

.historical-card-check-row span {
  font-size: 0.82rem;
  opacity: 0.72;
}

.historical-card-check-button {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.95);
  color: #1e3a8a;
  font-weight: 800;
  cursor: pointer;
}

.historical-card-check-button.checked {
  background: rgba(220, 252, 231, 0.95);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.form-block.historical-card-checked {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18), 0 10px 24px rgba(15, 23, 42, 0.06);
}

.historical-progress-nav button.checked {
  background: rgba(220, 252, 231, 0.92);
  border-color: rgba(34, 197, 94, 0.32);
  color: #166534;
}

.historical-progress-nav button.checked span {
  background: #16a34a;
  color: #ffffff;
}

.historical-progress-nav button.checked span::before {
  content: "✓";
  font-size: 0.75rem;
}

.historical-progress-nav button.checked span {
  font-size: 0;
}

.historical-progress-nav button.active:not(.checked) {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.28);
  color: #1e3a8a;
}

@media (max-width: 700px) {
  .historical-card-check-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Make final save button distinct from card-check buttons */
#historicalImportForm > button[type="submit"] {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  background: #16a34a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.24);
}

#historicalImportForm > button[type="submit"]:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.30);
}

/* Activity graph guidance */
.activity-guidance-card {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(239, 246, 255, 0.82);
}

.activity-guidance-card h4 {
  margin: 0 0 8px;
  color: #1e3a8a;
}

.activity-guidance-card ol {
  margin: 0 0 14px 20px;
  padding: 0;
  line-height: 1.45;
  font-size: 0.92rem;
}

.activity-guidance-card li {
  margin-bottom: 3px;
}

.external-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.external-tool-button:hover {
  background: #1e40af;
}

/* Make PlotDigitizer button smaller and visually distinct */
.activity-guidance-card .external-tool-button {
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 10px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.18);
}

.activity-guidance-card .external-tool-button:hover {
  background: #6d28d9;
}

/* Force PlotDigitizer button to stay compact */
.activity-guidance-card .external-tool-button {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  align-self: flex-start !important;
  justify-self: start !important;
  min-height: 32px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.18) !important;
}

.activity-guidance-card .external-tool-button:hover {
  background: #6d28d9 !important;
}

/* Simplified session count and developmental location */
.compact-session-evidence-fieldset {
  background: rgba(239, 246, 255, 0.78);
}

.session-count-only-grid {
  grid-template-columns: minmax(220px, 360px) !important;
}

.developmental-location-fieldset {
  grid-column: 1 / -1;
  margin: 8px 0 4px;
  padding: 16px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 16px;
  background: rgba(240, 253, 250, 0.72);
}

.developmental-location-fieldset legend {
  padding: 0 8px;
  font-weight: 800;
  color: #0f766e;
}

.developmental-location-grid {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(180px, 240px) 1fr;
  gap: 12px;
  align-items: end;
}

.developmental-slider-label,
.developmental-slider-scale,
.developmental-location-readout,
.developmental-location-note {
  grid-column: 1 / -1;
}

.developmental-unknown-option {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.developmental-unknown-option input {
  width: auto !important;
  margin: 0;
}

#developmentalLocationSlider {
  width: 100%;
}

.developmental-slider-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f766e;
  opacity: 0.9;
}

.developmental-slider-scale span {
  text-align: center;
}

.developmental-location-readout {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 184, 166, 0.18);
  font-weight: 900;
  color: #134e4a;
}

.developmental-location-note textarea {
  min-height: 66px;
}

@media (max-width: 800px) {
  .developmental-location-grid {
    grid-template-columns: 1fr;
  }
}

/* General operator guidance boxes */
.operator-guidance-card {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(255, 251, 235, 0.86);
}

.operator-guidance-card h4 {
  margin: 0 0 6px;
  color: #92400e;
}

.operator-guidance-card p {
  margin: 0 0 6px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.operator-guidance-card p:last-child {
  margin-bottom: 0;
}

/* Two activity graph paste boxes */
#activityGraphPaste,
#activityGraphPaste2 {
  min-height: 130px;
}

/* Manual archetype paper entry */
.manual-archetype-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 120px) minmax(90px, 120px);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(245, 243, 255, 0.72);
}

.manual-archetype-head {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b21b6;
}

.manual-archetype-grid label {
  margin: 0;
  font-weight: 800;
}

.manual-archetype-grid input {
  width: 100%;
  min-height: 36px;
}

@media (max-width: 700px) {
  .manual-archetype-grid {
    grid-template-columns: 1fr;
  }

  .manual-archetype-head {
    display: none;
  }
}

/* Card 4 two-photo activity paste layout */
.activity-paste-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.activity-paste-box {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.activity-paste-one {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.24);
}

.activity-paste-two {
  background: rgba(250, 245, 255, 0.9);
  border-color: rgba(124, 58, 237, 0.24);
}

.activity-paste-box textarea {
  min-height: 150px;
  background: rgba(255, 255, 255, 0.92);
}

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

/* Manual archetype paper entry */
.manual-archetype-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(90px, 120px) minmax(90px, 120px);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(245, 243, 255, 0.72);
}

.manual-archetype-head {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5b21b6;
}

.manual-archetype-grid label {
  margin: 0;
  font-weight: 800;
}

.manual-archetype-grid input {
  width: 100%;
  min-height: 36px;
}

@media (max-width: 700px) {
  .manual-archetype-grid {
    grid-template-columns: 1fr;
  }

  .manual-archetype-head {
    display: none;
  }
}

/* Card 5 horizontal archetype entry */
.archetype-horizontal-grid {
  grid-column: 1 / -1;
  display: grid !important;
  grid-template-columns: repeat(6, minmax(96px, 1fr)) !important;
  gap: 10px !important;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(245, 243, 255, 0.72);
}

.manual-archetype-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 7px;
  align-items: center;
  text-align: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.manual-archetype-card strong {
  font-size: 0.84rem;
  color: #4c1d95;
}

.manual-archetype-card label {
  display: grid;
  gap: 4px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  color: #5b21b6;
}

.manual-archetype-card input {
  min-height: 34px;
  width: 100%;
  text-align: center;
}

@media (max-width: 1100px) {
  .archetype-horizontal-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .archetype-horizontal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Local edit workflow */
.edit-mode-banner {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  background: rgba(255, 251, 235, 0.94);
  color: #78350f;
  line-height: 1.45;
}

.table-action-button {
  width: auto;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.96);
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.table-action-button:hover {
  background: rgba(219, 234, 254, 0.98);
}

#historicalImportForm > button.update-record-button {
  background: #0f766e;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.24);
}

#historicalImportForm > button.update-record-button:hover {
  background: #0f5f59;
}

/* Move historical progress navigation to the left so it does not cover table edit buttons */
.historical-progress-nav {
  left: 18px !important;
  right: auto !important;
}

/* Keep historical progress navigation on the RHS */
.historical-progress-nav {
  right: 18px !important;
  left: auto !important;
}

/* Archetype page headings and second page tint */
.archetype-page-heading {
  grid-column: 1 / -1;
  margin: 10px 0 2px;
  font-size: 0.9rem;
  color: #4c1d95;
}

.archetype-page-two-grid {
  background: rgba(250, 245, 255, 0.92) !important;
  border-color: rgba(168, 85, 247, 0.24) !important;
}

/* Developmental location slider: align labels with true numeric positions */
.developmental-slider-label {
  margin-bottom: 0 !important;
}

#developmentalLocationSlider {
  width: 100% !important;
  margin: 8px 0 0 !important;
}

.developmental-slider-scale {
  grid-column: 1 / -1;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  padding: 0 2px;
  margin-top: -2px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #0f766e;
}

.developmental-slider-scale span {
  text-align: center;
  min-width: 28px;
}

/* Make the readout feel like the actual stored value, not just a label */
.developmental-location-readout {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.developmental-location-readout::before {
  content: "Stored developmental location: ";
  font-weight: 700;
  color: #0f766e;
}

/* Card 2: make manual session score inputs wide enough for 10 */
#satisfactionManualRows .satisfaction-manual-row,
#satisfactionManualRows .satisfaction-score-row {
  grid-template-columns: minmax(120px, 150px) minmax(140px, 190px) minmax(90px, auto) !important;
  column-gap: 14px !important;
  align-items: end !important;
}

#satisfactionManualRows input[type="number"],
.satisfaction-manual-row input[type="number"],
.satisfaction-score-row input[type="number"],
input[name="satisfactionManualScore"] {
  min-width: 112px !important;
  width: 112px !important;
  max-width: 150px !important;
  min-height: 44px !important;
  padding: 8px 14px !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Remove browser spinner space where supported */
#satisfactionManualRows input[type="number"]::-webkit-outer-spin-button,
#satisfactionManualRows input[type="number"]::-webkit-inner-spin-button,
input[name="satisfactionManualScore"]::-webkit-outer-spin-button,
input[name="satisfactionManualScore"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#satisfactionManualRows input[type="number"],
input[name="satisfactionManualScore"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Card 2 repair: restore compact score-card layout, keep 10 visible */
#satisfactionManualRows {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)) !important;
  gap: 8px !important;
  align-items: stretch !important;
}

#satisfactionManualRows .satisfaction-manual-row,
#satisfactionManualRows .satisfaction-score-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

#satisfactionManualRows label {
  display: grid !important;
  gap: 5px !important;
  margin: 0 !important;
  font-size: 0.76rem !important;
  line-height: 1.1 !important;
}

#satisfactionManualRows input[type="number"],
input[name="satisfactionManualScore"] {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  min-height: 34px !important;
  padding: 5px 8px !important;
  font-size: 0.95rem !important;
  line-height: 1.1 !important;
  text-align: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
}

/* Historical record browser — clearer action buttons */
.data-table .table-action-button {
  min-width: 76px;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #6d28d9;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.22);
}

.data-table .table-action-button:hover {
  background: #5b21b6;
  transform: translateY(-1px);
}

.data-table .table-action-button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 2px;
}

/* Historical progress nav — Christmas 2025 attention cards */
.historical-progress-nav button.attention {
  border: 2px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18);
}

.historical-progress-nav button.attention::after {
  content: attr(data-attention-label);
  display: block;
  margin-top: 0.22rem;
  font-size: 0.72rem;
  line-height: 1.15;
  font-weight: 800;
  color: #b45309;
}

.historical-progress-nav button.attention.active {
  background: #fef3c7;
  color: #78350f;
}

/* Historical record browser — larger purple filter controls */
.record-browser-filters select,
.record-browser-filters button {
  min-height: 44px;
  border: 2px solid #6d28d9;
  border-radius: 999px;
  background: #6d28d9;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.55rem 1rem;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.18);
}

.record-browser-filters select {
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(135deg, #ffffff 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.record-browser-filters select option {
  background: #ffffff;
  color: #111827;
  font-weight: 600;
}

.record-browser-filters select:hover,
.record-browser-filters button:hover {
  background: #5b21b6;
  border-color: #5b21b6;
  transform: translateY(-1px);
}

.record-browser-filters select:focus-visible,
.record-browser-filters button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 2px;
}
