.project-link {
  padding: 0;
  border: 0;
  background: none;
  color: #175595;
  text-align: left;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.project-link:hover { text-decoration: underline; }
.project-link:focus-visible, .icon-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.certificate-status { display: block; margin-top: 5px; color: #677086; font-size: 12px; }
.certificate-status.available { color: #08745b; }
body.detail-open { overflow: hidden; }
.project-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #dce1e6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 24px 80px #0003;
}
.project-dialog::backdrop { background: #11182799; }
.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e7ec;
}
.detail-header > div { min-width: 0; }
.detail-eyebrow { margin: 0 0 7px; color: #677086; font-size: 12px; }
.detail-header h2 { margin: 0; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.detail-content { padding: 20px 24px 24px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 0 0 22px; }
.detail-facts > div { min-width: 0; }
.detail-facts dt { margin-bottom: 4px; color: #677086; font-size: 12px; }
.detail-facts dd { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.certificate-section { border-top: 1px solid #e2e7ec; padding-top: 18px; }
.certificate-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.certificate-heading h3 { margin: 0; font-size: 16px; }
.certificate-heading > span { color: #677086; font-size: 13px; }
.certificate-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.certificate-paging, .certificate-actions { display: flex; align-items: center; gap: 6px; }
.certificate-actions { margin-left: auto; }
.certificate-paging select { width: 110px; min-height: 36px; padding: 4px 8px; font-size: 13px; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 7px; flex: 0 0 36px;
  border: 1px solid #dce1e6; border-radius: 6px; background: #fff; color: #263241;
}
.icon-button:hover { background: #eef4f8; border-color: #a8bacb; }
.icon-button:disabled { opacity: 0.35; cursor: default; }
.icon-button img { width: 20px; height: 20px; }
.zoom-label { width: 44px; text-align: center; font-size: 12px; color: #526174; font-variant-numeric: tabular-nums; }
.certificate-stage { height: min(58dvh, 620px); min-height: 230px; overflow: auto; background: #f1f4f6; text-align: center; }
.certificate-stage > img { display: block; max-width: none; object-fit: contain; }
.certificate-stage > p { padding: 70px 18px; color: #677086; font-size: 14px; }
.certificate-retry { padding: 8px 16px; border: 1px solid #a8bacb; border-radius: 6px; background: #fff; color: #175595; }
.certificate-retry:hover { background: #eef4f8; }
.certificate-retry:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.certificate-source { margin: 12px 0 0; color: #677086; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.certificate-note { margin: 12px 0 0; padding-left: 12px; border-left: 3px solid #b78219; color: #6e571d; font-size: 13px; line-height: 1.6; }
.certificate-empty { padding: 40px 12px; text-align: center; color: #677086; font-size: 14px; }
.project-dialog [hidden] { display: none !important; }
@media (max-width: 600px) {
  .project-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .detail-header, .detail-content { padding: 16px; }
  .detail-header h2 { font-size: 17px; }
  .detail-facts { gap: 12px; }
  .detail-facts > div:nth-child(5) { grid-column: 1 / -1; }
  .certificate-stage { height: 42dvh; }
}
@media print {
  .project-dialog { display: none; }
  .project-link { color: inherit; }
}
