html.qrd-entry-locked,
.qrd-entry-locked body { overflow: hidden; }
.qrd-entry-pending body > :not(#qrd-entry-dialog):not(script) { visibility: hidden; }

.qrd-entry-dialog {
  padding: 0;
  width: min(680px, calc(100% - 40px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 48px));
  margin: auto;
  border: 1px solid #cfc9c1;
  border-radius: 14px;
  background: #ebe8e4;
  color: #292724;
  box-shadow: 0 30px 100px #0004;
  overflow: hidden;
  font-family: var(--font);
}
.qrd-entry-dialog[open] { display: flex; flex-direction: column; }
.qrd-entry-dialog::backdrop { background: #201d19b8; backdrop-filter: blur(6px); }
.qrd-entry-header { padding: 28px 32px 22px; border-bottom: 1px solid #cfc9c1; flex-shrink: 0; }
.qrd-entry-eyebrow { margin: 0 0 12px; color: #78663e; font-size: 12px; letter-spacing: .08em; }
.qrd-entry-header h2 { margin: 0 0 12px; font-size: 28px; line-height: 1.4; letter-spacing: -.8px; }
.qrd-entry-header h2:focus { outline: none; }
.qrd-entry-header > p:last-child { margin: 0; font-size: 14px; color: #6c665f; line-height: 1.7; }
.qrd-entry-body { padding: 22px 26px 22px 32px; margin-right: 6px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b7afa4 transparent; }
@supports selector(::-webkit-scrollbar) {
  .qrd-entry-body { scrollbar-width: auto; scrollbar-color: auto; }
  .qrd-entry-body::-webkit-scrollbar { width: 6px; height: 6px; }
  .qrd-entry-body::-webkit-scrollbar-track { background: transparent; margin-block: 12px; }
  .qrd-entry-body::-webkit-scrollbar-thumb { background: #b7afa4; border-radius: 10px; }
  .qrd-entry-body::-webkit-scrollbar-thumb:hover { background: #978d80; }
  .qrd-entry-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  .qrd-entry-body::-webkit-scrollbar-corner { background: transparent; }
}
.qrd-entry-points { list-style: none; counter-reset: notice; padding: 0; margin: 0; }
.qrd-entry-points li { position: relative; padding-left: 36px; margin-bottom: 18px; counter-increment: notice; }
.qrd-entry-points li::before { content: '0' counter(notice); position: absolute; left: 0; top: 1px; font-size: 12px; color: #8c7b52; }
.qrd-entry-points strong { font-size: 15px; font-weight: 600; }
.qrd-entry-points p { margin: 6px 0 0; font-size: 14px; line-height: 1.8; color: #6c665f; }
.qrd-entry-rights { font-size: 13px; line-height: 1.8; padding: 12px 15px; margin: 20px 0; border-left: 2px solid #b59c5c; background: #f4f0e5; color: #5e5237; }
.qrd-entry-details { border-top: 1px solid #cfc9c1; padding-top: 16px; }
.qrd-entry-details > h3 { font-size: 15px; color: #705919; font-weight: 600; margin: 0 0 20px; }
.qrd-entry-full { font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.qrd-entry-full a { color: #705919; text-decoration: underline; text-underline-offset: 3px; }
.qrd-entry-statement .guide-section { margin: 0 0 24px; padding: 0 0 24px; scroll-margin-top: 12px; }
.qrd-entry-statement h2 { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.qrd-entry-statement p { margin: 12px 0; }
.qrd-entry-statement .notice { margin: 16px 0; font-size: 13px; }
.qrd-entry-footer { padding: 20px 32px 24px; border-top: 1px solid #cfc9c1; flex-shrink: 0; }
.qrd-entry-confirm { display: flex; justify-content: center; align-items: center; gap: 16px; width: 100%; min-height: 50px; padding: 13px 16px; border: 1px solid #292724; border-radius: 7px; background: #292724; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.qrd-entry-confirm:hover { background: #454039; }
.qrd-entry-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; font-size: 12px; line-height: 1.6; color: #6c665f; }
.qrd-entry-bottom a { white-space: nowrap; color: #705919; text-decoration: underline; text-underline-offset: 3px; }
.qrd-entry-retry { background: #fff; border: 1px solid #cfc9c1; border-radius: 4px; padding: 6px 12px; font-size: 13px; }
.qrd-entry-noscript { position: fixed; inset: 0; z-index: 1000; background: #ebe8e4; color: #292724; padding: 10vh 8vw; line-height: 1.9; }
.qrd-entry-noscript a { display: inline-block; margin-top: 20px; text-decoration: underline; }

@media (max-width: 540px) {
  .qrd-entry-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .qrd-entry-header { padding: 22px 20px 18px; }
  .qrd-entry-header h2 { font-size: 24px; }
  .qrd-entry-eyebrow { font-size: 11px; }
  .qrd-entry-header > p:last-child { font-size: 13px; }
  .qrd-entry-body { padding: 20px 14px 20px 20px; }
  .qrd-entry-points li { padding-left: 28px; }
  .qrd-entry-footer { padding: 16px 20px 18px; }
  .qrd-entry-confirm { font-size: 14px; gap: 8px; }
  .qrd-entry-bottom { font-size: 11px; gap: 10px; }
}

@media (max-height: 550px) {
  .qrd-entry-header { padding-block: 14px; }
  .qrd-entry-header h2 { font-size: 21px; margin-bottom: 6px; }
  .qrd-entry-eyebrow { margin-bottom: 6px; }
  .qrd-entry-footer { padding-block: 12px; }
}
