/* Scoped additions for the evaluation entry and dialog only. */
.header-resource-links .evaluation-entry {
  background: rgb(var(--accent));
  color: rgb(var(--inverse));
}
.header-resource-links .evaluation-entry:hover { box-shadow: 0 0 14px rgb(var(--accent)/.2); }
#evaluation-dialog { width: min(570px, calc(100% - 32px)); }
#evaluation-intro { color: rgb(var(--muted)); font-size: 12px; line-height: 1.8; margin-bottom: 8px; }
#evaluation-form label { display: block; }
#evaluation-form :is(input, textarea, select) { display: block; margin-top: 7px; }
#evaluation-form select {
  width: 100%; padding: 10px 12px; border: 1px solid rgb(var(--line)); border-radius: 6px;
  background: rgb(var(--bg)); color: rgb(var(--text)); font: 13px var(--font-sans);
}
#evaluation-form select:focus-visible { outline: 2px solid rgb(var(--accent)/.4); outline-offset: 1px; }
.evaluation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
#evaluation-form .evaluation-note, #evaluation-form .evaluation-contact {
  color: rgb(var(--muted)); font-size: 10px; line-height: 1.8; margin-top: 12px;
}
#evaluation-form .evaluation-contact a { color: rgb(var(--text)); text-decoration: underline; text-underline-offset: 3px; }
#submit-evaluation { justify-content: space-between; }
#evaluation-status { font-size: 12px; line-height: 1.7; margin-top: 14px; }
#evaluation-status:empty { display: none; }
#evaluation-status[data-state="error"] { color: rgb(var(--regression)); }
#evaluation-status[data-state="success"] { color: rgb(var(--text)); }
body:has(#evaluation-dialog[open]) { overflow: hidden; }
/* Make room for the added action while retaining all existing header links. */
@media (min-width: 801px) and (max-width: 1200px) {
  .navigation.has-evaluation-entry { gap: 12px; }
  .navigation.has-evaluation-entry nav { gap: 12px; }
  .navigation.has-evaluation-entry .brand img { width: 118px; }
  .navigation.has-evaluation-entry .header-resource-links .compact { padding: 9px 10px; }
}
@media (max-width: 950px) {
  .navigation.has-evaluation-entry { height: auto; min-height: 80px; flex-wrap: wrap; gap: 10px 16px; padding-block: 12px; }
  .navigation.has-evaluation-entry .header-resource-links { margin-left: auto; }
  .navigation.has-evaluation-entry nav a { padding-block: 12px; }
}
@media (max-width: 600px) {
  .navigation.has-evaluation-entry { min-height: 64px; gap: 9px; }
  .navigation.has-evaluation-entry .header-resource-links { width: 100%; justify-content: flex-end; }
  .navigation.has-evaluation-entry .header-resource-links .evaluation-entry { padding-inline: 13px; }
  #evaluation-dialog { padding: 23px; }
  .evaluation-fields { grid-template-columns: 1fr; gap: 0; }
}
