/* Live public navigation. Account forms and the practice workspace retain their own layout. */
.public-shell .topbar {
  gap: 28px;
  padding-inline: max(28px, calc((100vw - 1440px) / 2));
  background: #141416f5;
  border-bottom-color: #ffffff12;
}
.public-shell .topbar .brand { flex: 0 0 auto; min-width: 136px; }
.public-shell .top-nav { gap: 24px; }
.public-shell .top-nav a { font-size: 14px; font-weight: 600; color: #b8b8c1; white-space: nowrap; }
.public-shell .top-nav a:hover, .public-shell .top-nav a.active { color: #fff; }
.public-shell .top-tools { gap: 12px; }
.public-shell .top-tools > .button { min-height: 44px; padding: 10px 18px; font-size: 14px; white-space: nowrap; }
.public-shell .top-search {
  display: flex;
  width: 218px;
  max-width: 218px;
  min-height: 44px;
  padding: 0 12px 0 0;
  gap: 0;
  border-radius: 10px;
  background: #202024;
  border-color: #ffffff16;
}
.public-shell .top-search button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
}
.public-shell .top-search button svg { width: 19px; height: 19px; }
.public-shell .top-search input {
  min-width: 0;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink);
}
.public-shell .top-search input::placeholder { color: #aaaab3; }
.topbar .top-search:focus-within { outline: 2px solid #ffab7c; outline-offset: 3px; border-color: transparent; }
.public-shell .topbar .icon-button, .public-shell .topbar .avatar {
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex-shrink: 0;
}
.topbar .mobile-search-link { display: none; }
.public-shell .main-wrap { margin-left: 0; }
.public-shell .workspace-bar { display: none; }
.public-shell .main-content {
  max-width: 1440px;
  margin-inline: auto;
  padding: 36px 32px 64px;
  min-height: calc(100dvh - 380px);
}
.public-shell .sidebar .side-promo { display: none; }
.public-shell .sidebar-bottom { margin-top: auto; }
.guest-drawer-account { padding-top: 20px; border-top: 1px solid var(--line); margin-top: 12px; }
.guest-drawer-account p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.guest-drawer-account .button { min-height: 44px; width: 100%; font-size: 14px; }
.public-manual-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 24px 0 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.public-manual-link a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #f2c0a3; font-weight: 600; }
.public-manual-link a:hover { color: #fff; }
.site-footer {
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) repeat(3, minmax(130px, 1fr));
  align-items: start;
  gap: 32px;
  padding: 44px 32px 24px;
  border-top-color: #ffffff16;
  font-size: 14px;
}
.site-footer .footer-brand .brand { width: fit-content; min-height: 44px; }
.site-footer .footer-brand p { font-size: 15px; line-height: 1.6; color: #aaaab4; margin: 18px 0 0; }
.site-footer .footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.site-footer .footer-group > strong { color: var(--ink); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.site-footer .footer-group a { display: inline-flex; align-items: center; font-size: 14px; min-height: 38px; color: #b5b5be; }
.site-footer .footer-group a:hover { color: var(--ink); }
.site-footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid #ffffff0f;
  font-size: 13px;
  color: #a5a5ae;
}
.site-footer .footer-bottom > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.site-footer .footer-bottom > span:nth-child(2) { margin-left: auto; }
.footer-refresh { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; font-size: 13px; border: 0; background: transparent; color: #b5b5be; cursor: pointer; }
.footer-refresh:hover { color: var(--ink); }

@media (min-width: 961px) {
  .public-shell .sidebar { display: none; }
  .public-shell .menu-toggle { display: none; }
}
@media (max-width: 1250px) {
  .public-shell .topbar { gap: 22px; padding-inline: 24px; }
  .public-shell .top-nav { gap: 20px; }
  .public-shell .top-nav a { font-size: 13px; }
  .public-shell .top-search { display: none; }
  .topbar .mobile-search-link { display: grid; width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 960px) {
  .public-shell .topbar {
    height: var(--mobile-header);
    gap: 12px;
    padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  }
  .public-shell .topbar .brand { min-width: 0; }
  .public-shell .top-nav { display: none; }
  .public-shell .top-tools { gap: 8px; }
  .public-shell .top-tools > .button { padding: 10px 14px; font-size: 13px; }
  .public-shell .main-content { padding: 28px max(20px, env(safe-area-inset-right, 0px)) 44px max(20px, env(safe-area-inset-left, 0px)); }
  .public-shell .sidebar { display: flex; }
  .public-shell .sidebar .side-nav a { font-size: 15px; min-height: 48px; }
  .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 32px 24px 20px; }
  .site-footer .footer-brand { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
  .site-footer .footer-brand p { margin: 0; font-size: 14px; }
  .site-footer .footer-group a { min-height: 44px; }
}
@media (max-width: 540px) {
  .public-shell .topbar { gap: 8px; padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
  .public-shell .topbar .brand { gap: 6px; }
  .public-shell .topbar .brand img { width: 31px; height: 31px; }
  .public-shell .top-tools { gap: 6px; }
  .public-shell .top-tools > .button { padding-inline: 12px; }
  .public-shell .top-tools > .button > span { display: none; }
  .public-shell .main-content { padding: 22px max(16px, env(safe-area-inset-right, 0px)) 36px max(16px, env(safe-area-inset-left, 0px)); }
  .public-manual-link { justify-content: flex-start; gap: 0 12px; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 30px 20px calc(20px + env(safe-area-inset-bottom, 0px)); gap: 24px 20px; }
  .site-footer .footer-brand { flex-wrap: wrap; gap: 18px 26px; }
  .site-footer .footer-group > strong { margin-bottom: 6px; }
  .site-footer .footer-group:nth-of-type(3) { grid-column: 1 / -1; }
  .site-footer .footer-bottom { gap: 4px 18px; align-items: flex-start; flex-direction: column; }
  .site-footer .footer-bottom > span:nth-child(2) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .public-shell .sidebar { transition: none; }
}
