.web-entry-dialog {
  width: min(100% - 32px, 550px);
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid #dbc7af;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 70px #3420174d;
  overflow: auto;
}
.web-entry-dialog[open] { display: flex; flex-direction: column; }
.web-entry-dialog::backdrop { background: #24160bc2; backdrop-filter: blur(3px); }
.web-entry-dialog .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.web-entry-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.web-entry-kicker { color: var(--accent); font-size: 12px; font-weight: 750; }
.web-entry-head h2 { margin: 6px 0 0; font-size: clamp(20px, 3vw, 25px); line-height: 1.3; }
.web-entry-close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.web-entry-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 24px; font-size: 14px; line-height: 1.7; }
.web-entry-body p { margin: 0 0 12px; }
.web-entry-note { color: var(--muted); font-size: 13px; }
.web-entry-policy { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--accent); font-weight: 700; }
.web-entry-policy .icon { width: 17px; height: 17px; }
.web-entry-choice { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #f8f0e5; cursor: pointer; }
.web-entry-choice input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.web-entry-choice a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.web-entry-body .error-box { margin: 14px 0 0; }
.web-entry-actions { display: flex; flex: 0 0 auto; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 16px 24px 24px; border-top: 1px solid var(--border); background: var(--paper); }
.web-entry-dialog :is(button, a, input):focus-visible { outline: 3px solid #2962bc; outline-offset: 3px; }
.web-entry-dialog button:not(:disabled):active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .web-entry-close:hover { background: #f8ece1; }
  .web-entry-policy:hover, .web-entry-choice a:hover { color: #742a1d; }
}
@media (max-width: 560px) {
  .web-entry-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .web-entry-head { padding: 18px 18px 14px; }
  .web-entry-body { padding: 16px 18px; }
  .web-entry-actions { padding: 14px 18px 18px; }
  .web-entry-actions .button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .web-entry-dialog button:active { transform: none; }
}
