body {
  margin: 0;
  background: #0b1020;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-shell {
  min-height: 100vh;
  background: #0b1020;
  color: #f8fafc;
}

.top-nav {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
  color: #f8fafc;
  z-index: 10;
}

.welcome-shell > .top-nav {
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  width: auto;
}

.top-nav-brand {
  color: #f8fafc;
  text-decoration: none;
  font-weight: 850;
  font-size: 16px;
}

.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  padding: 8px 10px;
  border-radius: 8px;
}

.top-nav-link:hover,
.top-nav-link:focus {
  background: rgba(248, 250, 252, .1);
  color: #fff;
  outline: none;
}

.welcome-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 42px 22px;
  background:
    linear-gradient(90deg, rgba(11, 16, 32, .52), rgba(11, 16, 32, .1)),
    url("/assets/background.png") center / cover no-repeat;
  color: #f8fafc;
}

.welcome-panel {
  width: min(760px, 100%);
}

.welcome-kicker {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.welcome-title {
  color: #f8fafc;
  font-size: 56px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
}

.welcome-subtitle {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.5;
  margin: 14px 0 8px;
  font-weight: 750;
}

.welcome-intro {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 30px;
}

.welcome-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.welcome-link {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #dbe3ef;
  border-top: 4px solid #0f3a6e;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.welcome-link-primary {
  border-top-color: #1d4ed8;
}

.welcome-link:hover,
.welcome-link:focus {
  border-color: #94a3b8;
  box-shadow: 0 20px 52px rgba(0, 0, 0, .34);
  transform: translateY(-2px);
  outline: none;
}

.welcome-link-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
}

.welcome-link-description {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 18px;
}

.welcome-beta-note {
  color: #475569;
  font-weight: 650;
  margin-top: 10px;
}

.welcome-footer {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  width: auto;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgba(248, 250, 252, .82);
  font-size: 12px;
}

.welcome-footer a {
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.create-panel {
  max-width: 620px;
}

.create-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 34px 22px 48px;
  background: #0b1020;
}

.create-workspace {
  width: min(980px, 100%);
  margin: 0 auto;
}

.create-header {
  margin-bottom: 18px;
}

.create-header .primary-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 18px 0 0;
  padding: 11px 16px;
  text-decoration: none;
}

.create-title {
  color: #f8fafc;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
}

.create-subtitle {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0 0;
}

.create-card {
  border-radius: 8px;
}

.upload-dropzone {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 22px;
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus {
  border-color: #14b8a6;
  background: #ecfeff;
  outline: none;
}

.upload-copy {
  display: grid;
  gap: 6px;
  text-align: center;
  font-size: 14px;
}

.upload-copy strong {
  font-size: 18px;
}

.upload-success,
.upload-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.upload-success {
  background: #dcfce7;
  color: #166534;
}

.upload-error {
  background: #fee2e2;
  color: #991b1b;
}

.create-upload-meta {
  margin: -4px 0 12px;
}

.preview-table-wrap {
  max-height: 220px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.preview-table th,
.preview-table td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.preview-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #334155;
  font-weight: 800;
}

.text-preview-box {
  max-height: 240px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.sentiment-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sentiment-option {
  display: flex;
  align-items: center;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.sentiment-checkbox {
  margin: 0 8px 0 0;
}

.progress-card {
  overflow: hidden;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8, #0f3a6e, #0b2d56);
  background-size: 180% 100%;
  animation: progress-shimmer 1.4s linear infinite;
  transition: width .28s ease;
}

.progress-label {
  margin-top: 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 850;
}

@keyframes progress-shimmer {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 180% 50%;
  }
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.secondary-link:hover,
.secondary-link:focus {
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 72vw 28vw;
  height: 100vh;
  background: #0b1020;
}

.map-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(300px, 380px);
  height: 100vh;
  min-height: 0;
  background: #0b1020;
}

.map-panel {
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

#semantic-map,
#custom-map {
  height: calc(100vh - 28px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  background: white;
}

.side-panel,
.function-panel,
.reading-panel {
  height: 100vh;
  overflow-y: auto;
  background: #f8fafc;
  padding: 18px;
  box-sizing: border-box;
}

.function-panel {
  border-right: 1px solid #dbe3ef;
}

.reading-panel,
.side-panel {
  border-left: 1px solid #dbe3ef;
}

.demo-pill {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.brand-title {
  font-size: 30px;
  font-weight: 850;
  margin: 0;
  color: #0f172a;
}

.brand-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin: 8px 0 18px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(15,23,42,.07);
  color: #0f172a;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #0f172a;
}

.label {
  font-size: 12px;
  font-weight: 750;
  color: #475569;
  margin-bottom: 6px;
  display: block;
}

.hint-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.35;
  margin-top: 10px;
}

.primary-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: #0f3a6e;
  color: white;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  margin: 10px 0 12px;
}

.primary-button:hover,
.primary-button:focus {
  background: #0b2d56;
  outline: none;
}

.search-run-button {
  margin-bottom: 8px;
}

.search-toggle {
  margin: 0 0 8px;
}

.search-toggle-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.search-toggle-input {
  margin: 0;
}

.search-quick-summary {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-left: 4px solid #14b8a6;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.42;
}

.search-quick-summary:empty {
  display: none;
}

.search-quick-summary p,
.search-quick-summary ul {
  margin: 0 0 8px;
}

.search-quick-summary ul {
  padding-left: 18px;
}

.search-quick-summary p:last-child,
.search-quick-summary ul:last-child {
  margin-bottom: 0;
}

.ask-mode {
  display: grid;
  gap: 8px;
}

.ask-mode h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.ask-divider {
  height: 1px;
  margin: 16px 0;
  background: #e2e8f0;
}

.topic-evidence {
  border-left-color: #22c55e;
}

.tour-button {
  margin: 10px 0 12px;
}

.contact-card {
  max-width: 760px;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form .label {
  margin-top: 6px;
}

.contact-message {
  min-height: 150px;
}

.contact-email {
  font-weight: 800;
}

.insights-card .primary-button {
  margin-top: 0;
}

.insights-status {
  margin-bottom: 10px;
}

.insights-list {
  display: grid;
  gap: 9px;
}

.insight-card {
  width: 100%;
  display: grid;
  gap: 7px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.insight-card:hover,
.insight-card:focus {
  border-color: #38bdf8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .1);
  outline: none;
  transform: translateY(-1px);
}

.insight-card.is-selected {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, .18);
}

.insight-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.insight-icon {
  min-width: 26px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 850;
}

.insight-type {
  flex: 1;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insight-score {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 850;
}

.insight-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.insight-summary {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.export-description {
  margin-top: 8px;
}

.export-options {
  display: grid;
  gap: 7px;
  margin-top: 6px;
}

.export-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  line-height: 1.3;
}

.export-summary {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.export-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 12px;
}

.export-summary-row strong {
  color: #0f172a;
  text-align: right;
}

.export-warnings {
  margin-top: 8px;
  color: #92400e;
  font-size: 11.5px;
  line-height: 1.35;
}

.export-warnings ul {
  margin: 0;
  padding-left: 17px;
}

.project-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.project-list-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.project-list-item strong {
  color: #0f172a;
  font-size: 13px;
}

.project-status {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.project-rename-input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: #0f172a;
  background: #fff;
}

.project-actions,
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.secondary-button.danger {
  color: #991b1b;
  border-color: #fecaca;
}

.panel-text {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.panel-pre {
  white-space: pre-wrap;
  font-size: 13px;
  color: #334155;
  margin: 0;
}

.question-box {
  width: 100%;
  height: 85px;
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 10px;
  box-sizing: border-box;
  color: #0f172a;
  background: #fff;
}

.post-box {
  white-space: pre-wrap;
  background: #0f172a;
  color: #e5e7eb;
  padding: 12px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  max-height: 340px;
  overflow-y: auto;
}

.footer-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.35;
  padding: 6px 4px 18px;
}

/* Better initial Dash loading screen */
._dash-loading {
  margin: 0;
  height: 100vh;
  background: rgba(11, 16, 32, .9);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0;
}

._dash-loading::after {
  content: "Loading MapsLSC...";
  width: min(360px, calc(100vw - 44px));
  box-sizing: border-box;
  padding: 22px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 850;
  color: #0f172a;
}

.search-box {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  box-sizing: border-box;
  color: #0f172a;
  background: #fff;
}

.dropdown,
.Select-control,
.Select-menu-outer,
.Select-value-label,
.Select-placeholder,
.VirtualizedSelectOption,
.DateInput_input {
  color: #0f172a;
}

.Select-placeholder {
  color: #64748b;
}

.Select-menu-outer {
  z-index: 1200;
}

.Select--multi .Select-control {
  max-height: 96px;
  overflow-y: auto;
}

.Select--multi .Select-value {
  max-width: calc(100% - 18px);
}

.Select--multi .Select-value-label {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.VirtualizedSelectOption {
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
}

.map-code-child-toggle {
  margin-top: 8px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 750;
}

.map-code-child-toggle label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.map-code-child-summary {
  margin-top: 8px;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.35;
}

.map-code-child-summary-title {
  margin-bottom: 5px;
  font-weight: 800;
}

.map-code-child-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-code-child-chip {
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #eff6ff;
  color: #0f3a6e;
  font-size: 10.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-code-child-chip.muted {
  background: #f8fafc;
  color: #64748b;
}

.secondary-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #0f3a6e;
  border-radius: 12px;
  background: #eff6ff;
  color: #0f3a6e;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}

.secondary-button:hover,
.secondary-button:focus {
  background: #dbeafe;
  border-color: #0b2d56;
  color: #0b2d56;
  outline: none;
}

.mapslsc-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .58);
}

.mapslsc-tour-modal {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
  color: #0f172a;
}

.mapslsc-tour-modal h2 {
  margin: 8px 0 14px;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.1;
}

.mapslsc-tour-modal ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #334155;
  line-height: 1.5;
}

.mapslsc-tour-modal li {
  margin-bottom: 8px;
}

.mapslsc-tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #f8fafc;
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mapslsc-tour-done {
  margin-bottom: 0;
}

.primary-button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.primary-button.compact {
  width: auto;
  flex: 1;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
}

.secondary-button.compact {
  width: auto;
  flex: 1;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
}

.coding-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 28px 22px 42px;
  background: #0b1020;
  overflow: hidden;
}

.coding-header {
  width: min(1260px, 100%);
  margin: 0 auto 18px;
}

.coding-grid {
  width: min(1260px, 100%);
  flex: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 320px;
  gap: 16px;
  margin: 0 auto;
  min-height: 0;
}

.coding-left,
.coding-main,
.coding-side {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.coding-left,
.coding-side {
  align-self: stretch;
  padding-right: 8px;
}

.coding-card {
  border-radius: 8px;
}

.code-tree-card .hint-text {
  margin-top: 0;
}

.code-tree-list {
  display: grid;
  gap: 5px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.code-tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.code-tree-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.code-tree-row.child-code {
  border-left: 3px solid #0f3a6e;
}

.code-tree-name {
  min-width: 0;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-tree-origin {
  color: #0f3a6e;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.code-tree-assign-button {
  max-width: 74px;
}

.coding-notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.assignment-dropzone {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 14px;
  border: 2px dashed #94a3b8;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
}

.assignment-dropzone.has-chunks {
  border-color: #14b8a6;
  background: #ecfeff;
  color: #0f766e;
}

.assignment-dropzone-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.assignment-dropzone-copy {
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 700;
}

.coding-selection-card .hint-text {
  margin-top: 0;
}

.coding-chunk-list {
  display: grid;
  gap: 10px;
}

.coding-chunk {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color .16s ease, background .16s ease, opacity .16s ease;
}

.coding-chunk.is-included,
.coding-chunk:has(.coding-chunk-checkbox input:checked) {
  border-color: #5eead4;
  border-left-color: #14b8a6;
  background: #f0fdfa;
}

.coding-chunk.is-excluded:not(:has(.coding-chunk-checkbox input:checked)) {
  opacity: .72;
}

.coding-chunk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.coding-chunk-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.coding-chunk.is-included .coding-chunk-label,
.coding-chunk:has(.coding-chunk-checkbox input:checked) .coding-chunk-label {
  border-color: #5eead4;
  background: #ccfbf1;
  color: #0f766e;
}

.coding-chunk-checkbox {
  display: inline-block;
}

.coding-chunk-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.coding-chunk-checkbox input {
  margin: 0;
}

.coding-status-pill {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.coding-status-pill.coded {
  background: #dcfce7;
  color: #166534;
}

.coding-chunk-text {
  color: #1e293b;
  font-size: 13px;
  line-height: 1.48;
  white-space: pre-wrap;
}

.coding-chunk-codes {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
}

.coding-metric {
  padding: 7px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.coding-metric.accent {
  color: #0369a1;
}

.coding-memo-box {
  height: 72px;
}

.coding-suggestion-list {
  display: grid;
  gap: 10px;
}

.coding-suggestion {
  padding: 10px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
}

.coding-suggestion-why {
  margin-top: 8px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.coding-excerpts {
  margin: 8px 0;
  padding-left: 17px;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.35;
}

.coding-button-row {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.coding-similar-list {
  max-height: 220px;
  overflow: auto;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .welcome-shell {
    align-items: flex-start;
    padding-top: 64px;
  }

  .welcome-title {
    font-size: 42px;
  }

  .welcome-links {
    grid-template-columns: 1fr;
  }

  .welcome-link {
    min-height: 116px;
  }

  .welcome-footer {
    position: static;
    width: 100%;
    margin-top: 24px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sentiment-checklist {
    grid-template-columns: 1fr;
  }

  .create-title {
    font-size: 34px;
  }

  .coding-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .coding-left,
  .coding-side {
    overflow: visible;
  }

  .coding-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .coding-left,
  .coding-main {
    overflow: visible;
  }

  .map-workbench,
  .app-shell {
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .function-panel,
  .reading-panel,
  .side-panel {
    height: auto;
    overflow: visible;
    border: 0;
  }

  #semantic-map,
  #custom-map {
    height: 64vh;
  }
}
