/* ===========================================================
   UniConecta Docs — design system
   Tokens and chrome mirrored from iLiberty Support Center
   =========================================================== */
:root {
  --brand-dark: #002b49;
  --brand-light: #00b6d6;
  --brand-primary: #00bf9a;
  --primary-hover: #059669;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --nav-active: #eff6ff;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 50px rgb(2 20 40 / 0.22);
  --header-h: 4rem;
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --ai-grad: linear-gradient(120deg, #00b6d6, #00bf9a);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
}
html {
  line-height: 1.5;
  color: var(--text);
  height: 100%;
  font-family:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  -webkit-text-size-adjust: 100%;
}
.app-body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-body:has(.auth-hero) {
  overflow: auto;
  height: auto;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
}
.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}
.material-icons {
  font-family: "Material Icons", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
}
.mi-sm {
  font-size: 1rem !important;
}

/* ---------- Shell / header ---------- */
.app-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.app-top-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-offset);
  padding-top: env(safe-area-inset-top, 0);
  background: var(--brand-dark);
  color: #fff;
  border-bottom: 1px solid rgb(55 65 81);
}
.app-top-header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  height: 100%;
  padding: 0 0.75rem;
  gap: 0.5rem;
}
.app-top-header-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.app-header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-left: -0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
}
.app-header-menu-btn:hover {
  background: rgb(255 255 255 / 0.1);
}
@media (min-width: 901px) {
  .app-header-menu-btn {
    display: none;
  }
}
.app-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.app-header-logo {
  height: 2rem;
  width: auto;
  max-width: min(10rem, 34vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.app-header-divider {
  width: 1px;
  height: 1.15rem;
  flex-shrink: 0;
  background: rgb(255 255 255 / 0.35);
}
.app-header-product-logo,
.app-header-product-wordmark {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: min(12rem, 40vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
  transform: translateY(0.12rem);
}
.app-header-product-wordmark {
  height: auto;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
@media (min-width: 1024px) {
  .app-header-product-logo {
    height: 1.9rem;
  }
  .app-header-product-wordmark {
    font-size: 1.3rem;
  }
}

.app-switcher {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}
.app-switcher-trigger {
  appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  color: inherit;
}
.app-switcher-trigger:hover {
  background: rgb(255 255 255 / 0.06);
}
.app-switcher-trigger:focus-visible {
  outline: 2px solid rgb(0 191 154 / 0.65);
  outline-offset: 2px;
}
.app-switcher-chevron {
  display: none;
  font-size: 1.15rem !important;
  flex-shrink: 0;
  opacity: 0.75;
  margin-left: -0.15rem;
  transform: translateY(0.12rem);
}
@media (min-width: 640px) {
  .app-switcher-chevron {
    display: block;
  }
}
.app-switcher-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.4rem);
  left: 0;
  display: flex;
  flex-direction: column;
  min-width: min(22rem, 94vw);
  margin: 0;
  padding: 0.45rem;
  border-radius: var(--radius);
  background: var(--brand-dark);
  color: #fff;
  border: 1px solid rgb(55 65 81);
  box-shadow: var(--shadow-md);
}
.app-switcher-menu-label {
  margin: 0;
  padding: 0.25rem 0.5rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.55);
}
.app-switcher-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-switcher-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: visible;
}
.app-switcher-item:hover {
  background: rgb(255 255 255 / 0.08);
}
.app-switcher-item--active {
  background: color-mix(in srgb, var(--brand-light) 16%, transparent);
  outline: 1px solid color-mix(in srgb, var(--brand-light) 45%, transparent);
}
.app-switcher-wordmark {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  height: 2.4rem;
  overflow: visible;
}
.app-switcher-wordmark-product {
  display: block;
  height: 2.4rem;
  width: auto;
  max-width: min(17rem, 75vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.app-switcher-wordmark-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.app-switcher-item-check,
.app-switcher-item-external {
  font-size: 1rem !important;
  flex-shrink: 0;
  opacity: 0.55;
  color: #fff;
}
.app-switcher-item--active .app-switcher-item-check {
  opacity: 0.95;
  color: var(--brand-light);
}

.app-top-header-center {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.app-top-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.app-header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.app-header-auth--muted {
  opacity: 0.85;
}
.app-header-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: min(14rem, 34vw);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgb(241 245 249 / 0.95);
}
.app-header-auth-user .material-icons {
  font-size: 1.35rem;
  opacity: 0.9;
  flex-shrink: 0;
}
.app-header-auth-user-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.08);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.app-header-auth-btn .material-icons {
  font-size: 1rem;
}
.app-header-auth-btn:hover {
  background: rgb(255 255 255 / 0.16);
}
.app-header-auth-btn--accent {
  background: #fff;
  color: var(--brand-dark);
  border-color: transparent;
}
.app-header-auth-btn--accent:hover {
  background: #f1f5f9;
}
.app-header-auth-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgb(255 255 255 / 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.app-header-auth-btn--accent .app-header-auth-spinner {
  border-color: rgb(0 43 73 / 0.15);
  border-top-color: var(--brand-dark);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.org-switcher-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: min(16rem, 42vw);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.org-switcher-wrap:focus-within {
  outline: 2px solid var(--brand-light);
  outline-offset: 1px;
}
.org-switcher-icon {
  font-size: 1.05rem !important;
  opacity: 0.85;
  flex-shrink: 0;
}
.org-switcher-name {
  font-size: 0.82rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-switcher-caret {
  font-size: 1rem !important;
  opacity: 0.8;
  flex-shrink: 0;
}
.org-switcher--overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  max-width: none;
  background: none;
}
.org-switcher-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.org-switcher-label .material-icons {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------- Sidebar ---------- */
.app-below-header {
  display: flex;
  flex: 1;
  min-height: 0;
  padding-top: var(--header-offset);
}
.app-sidebar {
  width: 15.5rem;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.app-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 0.9rem 0.7rem;
}
.app-sidebar-drawer-head {
  display: none;
}
.app-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.app-nav-section--spaced {
  margin-top: 0.9rem;
}
.app-nav-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.3rem;
  padding: 0.25rem 0.55rem;
  border: 0;
  background: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
}
.app-nav-section-title-icon {
  font-size: 1rem;
  color: var(--text-muted);
}
.app-nav-section-toggle {
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.12s ease;
}
.app-nav-section-toggle:hover {
  background: #f1f5f9;
  color: var(--text);
}
.app-nav-section-chevron {
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}
.app-nav-section--collapsed .app-nav-section-chevron {
  transform: rotate(-90deg);
}
.app-nav-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.12s ease;
}
.app-nav-link-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.app-nav-link:hover {
  background: #f1f5f9;
}
.app-nav-link--active {
  background: var(--nav-active);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand-primary);
}
.app-nav-link--active .app-nav-link-icon {
  color: var(--brand-primary);
}
.app-sidebar-footer {
  padding: 0.8rem 0.55rem 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.app-sidebar-copyright {
  margin-top: 0.2rem;
}
.app-nav-backdrop {
  display: none;
}

/* ---------- Main ---------- */
.app-main-wrap {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.view {
  width: 100%;
  padding: 1.5rem 1.75rem 5rem;
  animation: view-in 0.32s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.view:has(.doc-page) {
  padding: 0;
  min-height: 100%;
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.view-head-main {
  min-width: 0;
  flex: 1;
}
.view-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.view-head h1,
.view-title {
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  line-height: 1.2;
}
.view-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
  max-width: 38rem;
  line-height: 1.45;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.crumbs a .material-icons {
  font-size: 0.95rem;
}
.crumbs a:hover {
  color: var(--brand-primary);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad {
  padding: 1.1rem 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn .material-icons {
  font-size: 1.1rem;
}
.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost,
.btn-secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover,
.btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
}
.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.25rem;
  gap: 0.55rem;
}
.empty-state__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857;
  margin-bottom: 0.25rem;
}
.empty-state__icon .material-icons {
  font-size: 1.75rem;
}
.empty-state__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.empty-state__text {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 22rem;
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--muted {
  background: #e2e8f0;
  color: var(--text-muted);
}

.mobile-tabbar {
  display: none;
}

/* ---------- Auth hero ---------- */
.auth-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #f1f5f9;
}
.auth-hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(2rem, 6vw, 5rem);
  color: #fff;
  background:
    radial-gradient(
      900px 500px at 85% -10%,
      rgba(0, 182, 214, 0.35),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at -10% 110%,
      rgba(0, 191, 154, 0.28),
      transparent 55%
    ),
    linear-gradient(160deg, #0f172a 0%, #002b49 100%);
  overflow: hidden;
}
.auth-hero__logo {
  height: 2.2rem;
  width: auto;
  align-self: flex-start;
  margin-bottom: 0.6rem;
}
.auth-hero__panel h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.auth-hero__panel > p {
  margin: 0;
  max-width: 30rem;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: #cbd5e1;
}
.auth-hero__points {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.auth-hero__points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #e2e8f0;
}
.auth-hero__points .material-icons {
  font-size: 1.1rem;
  color: #2fe3b4;
  background: rgba(47, 227, 180, 0.12);
  border-radius: 8px;
  padding: 0.35rem;
}
.auth-hero__foot {
  position: absolute;
  bottom: 1.4rem;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.55);
}
.auth-hero__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 5vw, 4.5rem);
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
  background: #fff;
}
.auth-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}
.auth-card-sub {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}
.auth-card-help {
  margin: 1.4rem 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.auth-invited {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 0.85rem;
}
.auth-invited .material-icons {
  font-size: 1.1rem;
}
.auth-hero__card .app-header-auth--standalone {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.8rem;
  width: 100%;
}
.auth-hero__card .app-header-auth-btn {
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  border-radius: 10px;
}
.auth-hero__card .app-header-auth-btn--accent {
  background: var(--brand-primary);
  color: #fff;
  border: none;
}
.auth-hero__card .app-header-auth-btn--accent:hover {
  filter: brightness(1.08);
}
.auth-hero__card .login-email-toggle {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}
.auth-hero__card .login-email-toggle:hover {
  border-color: #94a3b8;
}
.auth-hero__card .login-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #94a3b8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 100%;
}
.auth-hero__card .login-divider::before,
.auth-hero__card .login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-hero__card .login-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}
.auth-hero__card .login-email-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-hero__card .login-email-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(0, 191, 154, 0.15);
}
.auth-hero__card .login-email-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  display: block;
  margin-bottom: 0.3rem;
}
.auth-hero__card .login-email-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}
.login-page-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.85rem;
}
@media (max-width: 860px) {
  .auth-hero {
    grid-template-columns: 1fr;
  }
  .auth-hero__panel {
    min-height: 38vh;
    justify-content: flex-start;
    padding-top: 2.2rem;
  }
  .auth-hero__points,
  .auth-hero__foot {
    display: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  :root {
    --header-h: 3.5rem;
  }
  .app-header-product-logo,
  .app-header-product-wordmark,
  .app-header-divider {
    display: none;
  }
  .app-header-logo {
    height: 1.8rem;
  }
  .app-sidebar {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(18rem, 84vw);
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.25, 1);
    box-shadow: var(--shadow-lg);
    padding-top: env(safe-area-inset-top, 0);
  }
  #app-nav-toggle:checked ~ .app-below-header .app-sidebar {
    transform: none;
  }
  .app-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgb(2 20 40 / 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  #app-nav-toggle:checked ~ .app-below-header .app-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .app-sidebar-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.55rem 0.8rem;
    font-weight: 700;
    color: var(--brand-dark);
  }
  .app-sidebar-drawer-close {
    display: flex;
    padding: 0.3rem;
    cursor: pointer;
  }
  .view {
    padding: 1rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
  .view:has(.doc-page) {
    padding: 0 0 calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
  .view-head h1,
  .view-title {
    font-size: 1.15rem;
  }
  .view-subtitle {
    font-size: 0.84rem;
  }
  .view-head-actions {
    width: 100%;
  }
  .mobile-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 65;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgb(2 20 40 / 0.08);
  }
  .mtab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.3rem 0;
    border-radius: 8px;
    transition: color 0.15s;
  }
  .mtab .material-icons {
    font-size: 1.35rem;
  }
  .mtab.active {
    color: var(--brand-primary);
  }
  .mtab.cta .material-icons {
    background: var(--ai-grad);
    color: #fff;
    border-radius: 50%;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1.2rem;
    box-shadow: 0 6px 18px rgb(0 191 154 / 0.5);
  }
}
@media (max-width: 700px) {
  .app-header-auth-user-label {
    display: none;
  }
}
