.create-post-top { text-align: center; margin: 0 0 24px; }
.create-post-top .free-post-btn { animation: none; max-width: 100%; box-sizing: border-box; }
.create-post-rail[hidden] { display: none; }
.create-post-rail {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(640px, calc(100% - 28px));
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 18px;
  background: rgba(3, 8, 10, .96);
  color: var(--text-main);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: create-post-rise .22s ease-out;
}
.create-post-rail p { margin: 0; font-size: .85rem; }
.create-post-rail-actions { display: flex; align-items: center; gap: 10px; }
.create-post-rail .free-post-btn { width: auto; margin: 0; padding: 10px 16px; font-size: .8rem; letter-spacing: .06em; animation: none; box-shadow: none; }
.create-post-dismiss { border: 0; background: transparent; color: var(--text-soft); padding: 10px 5px; cursor: pointer; font: inherit; font-size: .8rem; white-space: nowrap; }
.create-post-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@keyframes create-post-rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 600px) {
  .create-post-rail { flex-direction: column; gap: 6px; padding: 10px 12px; }
  .create-post-rail-actions { width: 100%; justify-content: center; }
  .create-post-top .free-post-btn { padding: 13px 18px; width: auto; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { .create-post-rail { animation: none; } }
/* Reuse the existing portal gate and shared provider menu, scoped to this gate. */
dialog#guestAccessModal { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; color: var(--text-main); }
dialog#guestAccessModal::backdrop { background: transparent; }
#guestAccessModal .access-route-list, #guestAccessModal .access-role-cards { display: grid; gap: 12px; }
#guestAccessModal .access-route { display: block; width: 100%; box-sizing: border-box; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); background: linear-gradient(120deg,var(--sunset-deep),var(--sunset-orange),#ffd8a0); color: #181818; font: 600 .95rem "Open Sans",sans-serif; text-align: left; cursor: pointer; }
#guestAccessModal .access-route:disabled { opacity: .65; cursor: wait; }
#guestAccessModal .access-route-label, #guestAccessModal .access-route-description { display: block; }
#guestAccessModal .access-route-description { margin-top: 6px; font-size: .8rem; }
#guestAccessModal .access-helper { font-size: .85rem; line-height: 1.5; }
#guestAccessModal form:not([hidden]) { display: grid; gap: 12px; }
#guestAccessModal input.access-route { background: rgba(0,0,0,.7); color: #fff; }
