html:has(.up-entry[open]) { overflow: hidden; }

.up-entry {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(34rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: clamp(1.15rem, 5vw, 2.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #cec7bf;
  border-radius: 18px;
  background: linear-gradient(145deg, #fcfaf4 40%, #eeece7);
  color: #352a26;
  box-shadow: 0 22px 85px #1c141161;
  font: 1rem/1.5 system-ui, sans-serif;
}
.up-entry::backdrop { background: #241b17d9; backdrop-filter: blur(6px); }
.up-entry-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; font: 1rem/1.2 Georgia, serif; letter-spacing: .16em; text-transform: uppercase; }
.up-entry-brand img { display: block; flex: none; object-fit: contain; }
.up-entry h2 { margin: 0 0 .55rem; color: inherit; font: 400 clamp(1.65rem, 6vw, 2.45rem)/1.1 Georgia, serif; }
.up-entry h2:focus { outline: none; }
.up-entry p { margin: 0 0 1rem; font-size: .93rem; }
.up-entry form { display: grid; gap: .35rem; }
.up-entry label { display: flex; align-items: center; gap: .65rem; min-height: 44px; cursor: pointer; }
.up-entry input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #4e3e38; }
.up-entry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .5rem; }
.up-entry button { padding: .65rem 1.2rem; min-height: 44px; border: 0; border-radius: 999px; background: #4e3e38; color: #fdfdfc; font: 600 .92rem/1.35 system-ui, sans-serif; cursor: pointer; }
.up-entry button:hover { background: #362924; }
.up-entry a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: underline; text-underline-offset: .22em; font-size: .86rem; }
.up-entry-languages { display: flex; gap: .35rem; margin-top: .75rem; border-top: 1px solid #cac2b9; }
.up-entry-languages a { padding: 0 .48rem; }
.up-entry-languages a[aria-current] { font-weight: 700; }
.up-entry :focus-visible { outline: 2px solid #6e584f; outline-offset: 3px; }
