.journal-signin {
  box-sizing: border-box;
  width: min(440px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: clamp(1.15rem, 5vw, 2rem);
  overflow: auto;
  border: 1px solid #d4b675;
  border-radius: 1rem;
  color: #fff4de;
  background: linear-gradient(150deg, #312044, #201834 62%);
  box-shadow: 0 1.5rem 5rem #070412ac;
  font: 500 0.875rem/1.5 system-ui, sans-serif;
  color-scheme: dark;
}
.journal-signin::backdrop { background: #0b081bd4; }
.journal-signin .journal-signin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.15rem; }
.journal-signin h2 { margin: 0; color: #ffe6b4; font: 700 clamp(1.35rem, 5vw, 1.65rem)/1.2 system-ui, sans-serif; letter-spacing: 0; }
.journal-signin h2 span { display: block; margin-top: .3rem; color: #e7d7fc; font-size: 1rem; font-weight: 600; }
.journal-signin button { cursor: pointer; font: inherit; }
.journal-signin .journal-signin-close { flex: 0 0 44px; min-height: 44px; padding: 0; border: 1px solid #977bb0; border-radius: .45rem; background: #422d58; color: #fff4de; font-size: 1.5rem; line-height: 1; }
.journal-signin form { display: grid; gap: .5rem; margin: 0; }
.journal-signin label { margin: .45rem 0 0; color: #fff4de; font-weight: 700; }
.journal-signin label span { display: block; color: #e7d7fc; font-size: .8rem; font-weight: 500; }
.journal-signin input:not([type=hidden]) { box-sizing: border-box; width: 100%; min-height: 46px; padding: .5rem .75rem; border: 1px solid #997bb0; border-radius: .4rem; background: #181126; color: #fff4de; font: 1rem/1.35 system-ui, sans-serif; }
.journal-signin :focus-visible { outline: 2px solid #f6d58f; outline-offset: 2px; }
.journal-signin .journal-signin-submit { min-height: 46px; margin-top: .65rem; padding: .55rem .8rem; border: 0; border-radius: .45rem; background: #f1cf8c; color: #21172f; font-weight: 800; }
.journal-signin-foot { margin-top: 1rem; color: #e7d7fc; font-size: .8rem; }
.journal-signin-foot p { margin: 0 0 .45rem; }
.journal-signin-foot a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .25rem; min-height: 44px; color: #ffe6b4; text-decoration: underline; text-underline-offset: .2em; }
.journal-signin .journal-signin-error { margin: 0; padding: .6rem .75rem; border-radius: .35rem; color: #ffdfd7; background: #652e3d; }
.journal-signin .journal-signin-submit:disabled { cursor: progress; }
.journal-signin [hidden], .join [hidden] { display: none !important; }
[data-name-stage], .journal-pin-stage { display: grid; gap: .35rem; }
.journal-pin-stage { margin-top: .7rem; }
.journal-name-status { margin: .15rem 0 0; color: #665672; font-size: .82rem; }
.journal-name-status:empty { display: none; }
.join .journal-enrollment-name { color: var(--ink, #30233b); font-size: 1rem; font-weight: 750; margin: .25rem 0 .75rem; }
.journal-signin .journal-enrollment-name { color: #fff4de; font-size: 1rem; font-weight: 750; margin: .25rem 0 .75rem; }
.journal-name-options { display: grid; max-height: 13.75rem; overflow: auto; border: 1px solid #a78dbb; border-radius: .45rem; background: #faf5ff; color: #342043; }
.journal-name-options [role=option] { display: flex; align-items: center; min-height: 44px; padding: .3rem .65rem; font-weight: 650; cursor: pointer; }
.journal-name-options [role=option]+[role=option] { border-top: 1px solid #a78dbb55; }
.journal-name-options [role=option]:is(:hover,[aria-selected=true]) { color: #281938; background: #e7d4f4; }
.journal-pin-line { display: flex; gap: .4rem; align-items: stretch; }
.journal-pin-line input { min-width: 0; }
.journal-pin-visibility { min-height: 44px; flex: none; padding: .25rem .45rem; border: 1px solid #a78dbb; border-radius: .4rem; background: #faf5ff; color: #342043; font: inherit; }
.journal-signin .journal-name-options, .journal-signin .journal-pin-visibility { background: #181126; color: #fff4de; }
.journal-signin .journal-name-options [role=option]:is(:hover,[aria-selected=true]) { background: #533763; color: #fff4de; }
.journal-signin .journal-name-status { color: #e7d7fc; }
#journal-organiser { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; margin-top: .45rem; }
.camp-launcher { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.camp-launcher a { display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; padding: .4rem .7rem; border: 1px solid #8caec4; border-radius: .45rem; color: #e7f3ff; background: #132c46; font-size: .82rem; font-weight: 750; text-decoration: none; }
.camp-launcher a:hover { background: #224667; }
.camp-launcher a .icon { width: 1.15em; height: 1.15em; flex: none; }
.camp-launcher .journal-home-cta { border-color: #d4b675; color: #ffe6b4; background: #36264f; }
.camp-launcher .journal-home-cta:hover { background: #4e356d; }
.journal-account-dock { position:fixed; left:18px; bottom:calc(18px + env(safe-area-inset-bottom)); z-index:18; display:flex; align-items:center; gap:9px; padding:6px 12px 6px 6px; min-height:58px; border:1px solid #d4b675; border-radius:36px; background:#251b33; color:#fff2d2; text-decoration:none; box-shadow:0 5px 22px #120a2455; font:700 .75rem/1.3 system-ui,sans-serif; }
.journal-account-dock[hidden] { display:none; }
.journal-account-dock img { width:44px; height:44px; border-radius:50%; object-fit:cover; background:#e8dcf5; }
.journal-share-bubble { display:flex; position:fixed; right:18px; bottom:calc(20px + env(safe-area-inset-bottom)); z-index:18; align-items:center; gap:8px; min-height:58px; padding:7px 17px 7px 8px; border:1px solid #f7d991; border-radius:34px; background:#f0ce8a; color:#302039; text-decoration:none; box-shadow:0 6px 25px #160c3055; font:750 .86rem/1.2 system-ui,sans-serif; }
.journal-share-bubble small { display:block; margin-top:3px; font-size:.65rem; font-weight:550; }
.journal-bubble-plus { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#fff7df; color:#63456b; font-size:1.6rem; }
@media(max-width:600px) { .journal-account-dock { left:12px; padding-right:6px; } .journal-account-dock>span { display:none; } .journal-share-bubble { right:12px; } }
@media(prefers-reduced-motion:no-preference) {
  .journal-share-bubble { animation:journal-invite 3s ease-in-out 3; transition:transform .15s ease-out; }
  .journal-share-bubble:active,.journal-account-dock:active { transform:scale(.96); }
  @keyframes journal-invite { 0%,100% { box-shadow:0 6px 25px #160c3055; } 50% { box-shadow:0 6px 25px #160c3055,0 0 0 6px #f0ce8a20; } }
}
