.case-detail .record-completion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid #eddaa3;
  border-radius: 17px;
  background: #fff7df;
  color: #715018;
  line-height: 1.4;
}
.completion-symbol {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 23px;
  min-height: 33px;
  color: #a77716;
}
.completion-symbol svg {
  width: 20px;
  height: 20px;
}
.completion-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
}
.completion-copy > strong {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.completion-links {
  display: contents;
}
.case-detail .record-completion + .case-title {
  padding-top: 18px;
}
.completion-links button,
.completion-links > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #e9d49b;
  background: #fffdf7;
  color: #715018;
  font: inherit;
  font-size: 12px;
  text-align: left;
  line-height: 1.4;
  transition:
    background 160ms,
    transform 160ms,
    border-color 160ms;
}
.completion-links button > span {
  overflow-wrap: anywhere;
}
.completion-links button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.completion-links button svg:last-child {
  opacity: 0.7;
  width: 13px;
}
.completion-links button:hover {
  background: #fff;
  border-color: #c49a3c;
  transform: translateY(-1px);
}
.completion-links button:focus-visible {
  outline: 2px solid #ac7715;
  outline-offset: 3px;
}
.completion-target {
  animation: completion-glow 2.4s var(--ease-response);
}
@keyframes completion-glow {
  0%,
  35% {
    box-shadow: 0 0 0 5px #e8b63655;
  }
  100% {
    box-shadow: 0 0 0 0 #e8b63600;
  }
}
:root[data-theme='dark'] .case-detail .record-completion {
  background: #302819;
  border-color: #6c5528;
  color: #f3d591;
}
:root[data-theme='dark'] .completion-symbol {
  color: #eac466;
}
:root[data-theme='dark'] .completion-links button,
:root[data-theme='dark'] .completion-links > span {
  background: #44371f;
  border-color: #766034;
  color: #f5dca5;
}
:root[data-theme='dark'] .completion-links button:hover {
  background: #544327;
  border-color: #ba944b;
}
@media (max-width: 760px) {
  .case-detail .record-completion {
    padding: 12px 14px;
    gap: 10px;
    margin: 18px 0 0;
    border-radius: 15px;
  }
  .completion-copy {
    gap: 6px 10px;
  }
  .completion-links button {
    padding: 8px 10px;
    min-height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .completion-links button {
    transition: none;
  }
  .completion-links button:hover {
    transform: none;
  }
  .completion-target {
    animation: none;
    outline: 2px solid #c49a3c;
    outline-offset: 3px;
  }
}
