/* ============================================================
   App Shell / Sidebar / Topbar
   ============================================================ */

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  transition: margin-left .24s cubic-bezier(.4, 0, .2, 1);
}

/* ---------------- Sidebar ---------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 120;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: width .24s cubic-bezier(.4, 0, .2, 1), transform .26s ease;
}
.sidebar-head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 20px 20px 16px;
  flex: none;
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { width: 136px; height: auto; object-fit: contain; }
.brand-pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border: 1px solid var(--brand-100);
  border-radius: 6px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}
.brand-mark {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #8FA8FF, #5B7CFA);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.04em;
  box-shadow: 0 8px 18px -8px rgba(91, 124, 250, .7);
}
.sidebar-collapse {
  position: absolute;
  top: 32px;
  right: -13px;
  z-index: 5;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 3px 10px rgba(78, 94, 130, .10);
  transition: color .18s, border-color .18s, transform .18s;
}
.sidebar-collapse .icon { width: 14px; height: 14px; }
.sidebar-collapse:hover { color: var(--brand-600); border-color: var(--brand-200); transform: scale(1.06); }
.sidebar-collapse .toggle-open { display: none; }
.app-shell.is-collapsed .sidebar-collapse .toggle-close { display: none; }
.app-shell.is-collapsed .sidebar-collapse .toggle-open { display: block; }

.sidebar-scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 14px 10px;
}
.side-nav { flex: 1; }
.nav-group + .nav-group { margin-top: 10px; }
.nav-label {
  padding: 13px 12px 6px;
  color: var(--muted-light);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .08em;
  white-space: nowrap;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 11px;
  margin-bottom: 2px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.nav-item .icon { width: 18px; height: 18px; color: var(--muted); transition: color .18s; }
.nav-item:hover { background: #F7F9FE; color: var(--ink); }
.nav-item:hover .icon { color: var(--brand-500); }
.nav-item.is-active {
  border-color: var(--brand-100);
  background: linear-gradient(135deg, #F1F6FF 0%, #E8F0FF 100%);
  color: var(--brand-700);
  font-weight: 750;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.nav-item.is-active .icon { color: var(--brand-600); }
.nav-item.is-active::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--brand-500);
}
.nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
  min-width: 20px;
  height: 19px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: #F1F5FB;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1;
}
.nav-badge--rose { color: var(--rose-700); background: var(--rose-50); }
.nav-badge--mint { color: var(--mint-700); background: var(--mint-50); }
.nav-item.is-active .nav-badge { background: #fff; color: var(--brand-700); }
.nav-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--peach-500); }
.nav-item .nav-badge + .nav-dot { margin-left: 2px; }

.sidebar-help {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.sidebar-help .nav-item { height: 38px; font-size: 12.5px; color: var(--muted); }

.sidebar-foot {
  position: relative;
  flex: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: rgba(251, 252, 254, .82);
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  transition: background .18s, border-color .18s;
}
.profile-card:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.profile-copy { flex: 1; min-width: 0; }
.profile-copy strong { display: block; color: var(--ink); font-size: 12.5px; font-weight: 750; }
.profile-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-chevron { width: 15px; height: 15px; color: var(--muted-light); flex: none; }
.profile-menu {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 76px;
  z-index: 20;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-float);
  animation: riseIn .16s ease both;
}
.profile-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.profile-menu button:hover { background: var(--brand-50); color: var(--brand-700); }
.profile-menu .icon { width: 15px; height: 15px; }
.profile-menu .menu-sep { height: 1px; margin: 5px 4px; background: var(--line); }
.profile-menu .menu-danger { color: var(--rose-600); }
.profile-menu .menu-danger:hover { background: var(--rose-50); color: var(--rose-700); }

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  flex: none;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1800px;
  height: var(--topbar-h);
  margin: 0 auto;
  padding: 0 28px;
}
.mobile-menu-btn { display: none; }
.topbar-spacer { flex: 1; }

/* site picker */
.site-picker { position: relative; flex: none; }
.site-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 5px 11px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  text-align: left;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.site-trigger:hover { border-color: var(--brand-200); background: #fff; box-shadow: var(--shadow-sm); }
.site-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.site-icon .icon { width: 18px; height: 18px; }
.site-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.28; }
.site-eyebrow { color: var(--muted); font-size: 9.5px; font-weight: 650; }
.site-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12.5px; font-weight: 750; }
.site-trigger > .icon { width: 15px; height: 15px; color: var(--muted-light); margin-left: 2px; }
.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 130;
  width: 318px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-float);
  animation: riseIn .16s ease both;
}
.site-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px 8px; }
.site-menu-head strong { color: var(--ink); font-size: 12px; font-weight: 750; }
.site-menu-head span { color: var(--muted); font-size: 10px; }
.site-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background .15s, border-color .15s;
}
.site-option:hover { background: #F8FAFF; }
.site-option.is-selected { background: var(--brand-50); border-color: var(--brand-100); }
.site-option-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: #F4F7FD;
  color: var(--muted);
}
.site-option.is-selected .site-option-icon { background: #fff; color: var(--brand-600); }
.site-option-icon .icon { width: 15px; height: 15px; }
.site-option-copy { flex: 1; min-width: 0; }
.site-option-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-option-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }
.site-option-check { width: 15px; height: 15px; color: var(--brand-600); flex: none; }
.site-menu-foot { margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--line); }
.site-menu-foot a { display: flex; align-items: center; justify-content: space-between; color: var(--brand-600); font-size: 11.5px; font-weight: 650; }
.site-menu-foot .icon { width: 14px; height: 14px; }

/* topbar search */
.topbar-search { position: relative; width: 300px; flex: none; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #F5F8FD;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.search-box:focus-within { background: #fff; border-color: var(--brand-200); box-shadow: 0 0 0 4px rgba(109, 141, 255, .10); }
.search-box > .icon { width: 17px; height: 17px; color: var(--muted); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}
.search-box input::placeholder { color: var(--muted-light); }
.search-kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
}
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 140;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: min(520px, 70vh);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow-float);
  overflow-y: auto;
  animation: riseIn .16s ease both;
}
.search-group + .search-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.search-group-label { padding: 8px 9px 5px; color: var(--muted-light); font-size: 9.5px; font-weight: 750; letter-spacing: .08em; }
.search-result {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
}
.search-result:hover { background: #F8FAFF; }
.search-result-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.search-result-icon .icon { width: 15px; height: 15px; }
.search-result-copy { flex: 1; min-width: 0; }
.search-result-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { color: var(--muted-light); font-size: 9.5px; white-space: nowrap; }
.search-empty { padding: 24px 16px; text-align: center; }
.search-empty .icon { width: 30px; height: 30px; color: var(--muted-light); }
.search-empty strong { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 12.5px; }
.search-empty p { margin-top: 3px; color: var(--muted); font-size: 11px; }

/* topbar actions / notifications */
.topbar-actions { display: flex; align-items: center; gap: 7px; flex: none; }
.notif-wrap { position: relative; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 9px;
  background: var(--rose-500);
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
}
.notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 140;
  width: 366px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: riseIn .16s ease both;
}
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 17px 10px; }
.notif-panel-head strong { color: var(--ink); font-size: 14px; font-weight: 760; }
.notif-panel-head .text-link { font-size: 11px; }
.notif-list { max-height: 390px; overflow-y: auto; padding: 0 7px 8px; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  transition: background .15s;
}
.notif-item:hover { background: #F8FAFF; }
.notif-item.is-unread { background: #FBFDFF; }
.notif-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
}
.notif-icon .icon { width: 16px; height: 16px; }
.notif-icon--blue { color: var(--brand-600); background: var(--brand-50); }
.notif-icon--mint { color: var(--mint-600); background: var(--mint-50); }
.notif-icon--peach { color: var(--peach-600); background: var(--peach-50); }
.notif-icon--lavender { color: var(--lavender-600); background: var(--lavender-50); }
.notif-icon--rose { color: var(--rose-600); background: var(--rose-50); }
.notif-copy { flex: 1; min-width: 0; }
.notif-copy strong { display: block; color: var(--ink); font-size: 11.5px; font-weight: 700; line-height: 1.45; }
.notif-copy p { margin-top: 2px; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.notif-copy small { display: block; margin-top: 3px; color: var(--muted-light); font-size: 9.5px; }
.notif-unread-dot { width: 6px; height: 6px; margin-top: 7px; flex: none; border-radius: 50%; background: var(--brand-500); }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 11.5px; }

/* ---------------- Content ---------------- */
.app-view {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 28px 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px 24px;
  color: var(--muted-light);
  font-size: 10.5px;
}
.app-footer .footer-status { display: inline-flex; align-items: center; gap: 5px; }
.app-footer .footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-500); }
.app-footer .footer-sep { margin: 0 6px; color: var(--line-strong); }

/* ---------------- Collapsed sidebar ---------------- */
.app-shell.is-collapsed .sidebar { width: var(--sidebar-collapsed); }
.app-shell.is-collapsed .app-main { margin-left: var(--sidebar-collapsed); }
.app-shell.is-collapsed .brand-logo,
.app-shell.is-collapsed .brand-pill,
.app-shell.is-collapsed .nav-label,
.app-shell.is-collapsed .nav-text,
.app-shell.is-collapsed .nav-badge,
.app-shell.is-collapsed .nav-dot,
.app-shell.is-collapsed .profile-copy,
.app-shell.is-collapsed .profile-chevron { display: none; }
.app-shell.is-collapsed .brand-mark { display: grid; }
.app-shell.is-collapsed .sidebar-head { justify-content: center; padding-left: 10px; padding-right: 10px; }
.app-shell.is-collapsed .nav-group + .nav-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.app-shell.is-collapsed .nav-item { justify-content: center; padding: 0; gap: 0; }
.app-shell.is-collapsed .nav-item .icon { width: 20px; height: 20px; }
.app-shell.is-collapsed .nav-item.is-active::before { top: 10px; bottom: 10px; }
.app-shell.is-collapsed .sidebar-help { margin-top: 6px; }
.app-shell.is-collapsed .profile-card { justify-content: center; padding: 8px 0; }
.app-shell.is-collapsed .profile-menu { left: 14px; right: auto; width: 200px; bottom: 74px; }

/* ---------------- Mobile ---------------- */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(36, 48, 74, .30);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
@media (max-width: 1024px) {
  .app-main, .app-shell.is-collapsed .app-main { margin-left: 0; }
  .sidebar, .app-shell.is-collapsed .sidebar {
    width: 282px;
    transform: translateX(-100%);
    box-shadow: 24px 0 70px -30px rgba(35, 48, 74, .30);
  }
  .app-shell.is-mobile-open .sidebar { transform: none; }
  .app-shell.is-mobile-open .sidebar-backdrop { display: block; }
  .sidebar-collapse { display: none; }
  .mobile-menu-btn { display: inline-grid; }
  .app-view { padding: 24px 24px 30px; }
  .app-footer { padding: 0 24px 22px; }
  .topbar-inner { padding: 0 24px; }
}
@media (max-width: 1180px) {
  .topbar-search { width: 250px; }
}
@media (max-width: 900px) {
  .topbar-search { width: 210px; }
  .search-kbd { display: none; }
}
@media (max-width: 800px) {
  .topbar-inner { height: auto; min-height: var(--topbar-h); flex-wrap: wrap; padding: 10px 18px 11px; row-gap: 8px; }
  .topbar-spacer { display: none; }
  .topbar-search { order: 5; flex: 1 0 100%; width: 100%; }
  .topbar-actions { margin-left: auto; }
  .app-view { padding: 22px 18px 28px; gap: 16px; }
  .app-footer { padding: 0 18px 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-trigger { height: 46px; }
  .site-icon { width: 33px; height: 33px; }
  .site-name { max-width: 150px; }
  .notif-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    max-height: 72vh;
    border-radius: 20px;
  }
  .notif-list { max-height: 54vh; }
  .search-results {
    position: fixed;
    top: 122px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    max-height: 60vh;
  }
}
@media (max-width: 560px) {
  .app-view { padding: 18px 14px 24px; gap: 14px; }
  .app-footer { padding: 0 14px 18px; }
  .topbar-inner { padding: 9px 14px 10px; gap: 8px; }
  .brand-logo { width: 126px; }
  .site-eyebrow { display: none; }
  .site-trigger { height: 42px; padding: 4px 9px 4px 5px; gap: 7px; }
  .site-icon { width: 32px; height: 32px; border-radius: 9px; }
  .site-name { max-width: 108px; font-size: 12px; }
  .site-trigger > .icon { width: 13px; height: 13px; }
  .btn-new-form span { display: none; }
  .btn-new-form { width: 42px; padding: 0; }
  .notif-btn { width: 38px; height: 38px; }
  .search-results { top: 112px; left: 8px; right: 8px; }
  .site-menu { position: fixed; top: 112px; left: 10px; right: 10px; width: auto; }
  .app-view { gap: 14px; }
  .page-title { font-size: 21px; }
}
@media (max-width: 380px) {
  .site-name { max-width: 88px; }
  .site-icon { display: none; }
  .site-trigger { padding-left: 10px; }
}

/* ---------------- Mobile bottom tab bar ---------------- */
.mobile-tabbar { display: none; }
.mobile-tab-badge {
  position: absolute;
  top: 3px;
  right: 50%;
  transform: translateX(15px);
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 8px;
  background: var(--rose-500);
  color: #fff;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1;
}
@media (max-width: 720px) {
  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 105;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 2px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(232, 237, 247, .9);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 30px -20px rgba(60, 76, 120, .26);
  }
  .mobile-tab {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 5px 2px 3px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    transition: color .18s, background .18s;
  }
  .mobile-tab .icon { width: 21px; height: 21px; transition: transform .18s; }
  .mobile-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-tab.is-active { color: var(--brand-700); font-weight: 750; background: linear-gradient(180deg, rgba(239, 244, 255, .9), rgba(239, 244, 255, .3)); }
  .mobile-tab.is-active .icon { transform: translateY(-1px); }
  .mobile-tab--ai .icon { color: var(--lavender-500); }
  .mobile-tab--ai.is-active { color: var(--lavender-700); background: linear-gradient(180deg, rgba(247, 243, 255, .95), rgba(247, 243, 255, .3)); }
  .app-main { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .app-footer { margin-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .toast-stack { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .profile-menu { bottom: 76px; }
}
@media (max-width: 360px) {
  .mobile-tab { font-size: 8px; }
  .mobile-tab .icon { width: 19px; height: 19px; }
}
