dialog.entry-dialog {
  width:min(440px,calc(100% - 24px)); max-height:calc(100dvh - 26px); max-width:none;
  padding:0; border:1px solid #cdd7c7; border-radius:20px; overflow:auto;
  color:#213c31; background:#fffef6; box-shadow:0 24px 80px #0e291e4d;
}
dialog.entry-dialog::backdrop { background:#102a21ac; }
.entry-dialog * { box-sizing:border-box; }
.entry-dialog h2 { font-size:clamp(25px,5.2vw,34px); letter-spacing:-1.6px; line-height:1.13; margin:0 0 .65rem; }
.entry-dialog h2:focus { outline:none; }
.entry-body { padding:clamp(20px,4vw,28px); }
.entry-dialog p { margin:.3rem 0 1.05rem; line-height:1.55; }
.entry-lead,.entry-dialog .login-hint { color:#526459; }
.entry-forest { position:relative; height:clamp(118px,26vw,162px); isolation:isolate; display:flex; align-items:flex-start; padding:16px 21px; background:#193d2d url('/art/hero.webp') 78% 48%/cover; }
.entry-forest::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(100deg,#12362966,transparent 58%); }
.entry-wordmark { display:inline-flex; gap:7px; align-items:center; font-size:19px; font-weight:800; letter-spacing:-.7px; color:#f4f8e9; }
.entry-wordmark svg { color:#f1ce78; }
.entry-dialog .primary,.entry-dialog .secondary { min-height:46px; }
.entry-auth>.primary,.entry-guest,.setup-submit,.entry-dialog.return-dialog button { width:100%; }
.entry-auth .primary:disabled { background:#bcc9bd; color:#344a3c; cursor:default; opacity:1; }
.entry-dialog .login-hint,.modal-content .login-hint { font-size:14px; margin:.6rem 0 .85rem; }
.entry-guest { margin-top:.4rem; }
.entry-status:not(:empty) { padding:.65rem .8rem; border-radius:9px; color:#34573e; background:#edf2e4; font-size:14px; }
.entry-status:empty { display:none; }
.code-slip { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px dashed #b5c5af; background:#eef4e8; border-radius:10px; padding:6px 12px; margin:.5rem 0 1rem; }
.code-slip .auth-code { color:#214c38; font:800 28px/1.3 ui-monospace,monospace; letter-spacing:.14em; }
.code-slip span { color:#48614d; font-size:14px; font-weight:650; }
.return-dialog button+button { margin-top:.55rem; }
dialog.onboarding-dialog { width:min(560px,calc(100% - 24px)); }
.setup-heading { display:flex; gap:14px; align-items:center; padding:20px clamp(18px,4vw,28px); background:#e9efdf; border-bottom:1px solid #d6dfcd; }
.setup-heading img { width:60px; height:60px; object-fit:cover; border-radius:14px; border:2px solid #8faa86; }
.setup-heading span { font-size:14px; color:#51694f; font-weight:650; }
.setup-heading h2 { margin:.13rem 0 0; font-size:clamp(24px,4.2vw,30px); }
.setup-form { display:grid; gap:.68rem; }
.course-picks { padding:0; border:0; margin:0 0 .48rem; min-width:0; }
.course-picks legend,.pref-field { font-size:15px; font-weight:750; }
.course-picks>div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:.55rem; }
.course-pick { position:relative; display:flex; align-items:flex-start; gap:.55rem; padding:.7rem; border:1px solid #d2dccb; background:#f7f8ee; border-radius:11px; cursor:pointer; }
.course-pick:has(input:checked) { border-color:#4b7f55; box-shadow:inset 0 0 0 1px #4b7f55; background:#eaf3e3; }
.course-pick:has(input:focus-visible),.sound-pref:has(input:focus-visible) { outline:3px solid #548767; outline-offset:2px; }
.course-pick input,.sound-pref input { position:absolute; inline-size:1px; block-size:1px; opacity:0; }
.course-mark { display:grid; place-items:center; min-width:31px; min-height:31px; font-size:13px; font-weight:800; color:#35593e; background:#e4ebdb; border-radius:7px; }
.course-pick:has(input:checked) .course-mark { background:#356345; color:white; }
.course-pick b,.course-pick small,.sound-pref b,.sound-pref small { display:block; }
.course-pick b,.sound-pref b { font-size:14px; }
.course-pick small,.sound-pref small { font-size:13px; color:#526456; line-height:1.4; margin-top:.15rem; }
.setup-form input[type=text],.field .pref-field select { display:block; width:100%; min-height:43px; padding:.6rem .8rem; border:1px solid #bfceb9; border-radius:8px; background:#fff; color:#213c31; font:inherit; }
.setup-form input[type=text] { margin-top:-.28rem; }
.field .pref-field select { margin-top:.35rem; }
.sound-pref,.field label.sound-pref { position:relative; display:flex; align-items:center; gap:.7rem; margin:.32rem 0 .5rem; border:1px solid #d2dccb; background:#f7f8ee; border-radius:11px; padding:.75rem; cursor:pointer; }
.sound-glyph { color:#486c4c; display:grid; place-items:center; }
.sound-pref>span:nth-child(2) { flex:1; }
.sound-pref i { flex:0 0 38px; height:23px; border-radius:15px; background:#a7b3a5; padding:3px; }
.sound-pref i::after { content:''; display:block; width:17px; height:17px; border-radius:50%; background:white; box-shadow:0 1px 3px #183a232a; }
.sound-pref input:checked+i { background:#39734d; }
.sound-pref input:checked+i::after { transform:translateX(15px); }
@media(max-width:420px) {
  .course-picks>div { grid-template-columns:1fr; gap:6px; }
  .course-pick { align-items:center; padding:.5rem .65rem; }
  .setup-heading { padding:14px 18px; }
  .setup-heading img { width:48px; height:48px; }
  .entry-body { padding:18px; }
  .entry-forest { height:110px; }
}
@media(max-height:700px) {
  .entry-forest { height:92px; }
  .setup-heading { padding-block:12px; }
}
