.metadata-intro { padding-block: clamp(28px, 4vw, 50px) 28px; }
.metadata-intro h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); }
.metadata-intro p { max-width: 680px; font-size: 1rem; }
.metadata-workspace { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(340px, 1fr); gap: 18px; align-items: start; }
.metadata-photo { position: sticky; top: 16px; }
.metadata-stage { position: relative; display: grid; place-items: center; min-height: 330px; border: 1px solid #d5dbe5; border-radius: 11px; overflow: hidden; background: conic-gradient(#e1e5ec 25%, #e9ecf1 0 50%, #e1e5ec 0 75%, #e9ecf1 0) 0 0 / 24px 24px; }
.metadata-stage:has(.metadata-empty:not([hidden])) { background: #edf0f5; border: 1px dashed #a8b4c8; }
.metadata-stage.drag { outline: 2px solid var(--accent); outline-offset: -3px; background: #e7eeff; }
.metadata-stage img { display: block; max-width: 100%; max-height: 510px; width: auto; height: auto; object-fit: contain; }
.metadata-empty { text-align: center; padding: 30px 20px; }
.metadata-empty svg { display: block; width: 54px; height: 54px; margin: 0 auto 19px; fill: none; stroke: #6d80aa; stroke-width: 1.2; }
.metadata-empty h3 { margin: 0; font-size: 1.15rem; font-weight: 650; letter-spacing: -.035em; }
.metadata-empty p { margin-top: 8px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.metadata-source-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
.metadata-source-actions p { color: var(--muted); font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.metadata-clean-summary { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.metadata-check { flex: none; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e7eeff; color: #2145b1; font-size: .875rem; }
.metadata-clean-summary strong { font-size: .875rem; font-weight: 650; }
.metadata-clean-summary p { margin-top: 5px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.metadata-information-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.metadata-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 8px; border-radius: 5px; color: #566176; background: #e9edf3; font-size: .75rem; line-height: 1.4; }
.metadata-badge[data-state="found"] { background: #e7eeff; color: #2145b1; }
.metadata-placeholder { padding-bottom: 20px; }
.metadata-placeholder > div { display: flex; justify-content: space-between; gap: 10px; padding-block: 11px; border-bottom: 1px solid #e2e5eb; color: #6c7687; font-size: .875rem; }
.metadata-placeholder > p { margin-top: 17px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.metadata-group { border-top: 1px solid var(--line); padding-block: 14px; }
.metadata-group:first-child { border-top: 0; padding-top: 0; }
.metadata-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; font-size: .875rem; font-weight: 650; list-style: none; }
.metadata-group > summary::-webkit-details-marker { display: none; }
.metadata-group > summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; border-right: 1.5px solid #66758e; border-bottom: 1.5px solid #66758e; transform: rotate(45deg); }
.metadata-group[open] > summary::after { transform: rotate(225deg); }
.metadata-group dl { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 10px 14px; padding-top: 12px; font-size: .8125rem; line-height: 1.5; }
.metadata-group dt { color: var(--muted); overflow-wrap: anywhere; }
.metadata-group dd { color: var(--ink); overflow-wrap: anywhere; }
.metadata-none { margin: 0 0 15px; padding: 11px 12px; border-radius: 7px; background: #eef2f8; color: #4d5e79; font-size: .8125rem; line-height: 1.5; }
.metadata-found { margin-bottom: 15px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.metadata-export { margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.metadata-export .primary { margin-top: 15px; }
.metadata-export-note { margin-top: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.metadata-footnote { max-width: 860px; margin: 18px auto 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; text-align: center; }
.metadata-page .subtle { min-height: 30px; font-size: .8125rem; }
@media (max-width: 800px) {
  .metadata-workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .metadata-photo { position: static; }
  .metadata-stage { min-height: 260px; }
  .metadata-stage img { max-height: 420px; }
}
@media (max-width: 420px) {
  .metadata-intro { padding-block: 29px 22px; }
  .metadata-intro p { font-size: .875rem; }
  .metadata-stage { min-height: 220px; }
  .metadata-information { padding: 17px; }
  .metadata-group dl { grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); gap: 9px; }
  .metadata-footnote { text-align: left; }
}
