button[data-view-license] {
  appearance: none;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 3px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.license-dialog {
  box-sizing: border-box;
  width: min(40rem, 92vw);
  max-height: 84vh;
  margin: auto;
  padding: 0;
  color: #f6ede0;
  background: #251e29;
  border: 1px solid #88775f;
  border-radius: 14px;
  box-shadow: 0 20px 80px #09060a88;
  font: 16px/1.65 system-ui, sans-serif;
  color-scheme: dark;
}
.license-dialog::backdrop { background: #110e18b8; }
.license-dialog[open] { display: flex; flex-direction: column; }
.license-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 25px;
  border-bottom: 1px solid #5f505a;
}
.license-dialog h2 { margin: 0; color: #f4e3c7; font: 500 24px/1.35 Georgia, Batang, serif; }
.license-dialog form { margin: 0; }
.license-dialog button {
  padding: 5px 13px;
  background: transparent;
  color: inherit;
  border: 1px solid #8e7a84;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.license-list { overflow: auto; padding: 6px 25px 18px; overscroll-behavior: contain; }
.license-list details { border-bottom: 1px solid #554754; }
.license-list details:last-child { border-bottom: none; }
.license-list summary { padding: 14px 0; cursor: pointer; font-weight: 600; }
.license-list p { margin: 0 0 12px; color: #dcc9a8; }
.license-list pre { color: #ded4df; font: 14px/1.6 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.license-dialog :focus-visible,button[data-view-license]:focus-visible { outline: 2px solid #edc987; outline-offset: 3px; }
