/* BOTB Admin shared design-system layer for unified Stitch HTML handoff. */
:root {
  --botb-bg: #f7f3ee;
  --botb-surface: #ffffff;
  --botb-surface-alt: #fbf8f4;
  --botb-border: #e7ded6;
  --botb-border-strong: #d4c3b6;
  --botb-text: #1f1712;
  --botb-muted: #6f625a;
  --botb-muted-2: #94867d;
  --botb-primary: #24160d;
  --botb-primary-soft: #f2e6dd;
  --botb-accent: #6f5a4e;
  --botb-info-bg: #eaf0ff;
  --botb-info-text: #33415f;
  --botb-success-bg: #e7f5ed;
  --botb-success-text: #1f6b45;
  --botb-warning-bg: #fff4d8;
  --botb-warning-text: #7b5417;
  --botb-error-bg: #ffe5e0;
  --botb-error-text: #9b2417;
  --botb-muted-bg: #f1ece8;
  --botb-shadow: 0 1px 2px rgba(36, 22, 13, 0.06), 0 1px 1px rgba(36, 22, 13, 0.04);
}
html, body { min-height: 100%; }
body.botb-unified {
  margin: 0 !important;
  background: var(--botb-bg) !important;
  color: var(--botb-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  overflow-x: hidden !important;
}
.botb-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 16rem;
  height: 100vh;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  background: var(--botb-surface);
  border-right: 1px solid var(--botb-border);
  box-shadow: var(--botb-shadow);
}
.botb-sidebar-brand { display: flex; align-items: center; gap: .75rem; padding: .25rem .5rem 1.25rem; margin-bottom: .5rem; border-bottom: 1px solid var(--botb-border); }
.botb-brand-mark { width: 2.25rem; height: 2.25rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; background: var(--botb-primary); color: #fff; font-weight: 700; letter-spacing: -.02em; }
.botb-brand-title { margin: 0; font-size: .84rem; line-height: 1.15; font-weight: 700; letter-spacing: .04em; color: var(--botb-primary); }
.botb-brand-subtitle { margin: .125rem 0 0; color: var(--botb-muted); font-size: .78rem; }
.botb-nav { display: flex; flex-direction: column; gap: .25rem; padding: .5rem 0; }
.botb-nav-section-label { padding: .75rem .75rem .25rem; color: var(--botb-muted-2); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.botb-nav-item {
  display: flex; align-items: center; gap: .7rem;
  min-height: 2.5rem; padding: .55rem .75rem;
  border-radius: .75rem; color: var(--botb-muted);
  font-size: .9rem; font-weight: 600; text-decoration: none;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.botb-nav-item:hover { background: var(--botb-muted-bg); color: var(--botb-primary); }
.botb-nav-item-active { background: var(--botb-primary-soft); color: var(--botb-primary); box-shadow: inset 0 0 0 1px var(--botb-border-strong); }
.botb-nav-item-active .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 500; }
.botb-nav-nested { margin-left: .5rem; padding-left: .65rem; border-left: 1px solid var(--botb-border); }
.botb-nav-nested .botb-nav-item { min-height: 2.05rem; padding: .38rem .65rem; font-size: .78rem; border-radius: .6rem; }
.botb-sidebar-user { margin-top: auto; padding: 1rem .5rem .25rem; border-top: 1px solid var(--botb-border); display: flex; align-items: center; gap: .7rem; color: var(--botb-muted); font-size: .86rem; }
.botb-avatar { width: 2rem; height: 2rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--botb-muted-bg); color: var(--botb-primary); }
.botb-page-wrapper { margin-left: 16rem !important; min-height: 100vh; display: flex; flex-direction: column; background: var(--botb-bg); }
.botb-page-content, .botb-page-wrapper > main, .botb-page-wrapper > div:not(.botb-page-header) { width: 100%; max-width: 1240px; margin-left: auto !important; margin-right: auto !important; padding: 0 2rem 2.5rem !important; box-sizing: border-box; }
.botb-page-content > :first-child:not(.botb-page-header) { margin-top: 1.5rem; }
.botb-page-header {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.5rem 2rem 1rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  background: transparent; box-sizing: border-box;
}
.botb-breadcrumb { margin: 0 0 .4rem; color: var(--botb-muted); font-size: .78rem; font-weight: 600; letter-spacing: .01em; }
.botb-page-title { margin: 0; color: var(--botb-text); font-size: 1.55rem; line-height: 2rem; font-weight: 750; letter-spacing: -.03em; }
.botb-page-subtitle { margin: .35rem 0 0; max-width: 48rem; color: var(--botb-muted); font-size: .95rem; line-height: 1.45rem; }
.botb-header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; padding-top: .25rem; }
.botb-button-primary, .botb-button-secondary, .botb-button-ghost, .botb-button-danger,
button.botb-button-primary, button.botb-button-secondary, button.botb-button-ghost, button.botb-button-danger,
a.botb-button-primary, a.botb-button-secondary, a.botb-button-ghost, a.botb-button-danger {
  min-height: 2.35rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: .75rem !important; padding: .58rem .95rem !important;
  font-weight: 700 !important; font-size: .86rem !important; line-height: 1rem !important; text-decoration: none !important;
  border: 1px solid transparent !important; box-shadow: none !important; white-space: nowrap;
}
.botb-button-primary { background: var(--botb-primary) !important; color: #fff !important; }
.botb-button-secondary { background: var(--botb-surface) !important; color: var(--botb-primary) !important; border-color: var(--botb-border-strong) !important; }
.botb-button-ghost { background: transparent !important; color: var(--botb-muted) !important; border-color: transparent !important; padding: .45rem .55rem !important; }
.botb-button-danger { background: var(--botb-error-bg) !important; color: var(--botb-error-text) !important; border-color: #f7beb5 !important; }
.botb-card, .botb-section-card, .botb-metric-card,
.botb-page-wrapper section, .botb-page-wrapper article {
  border-color: var(--botb-border) !important;
  border-radius: .85rem !important;
}
.botb-card, .botb-section-card, .botb-metric-card {
  background: var(--botb-surface) !important;
  border: 1px solid var(--botb-border) !important;
  box-shadow: var(--botb-shadow) !important;
}
.botb-section-card { padding: 1.25rem !important; }
.botb-metric-card { padding: 1rem !important; }
.botb-page-wrapper table, table.botb-table { width: 100%; border-collapse: separate !important; border-spacing: 0 !important; background: var(--botb-surface) !important; }
.botb-page-wrapper table { overflow: hidden; border-radius: .85rem; }
.botb-page-wrapper thead { background: var(--botb-surface-alt) !important; }
.botb-page-wrapper th { color: var(--botb-muted) !important; font-size: .72rem !important; line-height: 1rem !important; letter-spacing: .06em !important; text-transform: uppercase !important; font-weight: 800 !important; padding: .85rem 1rem !important; border-bottom: 1px solid var(--botb-border) !important; }
.botb-page-wrapper td { color: var(--botb-text) !important; font-size: .88rem !important; padding: .9rem 1rem !important; border-bottom: 1px solid var(--botb-border) !important; vertical-align: middle !important; }
.botb-page-wrapper tbody tr:hover { background: #fbf8f4 !important; }
.botb-page-wrapper input, .botb-page-wrapper select, .botb-page-wrapper textarea, .botb-input, .botb-select {
  border-radius: .7rem !important; border-color: var(--botb-border-strong) !important;
  background-color: var(--botb-surface) !important; color: var(--botb-text) !important;
  min-height: 2.35rem; box-shadow: none !important;
}
.botb-page-wrapper label { color: var(--botb-text); font-size: .82rem; font-weight: 700; }
.botb-tabs { display: flex; align-items: center; gap: 1.2rem; border-bottom: 1px solid var(--botb-border); margin-bottom: 1rem; }
.botb-tab, .botb-page-wrapper [role='tab'], .botb-page-wrapper .botb-tab { padding: .75rem .1rem; color: var(--botb-muted); font-weight: 700; font-size: .86rem; border-bottom: 2px solid transparent; }
.botb-tab-active, .botb-page-wrapper [aria-selected='true'] { color: var(--botb-primary) !important; border-bottom-color: var(--botb-primary) !important; }
.botb-chip, .botb-chip-success, .botb-chip-warning, .botb-chip-error, .botb-chip-info, .botb-chip-muted {
  display: inline-flex !important; align-items: center; gap: .3rem; min-height: 1.5rem;
  border-radius: 999px !important; padding: .2rem .55rem !important;
  font-size: .72rem !important; line-height: 1rem !important; font-weight: 800 !important; letter-spacing: .01em;
  border: 1px solid transparent !important; white-space: nowrap;
}
.botb-chip-success { background: var(--botb-success-bg) !important; color: var(--botb-success-text) !important; border-color: #badfca !important; }
.botb-chip-warning { background: var(--botb-warning-bg) !important; color: var(--botb-warning-text) !important; border-color: #efd18d !important; }
.botb-chip-error { background: var(--botb-error-bg) !important; color: var(--botb-error-text) !important; border-color: #f4bbb3 !important; }
.botb-chip-info { background: var(--botb-info-bg) !important; color: var(--botb-info-text) !important; border-color: #cbd8f8 !important; }
.botb-chip-muted { background: var(--botb-muted-bg) !important; color: var(--botb-muted) !important; border-color: var(--botb-border) !important; }
.botb-page-wrapper .rounded-\[2rem\], .botb-page-wrapper .rounded-xl { border-radius: .85rem !important; }
.botb-page-wrapper .shadow-lg, .botb-page-wrapper .shadow-md, .botb-page-wrapper .shadow-xl { box-shadow: var(--botb-shadow) !important; }
.botb-page-wrapper .text-green-500, .botb-page-wrapper .text-green-600 { color: var(--botb-success-text) !important; }
.botb-page-wrapper .text-red-500, .botb-page-wrapper .text-red-600 { color: var(--botb-error-text) !important; }
.botb-page-wrapper .text-yellow-500, .botb-page-wrapper .text-amber-600 { color: var(--botb-warning-text) !important; }
.botb-page-wrapper .bg-green-100 { background: var(--botb-success-bg) !important; }
.botb-page-wrapper .bg-red-100 { background: var(--botb-error-bg) !important; }
.botb-page-wrapper .bg-yellow-100, .botb-page-wrapper .bg-amber-100 { background: var(--botb-warning-bg) !important; }
.botb-toggle { width: 2.65rem; height: 1.45rem; border-radius: 999px; background: var(--botb-muted-bg); border: 1px solid var(--botb-border); position: relative; display: inline-block; }
.botb-toggle::after { content: ''; width: 1.05rem; height: 1.05rem; border-radius: 999px; background: #fff; position: absolute; top: .16rem; left: .18rem; box-shadow: var(--botb-shadow); transition: transform .15s ease; }
.botb-toggle-on { background: var(--botb-primary-soft); border-color: var(--botb-border-strong); }
.botb-toggle-on::after { transform: translateX(1.14rem); background: var(--botb-primary); }
.material-symbols-outlined { font-size: 1.22rem; line-height: 1; }
/* Mobile UX implementation layer */
:root {
  --botb-mobile-topbar-height: 56px;
  --botb-mobile-bottomnav-height: 66px;
  --botb-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
}
.botb-mobile-topbar,
.botb-bottom-nav,
.botb-mobile-more-panel,
.botb-mobile-context-note,
.botb-mobile-desktop-note,
.botb-mobile-section-stack,
.botb-mobile-summary,
.botb-mobile-sticky-action,
.botb-confirmation-sheet,
.botb-mobile-card-list { box-sizing: border-box; }
.botb-mobile-topbar, .botb-bottom-nav, .botb-mobile-more-panel, .botb-mobile-sticky-action { display: none; }
.botb-mobile-context-note,
.botb-mobile-desktop-note,
.botb-mobile-section-stack,
.botb-mobile-summary {
  display: none;
  width: calc(100% - 4rem); max-width: 1240px; margin: .5rem auto 1rem; padding: 1rem 1.15rem;
}
.botb-mobile-context-note p,
.botb-mobile-desktop-note p { margin: 0; color: var(--botb-muted); line-height: 1.45; font-size: .9rem; }
.botb-mobile-desktop-note { background: var(--botb-warning-bg) !important; color: var(--botb-warning-text); }
.botb-mobile-section-stack-header,
.botb-mobile-summary-header { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.botb-mobile-section-stack-header p { margin: .1rem 0 0; color: var(--botb-muted); font-size: .82rem; }
.botb-mobile-section {
  width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: .5rem; border: 1px solid var(--botb-border) !important; background: var(--botb-surface-alt) !important;
  color: var(--botb-primary) !important; border-radius: .8rem !important; padding: .7rem .8rem !important;
  text-align: left; font-weight: 750;
}
.botb-mobile-section-number { width: 1.45rem; height: 1.45rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--botb-primary); color: #fff; font-size: .72rem; }
.botb-mobile-summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.botb-mobile-metric { padding: .85rem !important; background: var(--botb-surface-alt) !important; border: 1px solid var(--botb-border) !important; }
.botb-mobile-metric-label { display: block; color: var(--botb-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.botb-mobile-metric strong { display: block; margin-top: .35rem; font-size: 1rem; color: var(--botb-primary); }
.botb-mobile-metric small { display: block; margin-top: .3rem; color: var(--botb-muted); line-height: 1.35; }
.botb-mobile-card-list { display: none; }
.botb-mobile-data-card {
  background: var(--botb-surface) !important; border: 1px solid var(--botb-border) !important; border-radius: .95rem !important;
  box-shadow: var(--botb-shadow); padding: .95rem !important; margin-bottom: .85rem;
}
.botb-mobile-data-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.botb-mobile-data-card h3 { margin: 0; font-size: .98rem; line-height: 1.25rem; color: var(--botb-primary); font-weight: 800; }
.botb-mobile-data-card-meta { margin: .75rem 0 0; display: grid; gap: .45rem; }
.botb-mobile-meta-row { display: grid; grid-template-columns: minmax(5.5rem, 38%) 1fr; gap: .65rem; align-items: start; }
.botb-mobile-meta-row dt { color: var(--botb-muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.botb-mobile-meta-row dd { margin: 0; color: var(--botb-text); font-size: .85rem; line-height: 1.25rem; overflow-wrap: anywhere; }
.botb-mobile-card-actions { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.botb-touch-target { min-width: 24px; min-height: 24px; }
.botb-button-primary.botb-touch-target,
.botb-button-secondary.botb-touch-target,
.botb-button-danger.botb-touch-target,
button.botb-touch-target,
a.botb-touch-target { min-height: 44px; }
.botb-page-wrapper button:focus-visible,
.botb-page-wrapper a:focus-visible,
.botb-mobile-topbar button:focus-visible,
.botb-bottom-nav a:focus-visible,
.botb-mobile-more-panel a:focus-visible,
.botb-mobile-more-panel button:focus-visible,
.botb-confirmation-sheet button:focus-visible {
  outline: 2px solid var(--botb-primary) !important;
  outline-offset: 3px !important;
}
.botb-confirmation-sheet {
  position: fixed; inset: 0; z-index: 220; display: flex; align-items: flex-end; justify-content: center;
  padding: 1rem; background: rgba(31,23,18,.38); backdrop-filter: blur(6px);
}
.botb-confirmation-sheet[hidden] { display: none !important; }
.botb-confirmation-card { width: min(32rem, 100%); background: var(--botb-surface); border: 1px solid var(--botb-border); border-radius: 1.1rem; box-shadow: 0 16px 40px rgba(36,22,13,.22); padding: 1rem; }
.botb-confirmation-card h2 { margin: 0; font-size: 1.1rem; color: var(--botb-primary); }
.botb-confirmation-card p { margin: .5rem 0 1rem; color: var(--botb-muted); line-height: 1.45; }
.botb-confirmation-actions { display: flex; justify-content: flex-end; gap: .6rem; }

@media (max-width: 1023px) and (min-width: 769px) {
  .botb-sidebar { width: 5.25rem; padding: 1rem .55rem; }
  .botb-sidebar .botb-brand-title, .botb-sidebar .botb-brand-subtitle, .botb-sidebar .botb-nav-item span:not(.material-symbols-outlined), .botb-sidebar-user div { display: none; }
  .botb-sidebar-brand { justify-content: center; padding-inline: .25rem; }
  .botb-nav-item { justify-content: center; padding-inline: .5rem; }
  .botb-nav-nested { margin-left: 0; padding-left: 0; border-left: 0; }
  .botb-page-wrapper { margin-left: 5.25rem !important; }
  .botb-page-content, .botb-page-wrapper > main, .botb-page-wrapper > div:not(.botb-page-header) { padding-inline: 1.25rem !important; }
  .botb-mobile-context-note { display: flex; align-items: flex-start; gap: .75rem; }
  .botb-mobile-desktop-note { display: flex; align-items: flex-start; gap: .75rem; }
  .botb-mobile-section-stack,
  .botb-mobile-summary { display: block; }
  .botb-mobile-summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  html, body { max-width: 100vw !important; overflow-x: hidden !important; }
  body.botb-unified { padding-top: var(--botb-mobile-topbar-height); padding-bottom: calc(var(--botb-mobile-bottomnav-height) + var(--botb-mobile-safe-bottom)); }
  .botb-sidebar { display: none !important; transform: translateX(-100%); }
  .botb-page-wrapper { margin-left: 0 !important; width: 100vw !important; max-width: 100vw !important; min-width: 0 !important; overflow-x: hidden !important; min-height: calc(100vh - var(--botb-mobile-topbar-height)); padding-bottom: calc(var(--botb-mobile-bottomnav-height) + 1.5rem); }
  .botb-page-wrapper *, .botb-page-header *, .botb-mobile-section-stack *, .botb-mobile-summary * { min-width: 0; box-sizing: border-box; }
  .botb-mobile-topbar, .botb-bottom-nav { width: 100vw !important; max-width: 100vw !important; min-width: 0 !important; }
  .botb-mobile-topbar {
    position: fixed; inset: 0 0 auto 0; height: var(--botb-mobile-topbar-height); z-index: 160;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .5rem .85rem; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--botb-border); box-shadow: var(--botb-shadow); backdrop-filter: blur(12px);
  }
  .botb-mobile-brand { min-width: 0; display: flex; align-items: center; gap: .6rem; font-weight: 850; color: var(--botb-primary); }
  .botb-mobile-brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .botb-brand-mark-mobile { width: 2rem; height: 2rem; border-radius: .65rem; flex: 0 0 auto; }
  .botb-mobile-more-button { width: 44px; height: 44px; border: 1px solid var(--botb-border); border-radius: .85rem; background: var(--botb-surface); color: var(--botb-primary); display: inline-flex; align-items: center; justify-content: center; }
  .botb-bottom-nav {
    position: fixed; inset: auto 0 0 0; min-height: calc(var(--botb-mobile-bottomnav-height) + var(--botb-mobile-safe-bottom)); z-index: 160;
    display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); padding: .35rem .35rem calc(.35rem + var(--botb-mobile-safe-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--botb-border); box-shadow: 0 -4px 18px rgba(36,22,13,.08); backdrop-filter: blur(12px);
  }
  .botb-bottom-nav-item { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; color: var(--botb-muted); text-decoration: none; border-radius: .8rem; font-size: .68rem; font-weight: 750; }
  .botb-bottom-nav-item .material-symbols-outlined { font-size: 1.25rem; }
  .botb-bottom-nav-item-active { background: var(--botb-primary-soft); color: var(--botb-primary); }
  .botb-mobile-more-panel { position: fixed; inset: 0; z-index: 210; display: flex; flex-direction: column; background: var(--botb-surface); padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem calc(1rem + var(--botb-mobile-safe-bottom)); overflow-y: auto; }
  .botb-mobile-more-panel[hidden] { display: none !important; }
  .botb-mobile-more-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--botb-border); }
  .botb-mobile-more-header p { margin: .2rem 0 0; color: var(--botb-muted); font-size: .86rem; }
  .botb-mobile-more-links { display: grid; gap: .35rem; padding-top: .85rem; }
  .botb-mobile-more-link { min-height: 44px; }
  .botb-mobile-more-link-nested { margin-left: 1.25rem; }
  .botb-page-header { flex-direction: column; padding: 1rem 1rem .75rem; gap: .8rem; }
  .botb-page-title { font-size: 1.28rem; line-height: 1.55rem; }
  .botb-page-subtitle { font-size: .86rem; line-height: 1.3rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .botb-breadcrumb { font-size: .72rem; }
  .botb-header-actions { width: 100%; overflow-x: auto; padding-bottom: .15rem; }
  .botb-header-actions > * { flex: 0 0 auto; }
  .botb-page-content, .botb-page-wrapper > main, .botb-page-wrapper > div:not(.botb-page-header) { padding: 0 1rem 1.5rem !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; overflow-x: hidden !important; }
  .botb-page-wrapper main, .botb-page-wrapper main > div, .botb-page-wrapper section, .botb-page-wrapper article, .botb-page-wrapper .botb-card { max-width: 100% !important; min-width: 0 !important; }
  .botb-page-wrapper .flex { min-width: 0 !important; }
  .botb-page-wrapper main.flex, .botb-page-wrapper main .flex:not(.botb-header-actions):not(.botb-mobile-data-card-head):not(.botb-mobile-card-actions) { flex-wrap: wrap; }
  .botb-page-wrapper [class*="w-\[375px\]"], .botb-page-wrapper [class*="w-\[420px\]"] { width: 100% !important; max-width: min(375px, 100%) !important; }
  .botb-page-wrapper [class*="sticky"] { position: relative !important; top: auto !important; }
  .botb-page-wrapper [class*="space-x-8"] { gap: .85rem !important; column-gap: .85rem !important; overflow-x: auto !important; }
  .botb-page-wrapper [class*="shrink-0"] { flex-shrink: 1 !important; }
  .botb-mobile-context-note { display: flex; align-items: flex-start; gap: .75rem; }
  .botb-mobile-desktop-note { display: flex; align-items: flex-start; gap: .75rem; }
  .botb-mobile-section-stack,
  .botb-mobile-summary { display: block; }
  .botb-mobile-context-note, .botb-mobile-desktop-note, .botb-mobile-section-stack, .botb-mobile-summary { width: calc(100% - 2rem); margin: .5rem auto .85rem; padding: .9rem; }
  .botb-mobile-summary-grid { grid-template-columns: 1fr; gap: .55rem; }
  .botb-page-wrapper .grid, .botb-page-wrapper [class*="grid-cols"], .botb-page-wrapper [class*="lg:grid-cols"], .botb-page-wrapper [class*="md:grid-cols"] { grid-template-columns: 1fr !important; }
  .botb-page-wrapper [class*="ml-64"], .botb-page-wrapper .ml-64, .botb-page-wrapper [class*="pl-64"], .botb-page-wrapper .pl-64 { margin-left: 0 !important; padding-left: 0 !important; }
  .botb-page-wrapper [class*="min-w-\[800px\]"], .botb-page-wrapper [class*="min-w-\[600px\]"] { min-width: 0 !important; }
  .botb-page-wrapper table.botb-table { display: none !important; }
  .botb-mobile-card-list { display: block; width: 100% !important; margin: .75rem 0 1rem; }
  .botb-mobile-card-host { width: 100% !important; max-width: 100% !important; max-height: none !important; overflow: visible !important; }
  .botb-mobile-card-host-section { width: 100% !important; max-width: 100% !important; height: auto !important; overflow: visible !important; }
  .botb-mobile-card-host-section + .botb-mobile-card-host-section { margin-top: 1rem; }
  .botb-page-wrapper .botb-mobile-card-host-section { flex: 1 1 100% !important; }
  .botb-page-wrapper [class*="grid-cols"] > .botb-mobile-card-host-section,
  .botb-page-wrapper [class*="lg:grid-cols"] > .botb-mobile-card-host-section,
  .botb-page-wrapper [class*="md:grid-cols"] > .botb-mobile-card-host-section { grid-column: 1 / -1 !important; }
  .botb-mobile-meta-row { grid-template-columns: 1fr; gap: .18rem; padding-bottom: .45rem; border-bottom: 1px solid var(--botb-border); }
  .botb-mobile-card-actions .botb-button-primary, .botb-mobile-card-actions .botb-button-secondary, .botb-mobile-card-actions .botb-button-danger { flex: 1 1 auto; }
  .botb-page-wrapper input, .botb-page-wrapper select, .botb-page-wrapper textarea { width: 100% !important; min-height: 44px !important; font-size: 16px !important; }
  .botb-page-wrapper form, .botb-page-wrapper fieldset { display: grid !important; grid-template-columns: 1fr !important; gap: .8rem !important; }
  .botb-tabs, .botb-page-wrapper [role='tablist'] { overflow-x: auto; gap: .85rem; padding-bottom: .25rem; }
  .botb-tab { white-space: nowrap; }
  .botb-mobile-sticky-action { position: fixed; left: .85rem; right: .85rem; bottom: calc(var(--botb-mobile-bottomnav-height) + .55rem + var(--botb-mobile-safe-bottom)); z-index: 155; display: flex; }
  .botb-mobile-sticky-action > * { width: 100%; box-shadow: 0 10px 24px rgba(36,22,13,.18) !important; }
  .botb-confirmation-sheet { align-items: flex-end; padding: .75rem; }
  .botb-confirmation-card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}
