:root {
  color-scheme: light;
  --studzo-blue: #009fe3;
  --studzo-deep: #05384a;
  --studzo-ink: #1a1a1a;
  --studzo-muted: #5c6b73;
  --studzo-line: #dfe8ee;
  --studzo-tint: #f2f8fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body.studzo-site {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--studzo-ink);
  background: #fff;
  line-height: 1.5;
}

:where(.studzo-site a) { color: var(--studzo-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--studzo-line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 2rem; height: 2rem; border-radius: 0.5rem; object-fit: cover; }

.site-nav { display: flex; gap: 1.25rem; margin-right: auto; }

.site-nav a { text-decoration: none; font-weight: 600; color: var(--studzo-muted); }

.site-nav a:hover { color: var(--studzo-deep); }

.studzo-app {
  display: flex;
  min-height: 100dvh;
  background: #fff;
}

.site-menu-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-menu-button,
.site-backdrop { display: none; }

.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 0 0 17.5rem;
  width: 17.5rem;
  height: 100dvh;
  position: sticky;
  top: 0;
  padding: 1rem 0.7rem 0.7rem;
  border-right: 1px solid #163244;
  background:
    linear-gradient(180deg, rgba(0, 159, 227, 0.16), transparent 8.5rem),
    #0b1d29;
  color: #fff;
}

.site-sidebar .brand {
  gap: 0.7rem;
  margin: 0 0.35rem 0.85rem;
  padding: 0.15rem 0.2rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-sidebar .brand img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

.sidebar-new {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0.2rem 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sidebar-new::before {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.sidebar-new:hover { background: rgba(255, 255, 255, 0.14); }

.sidebar-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0.15rem 0.75rem;
}

.sidebar-alert-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-alert-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sidebar-alert-tab {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
}

.sidebar-alert-tab:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.sidebar-alert-tab[aria-current="true"] {
  border-color: rgba(126, 196, 228, 0.55);
  background: rgba(0, 159, 227, 0.22);
  color: #fff;
}

.sidebar-alert-add {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.sidebar-alert-add:hover { background: rgba(255, 255, 255, 0.12); }

.sidebar-alert-list {
  margin: 0 0 0.1rem;
  padding: 0 0 0 0.55rem;
  list-style: none;
}

.sidebar-alert-list a {
  display: block;
  padding: 0.28rem 0.55rem;
  border-radius: 0.55rem;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 550;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-alert-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.sidebar-alert-all {
  margin: 0 0 0.15rem 0.55rem;
  color: rgba(126, 196, 228, 0.95);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-alert-all:hover { color: #fff; }

.sidebar-alert-tab:focus-visible,
.sidebar-alert-add:focus-visible,
.sidebar-alert-list a:focus-visible,
.sidebar-alert-all:focus-visible {
  outline: 2px solid #7ec4e4;
  outline-offset: 2px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 0.35rem;
}

.sidebar-app {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.2rem 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(126, 196, 228, 0.45);
  border-radius: 999px;
  background: rgba(0, 159, 227, 0.18);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.sidebar-app:hover { background: rgba(0, 159, 227, 0.3); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav a,
.sidebar-foot a,
.sidebar-foot button,
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-foot a:hover,
.sidebar-foot button:hover,
.sidebar-user:hover { background: rgba(255, 255, 255, 0.08); }

.sidebar-nav-premium.is-active {
  color: #7ec4e4;
  font-weight: 550;
}

.sidebar-nav-premium:not(.is-active) {
  color: rgba(255, 255, 255, 0.92);
}

.sidebar-nav a:focus-visible,
.sidebar-new:focus-visible,
.sidebar-app:focus-visible,
.sidebar-foot a:focus-visible,
.sidebar-foot button:focus-visible,
.sidebar-user:focus-visible,
.site-sidebar .chat-row button:focus-visible {
  outline: 2px solid #7ec4e4;
  outline-offset: 2px;
}

.sidebar-chats {
  flex: 1;
  min-height: 0;
  margin-top: 0.85rem;
  padding-right: 0.15rem;
  overflow: auto;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.sidebar-chats h2 {
  margin: 0 0.75rem 0.4rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-sidebar .chat-row {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-sidebar .chat-row button {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 550;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.site-sidebar .chat-row button:hover { background: rgba(255, 255, 255, 0.08); }

.site-sidebar .chat-row.is-locked {
  margin: 0.1rem 0.15rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

.site-sidebar .chat-row.is-locked span { display: block; margin-top: 0.15rem; font-size: 0.75rem; }

.site-sidebar .muted { margin: 0 0.75rem; color: rgba(255, 255, 255, 0.5); }

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0.1rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-foot:not(:has(.sidebar-user)) {
  flex-direction: column;
  align-items: stretch;
}

.sidebar-foot form { margin: 0 0 0 auto; }

.sidebar-user { min-width: 0; flex: 1; }

.sidebar-user span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #009fe3);
  color: #05384a;
  font-size: 0.78rem;
  font-weight: 800;
}

.sidebar-foot button {
  width: auto;
  padding: 0.4rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.sidebar-foot button:hover { color: #fff; }

.sidebar-join {
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 750;
}

.studzo-main { flex: 1; min-width: 0; }

.site-session { display: flex; align-items: center; gap: 0.5rem; }

.site-session form { margin: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: #0b1d29;
}

.button:hover { background: #132a38; }

.button-quiet {
  color: var(--studzo-deep);
  background: transparent;
  border: 1px solid var(--studzo-line);
}

.button-quiet:hover { background: var(--studzo-tint); }

.site-status {
  max-width: 72rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #e7f6fc;
  color: var(--studzo-deep);
  font-weight: 600;
}

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 3rem;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background-image: linear-gradient(90deg, var(--studzo-deep), var(--studzo-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 40rem;
  margin: 1rem auto 2rem;
  font-size: 1.15rem;
  color: var(--studzo-muted);
}

.search-host {
  max-width: 44rem;
  margin-inline: auto;
  text-align: left;
}

.search-fallback {
  padding: 2rem;
  border: 1px solid var(--studzo-line);
  border-radius: 1.25rem;
  text-align: center;
}

.band { padding: 4rem clamp(1rem, 4vw, 3rem); }

.band > * { max-width: 72rem; margin-left: auto; margin-right: auto; }

.band-tint { background: var(--studzo-tint); }

.band h2 { margin-top: 0; margin-bottom: 0.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }

.section-lead { margin-top: 0; margin-bottom: 2rem; font-size: 1.08rem; color: var(--studzo-muted); }

.feature-grid,
.plan-grid,
.account-grid,
.legal-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }

.plan-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }

.account-grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }

.account-grid-guest { grid-template-columns: minmax(0, 36rem); }

.legal-grid { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }

.feature,
.plan,
.panel,
.legal-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--studzo-line);
  border-radius: 1rem;
  background: #fff;
}

.feature h3,
.plan h3,
.panel h3,
.legal-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }

.feature p,
.legal-card p { margin: 0; color: var(--studzo-muted); }

.feature .example {
  margin-top: 0.85rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: #e8f4fc;
  color: #0b6ea8;
  font-size: 0.86rem;
  font-weight: 650;
}

.plan { display: flex; flex-direction: column; gap: 1rem; }

.plan ul { margin: 0; padding-left: 1.1rem; color: var(--studzo-muted); }

.plan li + li { margin-top: 0.35rem; }

.plan .button { align-self: flex-start; margin-top: auto; }

.plan-premium { border-color: var(--studzo-blue); box-shadow: 0 12px 32px rgba(0, 159, 227, 0.14); }

.plan-note { margin: auto 0 0; font-weight: 700; color: var(--studzo-deep); }

.fine { margin-top: 1.5rem; font-size: 0.9rem; color: var(--studzo-muted); }

.details-form { display: grid; gap: 0.6rem; margin-bottom: 1rem; }

.details-form label { display: grid; gap: 0.25rem; font-size: 0.85rem; font-weight: 650; color: var(--studzo-muted); }

.details-form input {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--studzo-line);
  border-radius: 0.6rem;
  font: inherit;
  color: var(--studzo-ink);
}

.details-form .button { justify-self: start; }

.error { margin: 0; color: #b42318; font-size: 0.85rem; }

.facts { margin: 0; }

.facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem; padding: 0.3rem 0; }

.facts dt { color: var(--studzo-muted); }

.facts dd { margin: 0; word-break: break-word; }

.alert-list { margin: 0; padding: 0; list-style: none; }

.alert-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--studzo-line);
}

.alert-list strong { font-weight: 650; color: var(--studzo-muted); }

.panel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 1rem 0 0; }

.chat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--studzo-line);
}

.chat-row button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--studzo-deep);
  text-align: left;
  cursor: pointer;
}

.chat-row span { flex-shrink: 0; font-size: 0.85rem; color: var(--studzo-muted); }

.chat-row.is-locked { color: var(--studzo-muted); flex-direction: column; gap: 0.15rem; }

.muted { color: var(--studzo-muted); }

.legal-card { text-decoration: none; transition: border-color 120ms ease; }

.legal-card:hover { border-color: var(--studzo-blue); }

.legal-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem) 4rem;
  font-size: 1.05rem;
}

.legal-page h1 { margin-top: 0; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.01em; }

.legal-page h2 { margin-top: 2.25rem; margin-bottom: 0.4rem; font-size: 1.25rem; }

.legal-page p,
.legal-page li { line-height: 1.65; }

.legal-page ul { padding-left: 1.2rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--studzo-line);
  color: var(--studzo-muted);
}

.site-footer p { margin: 0; }

.site-footer-copy { display: flex; flex-direction: column; gap: 0.35rem; max-width: 36rem; }

.site-footer-note { font-size: 0.85rem; line-height: 1.45; }

.site-footer nav { display: flex; gap: 1.25rem; }

/* Website chat only. The embed widget keeps its own layout. */
.studzo-site .bf-inline .bf-panel {
  height: min(42rem, calc(100dvh - 7.5rem));
  min-height: 24rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.studzo-site .bf-inline .bf-panel:has(.bf-welcome):not(:has(.bf-account:not([hidden]))):not(.is-gate) {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.studzo-site .bf-inline .bf-panel:has(.bf-account:not([hidden])),
.studzo-site .bf-inline .bf-panel.is-gate {
  height: min(40rem, calc(100dvh - 8rem));
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid var(--studzo-line);
  border-radius: 1.25rem;
  background: #fff;
}

.studzo-site .bf-inline .bf-panel:has(.bf-welcome):not(:has(.bf-account:not([hidden]))):not(.is-gate) .bf-header,
.studzo-site .bf-inline .bf-panel:has(.bf-welcome):not(:has(.bf-account:not([hidden]))):not(.is-gate) .bf-auth {
  display: none;
}

.studzo-site .bf-inline .bf-header {
  padding: 0.15rem 0.15rem 0.65rem;
  border-bottom: 0;
  background: transparent;
}

.studzo-site .bf-inline .bf-form {
  gap: 0.35rem;
  margin: 0;
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  border: 1px solid #d5e3ec;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 12px 40px rgba(5, 56, 74, 0.08);
}

.studzo-site .bf-inline .bf-panel:not(:has(.bf-welcome)) .bf-form {
  margin: 0.35rem 0 0.15rem;
}

.studzo-site .bf-inline .bf-form:focus-within {
  border-color: #7ec4e4;
  box-shadow: 0 12px 40px rgba(5, 56, 74, 0.08), 0 0 0 4px rgba(0, 159, 227, 0.14);
}

.studzo-site .bf-inline .bf-form input {
  min-height: 3rem;
  padding: 0.7rem 0.15rem;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
}

.studzo-site .bf-inline .bf-form input:focus-visible { outline: none; }

.studzo-site .bf-inline .bf-form button {
  position: relative;
  flex: none;
  min-width: 2.75rem;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #0b1d29;
  background-image: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
}

.studzo-site .bf-inline .bf-form button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translate(-50%, -58%) rotate(-45deg);
}

.studzo-site .bf-inline .bf-form button:hover { background: #132a38; }

.studzo-site .bf-inline .bf-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.studzo-site .bf-inline .bf-panel:has(.bf-welcome) .bf-form {
  padding: 0.4rem 0.4rem 0.4rem 1.15rem;
  border: 1px solid #d5e3ec;
  background: #fff;
}

.studzo-site .bf-inline .bf-panel:has(.bf-welcome) .bf-form input {
  min-height: 3rem;
  padding: 0.7rem 0.15rem;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
}


.studzo-site .bf-inline .bf-panel:has(.bf-welcome) .bf-thread {
  padding: 0.15rem 0 0.25rem;
  overflow: visible;
  background: transparent;
}

.studzo-site .bf-inline .bf-panel:not(:has(.bf-welcome)) .bf-thread {
  padding-right: 0.15rem;
  padding-left: 0.15rem;
  background: transparent;
}

.studzo-site .bf-inline .bf-welcome > p:nth-child(-n + 3),
.studzo-site .bf-inline .bf-welcome-mark {
  display: none;
}

.studzo-site .bf-inline .bf-welcome > p {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--studzo-muted);
  font-size: 0.92rem;
}

.studzo-site .bf-inline .bf-welcome > p a {
  color: var(--studzo-deep);
  font-weight: 750;
}

.studzo-site .bf-inline .bf-welcome-shortlinks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.95rem 0 0;
}

.studzo-site .bf-inline .bf-welcome-shortlinks button {
  width: auto;
  min-height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--studzo-deep);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
}

.studzo-site .bf-inline .bf-welcome-shortlinks button:hover,
.studzo-site .bf-inline .bf-welcome-shortlinks button:focus-visible {
  background: #dff1fa;
}

.studzo-site .bf-inline .bf-topics {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}

.studzo-site .bf-inline .bf-topics section,
.studzo-site .bf-inline .bf-topics-list {
  display: contents;
}

.studzo-site .bf-inline .bf-topics h3 { display: none; }

.studzo-site .bf-inline .bf-topic {
  width: 100%;
  border: 1px solid var(--studzo-line);
  border-radius: 1rem;
  background: #fff;
  color: var(--studzo-deep);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  padding: 0.8rem 1rem;
}

.studzo-site .bf-inline .bf-topic::after { content: none; }

.studzo-site .bf-inline .bf-topic:hover,
.studzo-site .bf-inline .bf-topic:focus-visible {
  border-color: #b7d4e4;
  background: #f7fbfd;
}

.studzo-site .bf-inline .bf-msg.user {
  max-width: min(32rem, 85%);
  border-radius: 1.2rem;
  background: #eef3f6;
  color: var(--studzo-ink);
}

.studzo-site .bf-inline .bf-msg.user a { color: var(--studzo-deep); }

.studzo-site .bf-inline .bf-msg.assistant {
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  color: var(--studzo-ink);
}

.studzo-site .bf-inline .bf-turn { max-width: 100%; }

.studzo-site .bf-inline .bf-welcome-shortlinks button:focus-visible,
.studzo-site .bf-inline .bf-topic:focus-visible,
.studzo-site .bf-inline .bf-form button:focus-visible {
  outline: 2px solid var(--studzo-blue);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-nav { display: none; }

  .site-header { justify-content: space-between; gap: 0.75rem; }

  .site-session .button { padding: 0.45rem 0.8rem; font-size: 0.9rem; white-space: nowrap; }

  .site-session .site-session-name { display: none; }

  .studzo-app { display: block; }

  .site-menu-button {
    display: inline-flex;
    position: fixed;
    z-index: 30;
    top: 0.65rem;
    left: 0.75rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--studzo-line);
    border-radius: 999px;
    background: #fff;
    color: var(--studzo-deep);
    font-weight: 750;
    cursor: pointer;
  }

  .site-backdrop {
    position: fixed;
    z-index: 25;
    inset: 0;
    background: rgba(5, 56, 74, 0.35);
  }

  .site-menu-toggle:checked ~ .site-backdrop { display: block; }

  .studzo-app .site-sidebar {
    position: fixed;
    z-index: 26;
    left: 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: 12px 0 40px rgba(5, 56, 74, 0.12);
  }

  .site-menu-toggle:checked ~ .site-sidebar { transform: none; }

  .studzo-main { padding-top: 3.4rem; }

  .hero { padding-top: 1.5rem; }

  .lead { margin-bottom: 1.25rem; font-size: 1rem; }

  .band { padding: 3rem 1rem; }

  .studzo-site:has(.bf-panel:not(:has(.bf-welcome))) .hero h1,
  .studzo-site:has(.bf-panel:not(:has(.bf-welcome))) .hero .lead,
  .studzo-site:has(.bf-panel.is-gate) .hero h1,
  .studzo-site:has(.bf-panel.is-gate) .hero .lead,
  .studzo-site:has(.bf-account:not([hidden])) .hero h1,
  .studzo-site:has(.bf-account:not([hidden])) .hero .lead {
    display: none;
  }

  .studzo-site .bf-inline .bf-panel:not(:has(.bf-welcome)),
  .studzo-site .bf-inline .bf-panel:has(.bf-account:not([hidden])),
  .studzo-site .bf-inline .bf-panel.is-gate {
    position: fixed;
    z-index: 8;
    top: 3.4rem;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0.35rem 1rem 0;
    background: #fff;
  }

  .studzo-site .bf-inline .bf-welcome-shortlinks button {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }
}
