:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f2ea;
  color: #1c2626;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(35, 91, 94, 0.08), transparent 18rem),
    #f6f2ea;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
}

.app-shell.demo-active {
  outline: 3px solid rgba(178, 100, 42, 0.16);
  outline-offset: -3px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 14px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar h1,
.field-head h2,
.filters h2,
.trend-panel h2,
.detail-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 1.55rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: #5d6966;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.install-note {
  border: 1px solid #ccd7d4;
  border-radius: 999px;
  color: #235b5e;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 0 14px;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(12px);
}

.nav-button,
.icon-action {
  border: 1px solid transparent;
  background: transparent;
  color: #31403e;
  cursor: pointer;
}

.nav-button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 58px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 750;
}

.nav-button svg {
  width: 20px;
  height: 20px;
}

.nav-button.active {
  background: #235b5e;
  color: #fff;
}

.flow {
  display: grid;
  gap: 14px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid #235b5e;
  background: #e8f0ed;
  padding: 13px 14px;
  border-radius: 8px;
  color: #233735;
  font-weight: 650;
}

.notice svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.notice.warning {
  border-left-color: #b2642a;
  background: #fbecd7;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.field-card,
.details-panel,
.filters,
.trend-panel,
.detail-pane,
.privacy-panel {
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 10px 28px rgba(46, 51, 48, 0.06);
}

.field-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.field-card.invalid {
  border-color: #b23b4a;
  box-shadow: 0 0 0 3px rgba(178, 59, 74, 0.12);
}

.field-card.compact {
  box-shadow: none;
}

.field-head {
  display: grid;
  gap: 4px;
}

.field-head h2,
.filters h2,
.trend-panel h2 {
  font-size: 1rem;
}

.field-head p,
.empty-text,
.privacy-copy {
  margin: 0;
  color: #65706e;
  font-size: 0.9rem;
  line-height: 1.45;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.scale-button,
.status-button,
.chip,
.primary-action,
.secondary-action,
.entry-row {
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #fffefa;
  color: #1c2626;
  cursor: pointer;
}

.scale-button {
  min-height: 68px;
  padding: 8px 4px;
  display: grid;
  place-items: center;
  gap: 2px;
}

.scale-button strong {
  font-size: 1.35rem;
}

.scale-button span {
  color: #5d6966;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.scale-button.selected,
.status-button.selected,
.chip.selected {
  border-color: #235b5e;
  background: #235b5e;
  color: #fff;
}

.scale-button.selected span {
  color: #edf6f3;
}

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

.status-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-button {
  min-height: 54px;
  padding: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.details-panel {
  overflow: hidden;
}

.details-panel summary {
  cursor: pointer;
  font-weight: 850;
  padding: 16px;
}

.details-content {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.chip-section {
  display: grid;
  gap: 8px;
}

.chip-section h3,
.text-field span,
.select-field span,
.filters label span {
  margin: 0;
  color: #35413f;
  font-size: 0.88rem;
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 8px 10px;
  font-weight: 750;
}

.text-field,
.select-field,
.filters label {
  display: grid;
  gap: 7px;
}

textarea,
select,
input {
  width: 100%;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #fffefa;
  color: #1c2626;
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgba(246, 242, 234, 0), #f6f2ea 24%);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 16px;
  font-weight: 900;
}

.primary-action {
  border-color: #235b5e;
  background: #235b5e;
  color: #fff;
}

.secondary-action {
  background: #fffefa;
}

.secondary-action.danger,
.icon-action.danger {
  color: #9e2736;
}

.primary-action:disabled,
.secondary-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.error-text,
.success-text {
  margin: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 800;
}

.error-text {
  background: #fae5e7;
  color: #7f1725;
}

.success-text {
  background: #dff0e7;
  color: #174c36;
}

.overview-layout {
  display: grid;
  gap: 14px;
}

.overview-main {
  display: grid;
  gap: 12px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.trend-panel svg {
  width: 100%;
  /* min-height: 160px; */
  overflow: visible;
}

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

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #4d5b58;
  font-size: 0.8rem;
  font-weight: 750;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.entry-list {
  display: grid;
  gap: 8px;
}

.entry-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  text-align: left;
}

.entry-row div:first-child {
  display: grid;
  gap: 3px;
}

.entry-row strong {
  font-size: 0.95rem;
}

.entry-row span {
  color: #65706e;
  font-size: 0.83rem;
}

.metrics-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.metrics-line span,
.badge {
  border-radius: 999px;
  background: #e8f0ed;
  padding: 5px 7px;
  font-weight: 800;
}

.detail-pane,
.privacy-panel {
  padding: 14px;
}

.details-view {
  display: grid;
  gap: 14px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-head h2 {
  font-size: 1.08rem;
}

.icon-action {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.detail-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-grid div {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid #e4e8e5;
  padding-bottom: 8px;
}

.detail-grid dt {
  color: #65706e;
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-grid dd {
  margin: 0;
  line-height: 1.35;
}

.privacy-panel {
  display: grid;
  gap: 14px;
}

.action-grid {
  display: grid;
  gap: 10px;
}

.single-danger-action-row {
  display: flex;
  justify-content: center;
}

.single-danger-action-row .secondary-action {
  width: min(100%, 320px);
}

.evaluator-backup-actions,
.evaluator-name-actions {
  display: grid;
  gap: 10px;
}

.evaluator-main-grid {
  display: grid;
  gap: 14px;
}

.evaluator-backup-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evaluator-name-actions {
  grid-template-columns: 1fr;
}

.evaluator-name-actions .secondary-action {
  min-width: 0;
  width: 100%;
  line-height: 1.15;
  white-space: normal;
}

@media (min-width: 760px) {
  .app-shell {
    padding: 26px 24px 36px;
  }

  .topbar h1 {
    font-size: 2rem;
  }

  .main-nav {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-button {
    min-width: 132px;
    grid-auto-flow: column;
    min-height: 48px;
    padding: 0 14px;
  }

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

  .filters {
    grid-template-columns: 1.2fr repeat(3, minmax(150px, 1fr));
    align-items: end;
  }

  .overview-layout {
    /*grid-template-columns: minmax(0, 1fr) 360px;*/
    align-items: start;
  }

  .detail-pane {
    position: sticky;
    top: 88px;
  }

  .evaluator-detail-pane {
    position: static;
    top: auto;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .scale-button {
    min-height: 62px;
  }

  .scale-button strong {
    font-size: 1.16rem;
  }

  .scale-button span {
    display: none;
  }

  .status-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evaluator-backup-actions,
  .evaluator-name-actions {
    grid-template-columns: 1fr;
  }
}

.text-link {
  background: transparent;
  border: 1px solid #ccd7d4;
  border-radius: 999px;
  color: #235b5e;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.feedback-topbar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.feedback-topbar-button svg {
  width: 16px;
  height: 16px;
}

.feedback-modal-overlay {
  padding: 0;
}

.feedback-modal {
  width: min(980px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  background: #fffdf8;
  border-radius: 12px;
  border: 1px solid #dfe7e3;
  box-shadow: 0 24px 90px rgba(20, 36, 34, 0.26);
  padding: 18px;
}

.feedback-form-grid {
  display: grid;
  gap: 14px;
}

.feedback-choice-section {
  display: grid;
  gap: 10px;
}

.feedback-choice-section h3 {
  margin: 0;
  font-size: 1rem;
}

.feedback-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.technical-category-panel {
  margin-top: 10px;
}

.feedback-validation {
  border: 1px solid #efd0c2;
  background: #fff7f3;
  border-radius: 8px;
  padding: 12px;
  color: #783a24;
}

.feedback-validation.valid {
  display: none;
}

.feedback-validation ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-row input {
  margin-top: 3px;
}

.feedback-honeypots {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 10px;
  height: 10px;
  overflow: hidden;
}

.feedback-offscreen-check {
  position: absolute;
  left: -12000px;
  width: 10px;
  height: 10px;
}

.feedback-success {
  display: grid;
  gap: 14px;
}

.demo-meta-pill {
  background: #fbecd7;
  color: #7d4118;
}

.inline-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.2;
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.tooltip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid #cdd8d5;
  border-radius: 50%;
  background: #fffefa;
  color: #235b5e;
  cursor: help;
  line-height: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.tooltip-button svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  line-height: 1;
  margin: 0;
}

.tooltip [role="tooltip"] {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: min(280px, 82vw);
  transform: translateX(-50%);
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #1c2626;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.tooltip:hover [role="tooltip"],
.tooltip:focus-within [role="tooltip"],
.tooltip.open [role="tooltip"] {
  opacity: 1;
}

@media (max-width: 520px) {
  .tooltip [role="tooltip"] {
    width: min(200px, calc(100vw - 32px));
  }
}

.compact-session,
.period-panel {
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.86);
  box-shadow: 0 10px 28px rgba(46, 51, 48, 0.06);
}

.session-grid {
  display: grid;
  gap: 10px;
}

.period-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.period-presets,
.date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-range label {
  display: grid;
  flex: 1 1 150px;
  gap: 6px;
}

.date-range span {
  color: #35413f;
  font-size: 0.82rem;
  font-weight: 800;
}

.date-range small {
  color: #65706e;
  font-size: 0.74rem;
  font-weight: 700;
}

.trend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.trend-head p {
  margin: 0;
  color: #35413f;
  font-size: 0.88rem;
  font-weight: 850;
}

.trend-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.graph-zoom-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #fffefa;
  color: #235b5e;
  cursor: pointer;
}

.graph-zoom-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.time-marker {
  stroke: #9fb0aa;
  stroke-dasharray: 4 6;
  stroke-width: 1.5;
}

.chart-point {
  stroke: #fffefa;
  stroke-width: 1.4;
}

.chart-point.active {
  stroke: #1c2626;
  stroke-width: 2;
}

.inspect-line {
  stroke: #1c2626;
  stroke-dasharray: 3 5;
  stroke-width: 1.3;
  opacity: 0.72;
}

.axis-label {
  fill: #65706e;
  font-size: 13px;
  font-weight: 700;
}

.legend.interactive {
  gap: 8px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #cdd8d5;
  border-radius: 999px;
  background: #fffefa;
  color: #31403e;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
  padding: 7px 10px;
}

.legend-chip.dim {
  opacity: 0.55;
}

.legend-chip.hidden {
  opacity: 0.35;
  text-decoration: line-through;
}

.legend-band {
  color: #5d6966;
  font-weight: 800;
}

.average-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.average-grid span {
  border-radius: 999px;
  background: #e8f0ed;
  color: #35413f;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 8px;
}

.period-assessment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #f7faf8;
  color: #243130;
  padding: 10px 12px;
}

.period-assessment div {
  display: grid;
  gap: 2px;
}

.period-assessment strong {
  font-size: 0.82rem;
}

.period-assessment span {
  color: #43504d;
  font-size: 0.9rem;
  font-weight: 800;
}

.report-group {
  display: grid;
}

.entry-row.static {
  cursor: default;
}

.followup-list {
  display: grid;
  gap: 6px;
  margin-left: 18px;
  padding: 6px 0 0 12px;
  border-left: 3px solid #ccd7d4;
}

.followup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  color: #1c2626;
  cursor: pointer;
  padding: 9px 10px;
  text-align: left;
}

.followup-row span {
  color: #65706e;
  font-size: 0.84rem;
}

.followup-row strong {
  white-space: nowrap;
}

.followup-worse {
  color: #65706e;
  font-size: 0.84rem;
}

.followup-worse strong {
  color: #1c2626;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(20, 28, 27, 0.48);
  padding: 16px;
}

.report-overlay {
  align-items: start;
  overflow: auto;
  padding-top: max(20px, env(safe-area-inset-top));
}

.report-modal,
.export-modal,
.confirm-modal {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 16px;
}

.export-modal {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
}

.export-date-range {
  margin-top: 0;
}

.privacy-management-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-management-row .secondary-action {
  min-height: 44px;
}

.compact-toggle {
  width: fit-content;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #f7faf8;
  color: #35413f;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.4;
  padding: 10px;
}

.consent-check input {
  margin-top: 3px;
}

.copy-backup {
  display: grid;
  gap: 10px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #f7faf8;
  padding: 12px;
}

.copy-backup h3,
.copy-backup p {
  margin: 0;
}

.copy-backup textarea {
  min-height: 170px;
  resize: vertical;
}

.share-card {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 10px 28px rgba(46, 51, 48, 0.06);
  margin: 0 auto;
  padding: 16px;
}

.share-card p {
  margin: 0;
  color: #35413f;
  line-height: 1.45;
}

.graph-modal-overlay {
  align-items: stretch;
  padding: 14px;
}

.graph-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  width: min(1500px, 100%);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 18px;
}

.graph-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.graph-modal-head h2 {
  margin: 0;
}

.graph-modal .modal-close {
  position: static;
  float: none;
}

.graph-modal-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
}

.graph-modal-body {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.fullscreen-graph-body {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.75rem;
}

.fullscreen-graph-help {
  min-height: 1.4rem;
}

.graph-inspection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  min-height: 0;
  align-items: start;
}

.graph-workspace {
  display: grid;
  gap: 10px;
  grid-template-rows: minmax(420px, min(58vh, 620px)) minmax(96px, auto);
  min-width: 0;
}

.fullscreen-graph-chart-shell {
  min-height: 420px;
  height: min(58vh, 620px);
  position: relative;
}

.fullscreen-chart {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 1px solid #e4e8e5;
  border-radius: 8px;
  background: #fffefa;
  touch-action: none;
}

.graph-inspect-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #f7faf8;
  padding: 12px;
}

.graph-inspect-panel h3,
.graph-inspect-panel p {
  margin: 0;
}

.graph-inspect-panel h3 {
  font-size: 0.95rem;
}

.graph-inspect-panel p {
  color: #5d6966;
  font-size: 0.84rem;
  line-height: 1.35;
}

.graph-inspect-panel dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.graph-inspect-panel dl div {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 8px;
  align-items: center;
}

.graph-inspect-panel dt,
.graph-inspect-panel dd {
  margin: 0;
}

.graph-inspect-panel dt {
  color: #5d6966;
  font-weight: 900;
}

.graph-inspect-panel dd {
  font-weight: 900;
}

.graph-followups {
  display: grid;
  gap: 8px;
  border-top: 1px solid #d9ded8;
  padding-top: 8px;
}

.graph-followups h4,
.graph-followups p {
  margin: 0;
}

.graph-followups h4 {
  font-size: 0.9rem;
}

.graph-followups div {
  display: grid;
  gap: 3px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  padding: 8px;
}

.graph-followups span {
  color: #4d5b58;
  font-size: 0.82rem;
  font-weight: 750;
}

.graph-selected-pills {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 96px;
  contain: layout;
}

.graph-selected-pills div {
  display: grid;
  gap: 5px;
}

.graph-selected-pills strong {
  color: #35413f;
  font-size: 0.82rem;
}

.graph-selected-pills span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.graph-status-pill {
  align-items: center;
  border: 1px solid #cdd8d5;
  border-radius: 999px;
  background: #fffefa;
  color: #235b5e;
  display: inline-flex;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 850;
  justify-content: center;
  line-height: 1.15;
  min-height: 1.6rem;
  padding: 5px 8px;
  white-space: nowrap;
}

.followup-link {
  stroke: #b2642a;
  stroke-dasharray: 5 5;
  stroke-width: 1.4;
}

.followup-effect-bar {
  stroke: #b2642a;
  stroke-linecap: round;
  stroke-width: 3;
}

.followup-response-point {
  fill: #fffefa;
  stroke: #b2642a;
  stroke-width: 2.4;
}

.work-time-band {
  fill: #b2642a;
  opacity: 0.12;
  stroke: #b2642a;
  stroke-opacity: 0.16;
}

.confirm-modal {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
}

.confirm-modal h2,
.confirm-modal p {
  margin: 0;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #cdd8d5;
  border-radius: 50%;
  background: #fffefa;
  color: #1c2626;
  cursor: pointer;
}

.danger-zone {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #f0b9bf;
  border-radius: 8px;
  background: #fff1f2;
  padding: 14px;
}

.edit-zone {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #f7faf8;
  padding: 14px;
}

.danger-zone h3,
.danger-zone p {
  margin: 0;
}

.danger-zone p {
  color: #7f1725;
  font-size: 0.9rem;
}

.verification-warning {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid #f0a6b0;
  border-radius: 999px;
  background: #ffe0e5;
  color: #8f1f2f;
  cursor: help;
  font-weight: 950;
}

.evaluator-shell {
  width: min(1600px, 100%);
}

.evaluator-layout,
.evaluator-sidebar,
.evaluator-main,
.evaluator-left-workspace {
  display: grid;
  align-content: start;
  gap: 14px;
}

.evaluator-main {
  width: 100%;
  justify-self: center;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid #235b5e;
  border-radius: 8px;
  background: #235b5e;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-inline {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-inline input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.import-review {
  display: grid;
  gap: 10px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  padding: 14px;
}

.import-review h2,
.detail-section h3 {
  margin: 0;
  font-size: 1rem;
}

.import-review p {
  margin: 0;
  color: #4d5b58;
  line-height: 1.4;
}

.profile-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.profile-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  color: #1c2626;
  cursor: pointer;
  padding: 11px;
  text-align: left;
}

.profile-row.active {
  border-color: #235b5e;
  box-shadow: 0 0 0 3px rgba(35, 91, 94, 0.12);
}

.profile-row small {
  color: #65706e;
  font-weight: 800;
}

.review-tools {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #fffefa;
  padding: 0 10px;
}

.search-field svg {
  color: #65706e;
  width: 18px;
  height: 18px;
}

.search-field input {
  border: 0;
  background: transparent;
  padding-left: 0;
}

.selected-review .entry-row {
  border-color: #235b5e;
  box-shadow: 0 0 0 3px rgba(35, 91, 94, 0.12);
}

.review-open {
  justify-self: start;
  min-height: 36px;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: #fffefa;
  color: #235b5e;
  cursor: pointer;
  font-weight: 850;
  padding: 7px 10px;
  display: none;
}

.review-card-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.report-primary-info {
  min-width: 0;
}

.report-score-area {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.report-score-grid {
  display: grid;
  grid-template-columns: 5.4rem repeat(5, 3.2rem);
  align-items: center;
  justify-content: end;
  gap: 5px;
}

.report-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  min-width: 0;
  border: 1px solid #d4d9d4;
  border-radius: 999px;
  background: #edf0ed;
  color: #59635d;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.report-score-pill.score-high {
  border-color: #a9d0b5;
  background: #d9eadf;
  color: #123f24;
}

.report-score-pill.score-good {
  border-color: #c9d8aa;
  background: #e7efdc;
  color: #40531f;
}

.report-score-pill.score-moderate {
  border-color: #dfcc9c;
  background: #f2ead2;
  color: #6a501d;
}

.report-score-pill.score-low {
  border-color: #e3b9a9;
  background: #f4dfd6;
  color: #783a24;
}

.report-score-pill.score-very-low {
  border-color: #dfadb8;
  background: #f1d7dc;
  color: #742d3b;
}

.report-score-pill.score-missing {
  border-color: #d4d9d4;
  background: #edf0ed;
  color: #59635d;
}

.report-meta-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.report-meta-pill-row > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #e8f0ed;
  color: #4c5855;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  padding: 5px 7px;
}

.verification-warning.meta-pill {
  width: auto;
  min-width: 0;
  height: auto;
  border-color: #f0a6b0;
  background: #ffe0e5;
  color: #8f1f2f;
  cursor: help;
}

.review-detail,
.detail-sections {
  display: grid;
  gap: 12px;
}

.evaluator-detail-pane {
  position: static;
}

.detail-empty-state {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #5d6966;
  text-align: center;
}

.detail-empty-state h2,
.detail-empty-state p {
  margin: 0;
}

.detail-empty-state h2 {
  color: #243130;
  font-size: 1rem;
}

.detail-section {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid #e4e8e5;
  padding-bottom: 10px;
}

.technical-details,
.raw-details {
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fffefa;
  overflow: hidden;
}

.technical-details summary,
.raw-details summary {
  cursor: pointer;
  font-weight: 850;
  padding: 11px 12px;
}

.technical-details > p,
.raw-details > p {
  margin: 0;
  color: #5d6966;
  font-size: 0.86rem;
  line-height: 1.4;
  padding: 0 12px 10px;
}

.technical-details .detail-section {
  border-top: 1px solid #e4e8e5;
  border-bottom: 0;
  padding: 12px;
}

.raw-details pre {
  overflow: auto;
  margin: 0;
  max-height: 340px;
  background: #172120;
  color: #f5f5f1;
  padding: 12px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.raw-details .secondary-action {
  margin: 0 12px 10px;
}

.secondary-action.slim {
  min-height: 38px;
  padding: 8px 10px;
}

.app-footer {
  display: grid;
  gap: 0.35rem;
  color: #65706e;
  font-size: 0.8rem;
  font-weight: 700;
  max-width: 1180px;
  margin: 2rem auto 1rem;
  opacity: 0.75;
  padding: 1rem;
  text-align: center;
}

.footer-credit,
.footer-language-switcher,
.footer-links {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  gap: 5px;
}

.footer-language-switcher {
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.footer-language-button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.2rem 0.35rem;
}

.footer-language-button[aria-current="true"] {
  color: #35413f;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-language-separator {
  opacity: 0.45;
}

.footer-link {
  align-items: center;
  background: rgba(255, 254, 250, 0.74);
  border: 1px solid #ccd7d4;
  border-radius: 999px;
  color: #235b5e;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  gap: 0.4rem;
  justify-content: center;
  padding: 0.44rem 0.7rem;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  background: #fffefa;
  border-color: #9db5af;
  color: #1f4f51;
  transform: translateY(-1px);
}

.footer-link.active {
  background: #235b5e;
  border-color: #235b5e;
  color: #fff;
}

.footer-link.active:hover,
.footer-link.active:focus-visible {
  background: #1f4f51;
  border-color: #1f4f51;
  color: #fff;
}

.app-footer svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.app-footer .footer-heart {
  color: #d62828;
  fill: #d62828;
  opacity: 1;
}

.privacy-sections {
  display: grid;
  gap: 12px;
}

.privacy-sections h2,
.privacy-sections p {
  margin: 0;
}

.privacy-sections h2 {
  color: #35413f;
  font-size: 1rem;
}

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

.note-list article {
  border-bottom: 1px solid #e4e8e5;
  padding-bottom: 10px;
}

.note-list time {
  color: #65706e;
  font-size: 0.78rem;
  font-weight: 850;
}

.note-list p {
  margin: 4px 0 0;
  line-height: 1.4;
}

@media (min-width: 760px) {
  .session-grid {
    grid-template-columns: minmax(220px, 1fr) 150px 150px;
  }

  .session-grid.two {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .review-tools {
    grid-template-columns: 1fr 180px;
  }
}

@media (min-width: 900px) {
  .evaluator-name-actions {
    grid-template-columns: 3fr 2fr;
  }

  .evaluator-name-actions button {
    min-height: 52px;
    line-height: 1.15;
    white-space: normal;
  }
}

@media (min-width: 1200px) {
  .evaluator-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .evaluator-sidebar {
    position: sticky;
    top: 16px;
  }

  .evaluator-main {
    max-width: 1180px;
  }

  .evaluator-main-grid {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    align-items: start;
    gap: 16px;
  }

  .evaluator-detail-pane {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .evaluator-left-workspace {
    min-width: 0;
  }

  .evaluator-left-workspace .entry-list {
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding-right: 2px;
  }
}

@media (min-width: 1536px) {
  .evaluator-layout {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 22px;
  }

  .evaluator-main {
    max-width: 1220px;
  }
}

@media (max-width: 640px) {
  .privacy-management-row {
    grid-template-columns: 1fr;
  }

  .review-card-main {
    grid-template-columns: 1fr;
  }

  .report-score-area {
    justify-items: stretch;
  }

  .report-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .report-score-pill {
    width: 100%;
  }

  .report-meta-pill-row {
    justify-content: flex-start;
  }
}

@media (max-width: 800px) {
  .graph-modal-overlay {
    padding: 8px;
  }

  .graph-modal {
    max-height: calc(100vh - 16px);
    overflow: auto;
    padding: 12px;
  }

  .graph-modal-controls,
  .graph-inspection-layout {
    grid-template-columns: 1fr;
  }

  .fullscreen-chart {
    min-height: 0;
  }

  .graph-workspace,
  .fullscreen-graph-chart-shell {
    min-height: 320px;
  }

  .graph-workspace {
    grid-template-rows: minmax(320px, 48vh) minmax(96px, auto);
  }
}

@media (max-width: 430px) {
  .trend-head,
  .entry-row {
    grid-template-columns: 1fr;
  }

  .trend-head {
    display: grid;
  }

  .metrics-line {
    justify-content: flex-start;
  }

  .evaluator-backup-actions,
  .evaluator-name-actions {
    grid-template-columns: 1fr;
  }
}
