/* One face for the Healthscore UI. Sizes still change by role. The logo is an image. */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea,
h1,
h2,
h3 {
  font-family: inherit;
}

h1,
h2,
h3 {
  font-weight: 600;
}

#hs-app {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hs-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.25rem;
}

.hs-score-hero {
  flex: 1 1 auto;
  min-width: 16rem;
  padding: 0.45rem 1.15rem 0.5rem;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.1rem 1.35rem;
  align-content: center;
  justify-content: end;
  justify-items: center;
  text-align: center;
  line-height: 1.1;
}

.hs-score-hero:has(.hs-score-spark:not(:empty)) {
  grid-template-columns: minmax(9rem, 1fr) auto auto;
  justify-content: stretch;
}

.hs-score-stat {
  display: grid;
  justify-items: center;
  gap: 0.05rem;
}

.hs-score-stat-value {
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hs-score-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hs-score-value {
  font-size: 2.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.hs-score-note {
  grid-column: 1 / -1;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  opacity: 0.85;
}

.hs-score-note:empty {
  display: none;
}

.hs-score-switch {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
}

.hs-score-switch button {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.55;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.hs-score-switch button[aria-pressed="true"] {
  opacity: 1;
  background: #1f2a24;
  color: #fff;
  border-color: #1f2a24;
}

.hs-score-switch button:disabled {
  opacity: 0.35;
  cursor: default;
}

.hs-top-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.hs-top-actions .hs-score-switch {
  grid-column: auto;
  justify-content: flex-start;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.hs-top-actions .hs-score-switch button,
.hs-top-actions .hs-score-switch a {
  display: inline-flex;
  align-items: center;
  opacity: 1;
  color: var(--muted, #5c6b63);
  background: transparent;
  border-color: transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  padding: 0.28rem 0.72rem;
  text-decoration: none;
  line-height: 1.2;
}

.hs-top-actions .hs-score-switch button[aria-pressed="true"],
.hs-top-actions .hs-score-switch a[aria-current="page"] {
  opacity: 1;
  background: #1f2a24;
  color: #fff;
  border-color: #1f2a24;
}

.hs-top-actions .hs-score-switch button:disabled {
  opacity: 0.35;
}

.hs-score-spark {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: 3.4rem;
  justify-self: stretch;
  align-self: center;
  margin-right: 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
}

.hs-score-spark:empty {
  display: none;
}

.hs-score-hero .hs-spark {
  width: 100%;
  flex: 1 1 auto;
  min-height: 1.5rem;
  height: auto;
}

.hs-spark-months {
  position: relative;
  flex: 0 0 0.75rem;
  height: 0.75rem;
}

.hs-spark-months span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.hs-score-hero .hs-spark polyline {
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.hs-score-empty {
  color: var(--muted);
}

/* An override condition holds the score at 0, so only the score and its reason are shown. */
.hs-score-zeroed {
  grid-template-columns: auto;
  justify-content: center;
}

.hs-score-hero.hs-score-zeroed:has(.hs-score-spark:not(:empty)) {
  grid-template-columns: minmax(9rem, 1fr) auto;
  justify-content: stretch;
}

.hs-score-zeroed .hs-score-stat:not(.hs-score-result) {
  display: none;
}

.hs-score-zeroed .hs-score-value {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.hs-score-hero.hs-score-zeroed {
  background: #d50000;
  border-color: #8f0000;
  color: #fff;
}

.hs-score-red {
  background: #fde8e8;
  border-color: #c0392b;
  color: #8b1e1e;
}

.hs-score-yellow {
  background: #fff4cc;
  border-color: #d4a017;
  color: #7a5a00;
}

.hs-score-green {
  background: #e3f6ea;
  border-color: #1f8a4c;
  color: #0d6b3a;
}

.hs-stat-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hs-entity-control {
  flex: 0 0 24rem;
  width: 24rem;
  min-width: 0;
  max-width: 24rem;
  display: grid;
  gap: 0.4rem;
}

.hs-entity-control select {
  width: 100%;
  min-width: 0;
}

.hs-entity-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.hs-entity-control label {
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 600;
}

.hs-entity-source {
  font-size: 0.75rem;
  color: var(--muted);
}

.hs-entity-source:empty {
  display: none;
}

.hs-entity-source::before {
  content: "·";
  margin-right: 0.75rem;
  color: var(--muted);
  opacity: 0.6;
}

.hs-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(720px, 1.6fr) minmax(330px, 0.8fr);
  gap: 0.9rem;
}

.hs-layout.hs-no-detail {
  grid-template-columns: 1fr;
}

.hs-components-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.hs-section-head {
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.hs-section-head h2,
.hs-section-head p {
  margin: 0;
}

.hs-unassigned-weight {
  margin-left: auto;
  white-space: nowrap;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.2rem;
}

.dot.automated { background: var(--ok); }
.dot.manual { background: #315f9c; }
.dot.blocked { background: var(--danger); }
.dot.deactivated { background: #8a8a8a; }
.dot.no-generator { background: var(--danger); }

.hs-table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.hs-components {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
}

.hs-components th,
.hs-components td {
  padding: 0.52rem 0.58rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.hs-components th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.67rem;
  font-weight: 600;
}

.hs-components tbody tr {
  cursor: pointer;
}

.hs-components tbody tr.hs-pillar-row {
  cursor: default;
}

.hs-components tbody tr.hs-pillar-row th,
.hs-components tbody tr.hs-pillar-row td {
  position: static;
  z-index: auto;
  /* Fixed height so bars with a score track match bars without one. */
  height: 2.4rem;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  vertical-align: middle;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}

.hs-components tbody tr.hs-pillar-toggle-row {
  cursor: pointer;
}

.hs-components tbody tr.hs-flag-pillar th,
.hs-components tbody tr.hs-flag-pillar td {
  background: var(--danger-bg);
  color: var(--danger);
}

.hs-components tbody tr.hs-flag-pillar.raised th,
.hs-components tbody tr.hs-flag-pillar.raised td {
  background: #d50000;
  color: #fff;
}

.hs-pillar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.hs-pillar-chevron,
.hs-pillar-bullet {
  display: inline-block;
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-top: 0.28rem solid transparent;
  border-bottom: 0.28rem solid transparent;
  border-left: 0.4rem solid currentColor;
  transform-origin: 40% 50%;
  transition: transform 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .hs-pillar-chevron,
  .hs-pillar-bullet {
    transition: none;
  }
}

.hs-pillar-row.open .hs-pillar-chevron {
  transform: rotate(90deg);
}

.hs-pillar-static {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  text-align: left;
}

.hs-components tbody tr.hs-collapsed {
  display: none;
}

.hs-components tbody tr.active {
  background: #e6e6e6;
  box-shadow: inset 3px 0 0 var(--accent);
}

.hs-component-name {
  font-weight: 600;
}

.hs-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.hs-source-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: #f4f1ea;
  color: var(--ink);
  font-size: 0.68rem;
  white-space: nowrap;
}

.hs-source-chip.available {
  background: #e5f2ee;
  color: var(--ok);
}

.hs-source-chip.unavailable {
  background: var(--danger-bg);
  color: var(--danger);
}

.hs-sources-dialog {
  padding: 1rem 1.15rem 1.15rem;
}

.hs-sources-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.hs-sources-list {
  list-style: none;
  margin: 0.85rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hs-source-badge,
.hs-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.38rem;
  border-radius: 999px;
  background: #eef2ef;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.hs-source-badge.automated {
  background: #e5f2ee;
  color: var(--ok);
}

.hs-source-badge.manual {
  background: #e7eef8;
  color: #315f9c;
}

.hs-source-badge.blocked {
  background: var(--danger-bg);
  color: var(--danger);
}

.hs-source-badge.deactivated {
  background: #eee;
  color: #5c5c5c;
}

.hs-source-badge.no-generator {
  background: var(--danger-bg);
  color: var(--danger);
}

.hs-status-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.hs-row-menu {
  position: fixed;
  z-index: 30;
  min-width: 9.5rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(28, 36, 32, 0.16);
}

.hs-row-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.hs-row-menu button:hover {
  background: var(--accent-soft);
}

.hs-row-menu button.is-current {
  font-weight: 600;
}

.hs-row-menu-label {
  padding: 0.25rem 0.6rem 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6b746e);
}

.hs-row-menu-sep {
  height: 1px;
  margin: 0.25rem 0.35rem;
  background: var(--line);
}

.hs-components th.hs-col-center,
.hs-components td.hs-col-center {
  text-align: center;
}

.hs-as-of {
  white-space: nowrap;
}

.hs-spark {
  display: block;
  width: 4.5rem;
  height: 1.15rem;
  margin: 0 auto;
}

.hs-spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hs-influence {
  min-width: 92px;
}

.hs-influence-track {
  height: 6px;
  border-radius: 999px;
  background: #e7ece8;
  overflow: hidden;
  margin-top: 0.2rem;
}

.hs-influence-fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.hs-detail {
  min-height: 0;
  overflow: auto;
}

.hs-detail h2 {
  font-size: 1.05rem;
  margin: 0;
}

.hs-detail-grid {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 0.22rem 0.7rem;
  align-items: start;
  margin: 0;
}

.hs-detail-grid dt {
  margin: 0;
  padding-top: 0.12rem;
  font-size: 0.68rem;
  line-height: 1.25;
}

.hs-detail-grid dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.3;
}

.hs-meta-row {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.55rem;
}

.hs-period {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.3rem;
}

.hs-points-value {
  cursor: text;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.hs-points-value.value-ok:hover {
  background: var(--accent-soft);
}

.hs-points-hint {
  font-size: 0.72rem;
  margin-left: 0.5rem;
}

.hs-edit-value {
  cursor: text;
  padding: 0.1rem 0.35rem;
  margin-left: -0.35rem;
  border-radius: 4px;
}

.hs-edit-value:hover {
  background: var(--accent-soft);
}

.hs-weight-input {
  max-width: 5rem;
}

.hs-owner-input {
  max-width: 18rem;
}

.hs-text-area {
  width: 100%;
  max-width: none;
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
  resize: vertical;
}

.hs-detail-grid dd .hs-points-hint {
  display: block;
  margin: 0.15rem 0 0;
}

.hs-components tbody tr.hs-has-explanation td {
  border-bottom: none;
  padding-bottom: 0.08rem;
}

.hs-explanation-row td {
  /* max-width: 0 lets the colspan clip to the table instead of widening it. */
  max-width: 0;
  padding: 0.32rem 0.7rem 0.4rem;
  color: #2f3b35;
  font-size: calc(0.72rem + 2pt);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hs-grain-note {
  font-size: 0.78rem;
  margin-left: 0.35rem;
}

.hs-current-value,
.value-ok,
.value-override,
.value-input,
.value-error {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.hs-current-value {
  font-weight: 600;
}

.hs-name-value {
  padding: 0.05rem 0.25rem;
  margin-left: -0.25rem;
}

.hs-name-input {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.hs-pillar-select {
  max-width: 100%;
  padding: 0.12rem 0.35rem;
  font-size: 0.84rem;
  line-height: 1.3;
  border-radius: 4px;
  cursor: pointer;
}

.hs-pillar-select:hover:not(:disabled) {
  background: var(--accent-soft);
}

.hs-pillar-select:disabled {
  opacity: 0.6;
  cursor: progress;
}

#hs-entry-error {
  margin-top: 0.6rem;
}

.hs-chart-wrap {
  margin: 0.7rem 0 0;
}

.hs-chart-legend {
  display: flex;
  gap: 0.9rem;
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.hs-chart-key::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0;
  margin-right: 0.35rem;
  border-top: 2.5px solid currentColor;
  vertical-align: middle;
}

.hs-chart-key.hs-chart-value {
  color: var(--accent);
}

.hs-chart-key.hs-chart-points {
  color: #1d4e89;
}

.hs-chart {
  width: 100%;
  height: auto;
}

.hs-chart-line {
  fill: none;
  stroke-width: 2.5;
}

.hs-chart-line.hs-chart-value {
  stroke: var(--accent);
}

.hs-chart-line.hs-chart-points {
  stroke: #1d4e89;
}

.hs-chart-target {
  stroke: #c0392b;
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}

.hs-chart-key.hs-chart-target-key {
  color: #c0392b;
}

.hs-chart-key.hs-chart-target-key::before {
  border-top: 2px dotted currentColor;
}

.hs-history {
  width: 100%;
  border-collapse: collapse;
  font: 0.76rem var(--mono);
  margin-top: 0.55rem;
}

.hs-history td,
.hs-history th {
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0.2rem;
  text-align: left;
}

.hs-report {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.hs-report .hs-section-head h2,
.hs-report .hs-section-head p {
  margin: 0;
}

.hs-report-loading td {
  padding: 2.5rem 0.75rem;
  text-align: center;
  color: var(--muted);
}

.hs-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.hs-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: hs-spin 0.8s linear infinite;
}

@keyframes hs-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hs-spinner { animation-duration: 2s; }
}

.hs-report-customer-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
}

.hs-report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.hs-report-table th,
.hs-report-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.hs-report-table th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.67rem;
  font-weight: 600;
}

.hs-report-sort {
  all: unset;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font: inherit;
  font-weight: 600;
  color: inherit;
}

.hs-report-table th[aria-sort="ascending"] .hs-report-sort,
.hs-report-table th[aria-sort="descending"] .hs-report-sort {
  color: var(--ink);
}

.hs-report-sort:hover {
  color: var(--accent);
}

.hs-report-table tbody tr.red td { background: #f1a3a3; }
.hs-report-table tbody tr.override td {
  background: #d50000;
  color: #fff;
}
.hs-report-table tbody tr.yellow td { background: #fff4cc; }
.hs-report-table tbody tr.green td { background: #e3f6ea; }
.hs-report-table tbody tr.unscored td { background: #f3f3f3; }

.hs-report-table a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.hs-report-table a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hs-report-table tbody tr.override a,
.hs-report-table tbody tr.override a:hover {
  color: #fff;
}

.hs-report-table tbody tr.override .muted,
.hs-report-table tbody tr.override .hs-override-score {
  color: #fff;
}

.hs-report-table tbody tr.override .hs-spark polyline {
  stroke: #fff;
}

.hs-override-score {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.hs-override-detail {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

/* A departing executive's name links to the Web Research source that reported it. */
.hs-source-link,
.hs-score-note .hs-source-link,
.hs-report-table tbody tr.override .hs-source-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hs-source-link:hover {
  text-decoration-thickness: 2px;
}

.hs-report-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  align-items: center;
}

.hs-dismiss-btn {
  /* display on the button itself beats the hidden attribute, so gate it. */
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  color: #9b0c0c;
  background: #fff;
  border-color: #9b0c0c;
  white-space: nowrap;
}

.hs-dismiss-btn:not([hidden]) {
  display: inline-flex;
}

.hs-dismiss-btn[aria-pressed="true"] {
  background: #fde8e8;
}

.hs-hero-dismiss {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 0.35rem;
}

.hs-score-hero.hs-score-zeroed .hs-dismiss-btn {
  border-color: #fff;
}

.hs-band.override {
  background: #d50000;
  color: #fff;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.hs-band {
  display: inline-flex;
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hs-band.red {
  background: #b3261e;
  color: #fff;
}

.hs-band.yellow {
  background: #fff4cc;
  color: #7a5a00;
}

.hs-band.green {
  background: #e3f6ea;
  color: #0d6b3a;
}

.hs-band.unscored {
  background: #eee;
  color: var(--muted);
}

#hs-report-error {
  margin: 0.6rem 1rem 0;
}

.hs-analysis-btn {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.hs-analysis-dialog {
  width: min(40rem, calc(100vw - 2rem));
  padding: 1rem 1.15rem 1.15rem;
}

.hs-analysis-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hs-analysis-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

#hs-analysis-meta {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.8rem;
}

.hs-analysis-body {
  max-height: 60vh;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.5;
}

.hs-analysis-body p {
  margin: 0 0 0.6rem;
}

.hs-analysis-body ul {
  margin: 0 0 0.6rem;
  padding-left: 1.2rem;
}

.hs-analysis-body li {
  margin-bottom: 0.3rem;
}

#hs-analysis-error {
  margin: 0 0 0.75rem;
}

@media (max-width: 1000px) {
  .hs-layout { grid-template-columns: 1fr; overflow: auto; }
  .hs-hero { align-items: stretch; flex-direction: column; }
  .hs-entity-control { width: auto; max-width: none; min-width: 0; }
  header.top { flex-wrap: wrap; row-gap: 0.6rem; }
  .hs-top-actions { flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .hs-top-actions { gap: 0.4rem; }
  .hs-top-actions .hs-score-switch button,
  .hs-top-actions .hs-score-switch a {
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
  }
}
