/**
 * Lessons Editor — Mobile CSS  v3.0
 * UX real: extensão mobile do desktop
 *   - Sub-bar fixa (Lições | Pílulas | Preview | Publicar)
 *   - Cards de lição com design limpo
 *   - Switcher dropdown compacto na aba Pílulas
 *   - Preview fullscreen com botão flutuante
 *   - FAB apenas Lesson / Activity
 */

/* ══════════════════════════════════════════════════════════
   TOKENS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root {
    --le-ink:     #0d0d0d;
    --le-muted:   #7a7570;
    --le-rule:    rgba(13,13,13,.08);
    --le-surface: #f7f7f5;
    --le-white:   #ffffff;
    --le-primary: #6366f1;
    --le-green:   #22c55e;
    --le-warn:    #f59e0b;
    --le-error:   #e53e3e;
    --le-f-dis:   'DM Serif Display', Georgia, serif;
    --le-f-mono:  'DM Mono', monospace;
    --le-f-body:  'DM Sans', system-ui, sans-serif;
    --le-ease:    cubic-bezier(.22,.68,0,1.2);
    --le-bar-h:   44px;
    --le-radius:  12px;
  }
}

/* ══════════════════════════════════════════════════════════
   LAYOUT DESKTOP OCULTO NO MOBILE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .editor-sidebar  { display: none !important; }
  .editor-preview  { display: none !important; }
  .editor-header   { display: none !important; }
  .editor-columns  { display: none !important; }

  .editor-layout {
    display:        flex !important;
    flex-direction: column !important;
    height:         calc(100dvh - var(--mg-nav-current, 52px)) !important;
    overflow:       hidden !important;
  }

  .editor-center {
    flex:           1 !important;
    min-height:     0 !important;
    display:        flex !important;
    flex-direction: column !important;
    overflow:       hidden !important;
    padding:        0 !important;
    margin:         0 !important;
  }
}

/* ══════════════════════════════════════════════════════════
   SUB-BAR  #leSubBar
   ══════════════════════════════════════════════════════════ */
#leSubBar {
  display:        none;
  position:       fixed;
  left: 0; right: 0;
  z-index:        150;
  height:         var(--le-bar-h);
  background:     var(--le-white);
  border-bottom:  1px solid var(--le-rule);
  box-shadow:     0 2px 12px rgba(13,13,13,.06);
  flex-direction: row;
  align-items:    stretch;
  flex-shrink:    0;
}
#leSubBar.le-bar-visible { display: flex; }

/* Tabs */
.le-tab {
  flex:            1;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             4px;
  border:          none;
  background:      none;
  border-bottom:   2.5px solid transparent;
  font-family:     var(--le-f-body);
  font-size:       11px;
  font-weight:     500;
  color:           var(--le-muted);
  cursor:          pointer;
  -webkit-tap-highlight-color: transparent;
  transition:      border-color .18s, color .18s;
  padding:         0 4px;
}
.le-tab:active { background: rgba(13,13,13,.03); }
.le-tab.le-tab-active {
  border-bottom-color: var(--le-ink);
  color:               var(--le-ink);
  font-weight:         700;
}
.le-tab-icon  { font-size: 13px; line-height: 1; }
.le-tab-label { letter-spacing: -.01em; white-space: nowrap; }

.le-tab-badge {
  font-family: var(--le-f-mono);
  font-size:   9px; font-weight: 700;
  background:  rgba(13,13,13,.08); color: var(--le-muted);
  padding:     1px 5px; border-radius: 8px;
}
.le-tab-active .le-tab-badge {
  background: var(--le-ink); color: #fff;
}

/* Botão Publicar */
.le-bar-actions {
  display:     flex;
  align-items: center;
  padding:     0 8px;
  flex-shrink: 0;
  border-left: 1px solid var(--le-rule);
}
.le-bar-btn {
  height:      32px; padding: 0 12px;
  display:     inline-flex; align-items: center; gap: 4px;
  border:      none; border-radius: 8px;
  font-family: var(--le-f-body); font-size: 11px; font-weight: 700;
  cursor:      pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:  background .14s, transform .14s var(--le-ease);
}
.le-bar-btn:active { transform: scale(.92); }
.le-btn-publish {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(34,197,94,.35);
}
.le-btn-publish:disabled {
  background: rgba(13,13,13,.1) !important;
  box-shadow: none !important;
  color:      rgba(13,13,13,.28) !important;
  pointer-events: none !important;
}

/* ══════════════════════════════════════════════════════════
   #leContent — wrapper das 3 abas
   ══════════════════════════════════════════════════════════ */
#leContent {
  display:        none;
  flex:           1;
  min-height:     0;
  flex-direction: column;
  overflow:       hidden;
}
#leContent.le-visible { display: flex; }

.le-pane {
  display:        none;
  flex:           1;
  min-height:     0;
  flex-direction: column;
  overflow:       hidden;
}
.le-pane.le-pane-active { display: flex; }


/* ══════════════════════════════════════════════════════════
   ABA 1: LIÇÕES
   Lista de lessons / activities
   ══════════════════════════════════════════════════════════ */
.le-pane-lessons {
  overflow-y:  auto;
  overflow-x:  hidden;
  background:  var(--le-surface);
  padding:     8px 12px calc(80px + env(safe-area-inset-bottom,0px));
  -webkit-overflow-scrolling: touch;
}
.le-pane-lessons::-webkit-scrollbar { display: none; }

/* Group labels */
.le-list-group-label {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         14px 2px 6px;
  font-family:     var(--le-f-mono);
  font-size:       9px; font-weight: 700;
  letter-spacing:  .12em; text-transform: uppercase;
  color:           var(--le-muted);
}
.le-list-group-label span {
  background: rgba(13,13,13,.07);
  padding: 2px 7px; border-radius: 8px;
  font-size: 10px; letter-spacing: 0;
}
.le-list-group-activity { padding-top: 6px; }

/* Card de lesson */
.le-lesson-card {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       12px 12px 12px 14px;
  border-radius: var(--le-radius);
  background:    var(--le-white);
  margin-bottom: 6px;
  border:        1.5px solid transparent;
  box-shadow:    0 1px 4px rgba(13,13,13,.06);
  cursor:        pointer;
  -webkit-tap-highlight-color: transparent;
  transition:    border-color .15s, box-shadow .15s, background .15s;
  position:      relative;
}
.le-lesson-card:active { background: rgba(99,102,241,.03); }

.le-lesson-card.le-card-active {
  border-color: var(--le-ink);
  box-shadow:   0 3px 12px rgba(13,13,13,.1);
}
.le-lesson-card.le-card-draft {
  border-color: rgba(245,158,11,.25);
}
.le-lesson-card.le-card-draft.le-card-active {
  border-color: var(--le-warn);
}

.le-card-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(13,13,13,.07);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--le-f-mono); font-size: 11px; font-weight: 700;
  color: var(--le-muted); flex-shrink: 0;
  transition: background .14s, color .14s;
}
.le-num-active { background: var(--le-ink) !important; color: #fff !important; }
.le-num-draft  { background: rgba(245,158,11,.15) !important; color: var(--le-warn) !important; }

.le-card-body  { flex: 1; min-width: 0; }
.le-card-title {
  font-family: var(--le-f-body); font-size: 14px; font-weight: 600;
  color: var(--le-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.le-card-meta {
  font-family: var(--le-f-mono); font-size: 10px; color: var(--le-muted);
  letter-spacing: .03em; margin-top: 2px;
}

.le-card-badge-draft {
  font-family: var(--le-f-mono); font-size: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(245,158,11,.12); color: var(--le-warn);
  flex-shrink: 0;
}

.le-card-right {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.le-card-del {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(239,68,68,.08); border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; color: var(--le-error);
  -webkit-tap-highlight-color: transparent;
}
.le-card-del:active { background: rgba(239,68,68,.16); }
.le-card-arrow {
  font-size: 20px; color: rgba(13,13,13,.2); line-height: 1;
  font-weight: 300;
}
.le-card-active .le-card-arrow { color: var(--le-ink); }

/* Empty state genérico */
.le-empty-state {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         48px 20px;
  text-align:      center;
  gap:             8px;
}
.le-empty-icon { font-size: 38px; opacity: .35; }
.le-empty-text {
  font-family: var(--le-f-body); font-size: 15px; font-weight: 600;
  color: var(--le-muted);
}
.le-empty-sub {
  font-family: var(--le-f-mono); font-size: 10px;
  color: rgba(13,13,13,.28); letter-spacing: .04em;
}


/* ══════════════════════════════════════════════════════════
   ABA 2: PÍLULAS
   Switcher + sections-scroll-body do desktop
   ══════════════════════════════════════════════════════════ */
.le-pane-pills {
  display:        flex;
  flex-direction: column;
  overflow:       hidden;
  background:     var(--le-surface);
}

/* ── Switcher de lição ── */
.le-switcher-wrap {
  flex-shrink:    0;
  background:     var(--le-white);
  border-bottom:  1px solid var(--le-rule);
  position:       relative;
  z-index:        10;
}

.le-switcher-row {
  display:     flex;
  align-items: stretch;
  height:      52px;
}

.le-switcher-btn {
  flex:        1;
  display:     flex;
  align-items: center;
  gap:         10px;
  padding:     0 14px;
  border:      none;
  background:  none;
  cursor:      pointer;
  -webkit-tap-highlight-color: transparent;
  min-width:   0;
  text-align:  left;
}
.le-switcher-btn:active { background: rgba(13,13,13,.03); }

.le-sw-icon  { font-size: 18px; flex-shrink: 0; line-height: 1; }

.le-sw-text  { flex: 1; min-width: 0; }
.le-sw-eyebrow {
  display:        block;
  font-family:    var(--le-f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--le-muted);
  margin-bottom:  1px;
}
.le-sw-name {
  display:       block;
  font-family:   var(--le-f-body); font-size: 14px; font-weight: 700;
  color:         var(--le-ink);
  white-space:   nowrap; overflow: hidden; text-overflow: ellipsis;
}

.le-sw-badge {
  font-family: var(--le-f-mono); font-size: 9px; font-weight: 700;
  background:  rgba(13,13,13,.07); color: var(--le-muted);
  padding:     2px 8px; border-radius: 8px;
  white-space: nowrap; flex-shrink: 0;
}

.le-sw-chevron {
  font-size:   12px; color: var(--le-muted); flex-shrink: 0;
  transition:  transform .18s;
}

/* Botão editar info */
.le-sw-edit-btn {
  width:       48px;
  border:      none;
  border-left: 1px solid var(--le-rule);
  background:  none;
  font-size:   16px;
  cursor:      pointer;
  color:       var(--le-muted);
  -webkit-tap-highlight-color: transparent;
  display:     flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition:  background .14s;
}
.le-sw-edit-btn:active { background: var(--le-surface); }

/* ── Dropdown de lições ── */
.le-switcher-drop {
  border-top:  1px solid var(--le-rule);
  max-height:  52vh;
  overflow-y:  auto;
  -webkit-overflow-scrolling: touch;
  background:  var(--le-white);
  box-shadow:  0 8px 24px rgba(13,13,13,.1);
}
.le-switcher-drop::-webkit-scrollbar { display: none; }

.le-drop-group {
  padding:        8px 16px 4px;
  font-family:    var(--le-f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--le-muted);
  background:     var(--le-surface);
}

.le-drop-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  width:       100%;
  padding:     11px 16px;
  border:      none;
  border-left: 3px solid transparent;
  background:  none;
  cursor:      pointer;
  text-align:  left;
  -webkit-tap-highlight-color: transparent;
  transition:  background .13s;
}
.le-drop-item:active { background: rgba(13,13,13,.04); }
.le-drop-item.le-drop-active {
  background:       rgba(13,13,13,.04);
  border-left-color: var(--le-ink);
}

.le-drop-num {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(13,13,13,.07);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--le-f-mono); font-size: 10px; font-weight: 700;
  color: var(--le-muted); flex-shrink: 0;
}
.le-drop-active .le-drop-num { background: var(--le-ink); color: #fff; }

.le-drop-title {
  flex:        1; min-width: 0;
  font-family: var(--le-f-body); font-size: 13px; font-weight: 500;
  color:       var(--le-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.le-drop-active .le-drop-title { font-weight: 700; }

.le-drop-pills {
  font-family: var(--le-f-mono); font-size: 9px; font-weight: 700;
  color: var(--le-muted); flex-shrink: 0;
}
.le-drop-check {
  font-size: 14px; color: var(--le-ink); flex-shrink: 0; font-weight: 700;
}

/* ── Host das sections ── */
.le-pills-host {
  flex:                       1;
  overflow-y:                 auto;
  overflow-x:                 hidden;
  -webkit-overflow-scrolling: touch;
  background:                 var(--le-surface);
}
.le-pills-host::-webkit-scrollbar { display: none; }

/* sections-scroll-body dentro do host mobile */
#lePillsScrollHost .sections-scroll-body {
  height:     auto !important;
  min-height: 100% !important;
  flex:       none !important;
  overflow:   visible !important;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
}


/* ══════════════════════════════════════════════════════════
   ABA 3: PREVIEW — fullscreen
   ══════════════════════════════════════════════════════════ */
.le-pane-preview {
  position:       relative;
  overflow:       hidden;
  background:     #111;
  flex-direction: column;
}

/* Botão flutuante de voltar */
.le-preview-back-float {
  position:        absolute;
  top:             12px;
  left:            12px;
  z-index:         20;
  display:         inline-flex;
  align-items:     center;
  gap:             5px;
  padding:         7px 14px;
  border-radius:   22px;
  background:      rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  border:          1px solid rgba(255,255,255,.18);
  color:           #fff;
  font-family:     var(--le-f-body);
  font-size:       12px; font-weight: 700;
  cursor:          pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:      0 2px 12px rgba(0,0,0,.3);
  transition:      background .15s, transform .15s;
}
.le-preview-back-float:active {
  background:  rgba(0,0,0,.75);
  transform:   scale(.95);
}

/* #visualPreview e filhos ocupam tudo */
.le-pane-preview #visualPreview {
  position:   absolute !important;
  inset:      0 !important;
  width:      100% !important;
  height:     100% !important;
  min-height: 0 !important;
  overflow:   hidden !important;
  border:     none !important;
  margin:     0 !important;
  padding:    0 !important;
}

.le-pane-preview #visualPreview iframe,
.le-pane-preview #visualPreview .smartphone-frame,
.le-pane-preview #visualPreview .smartphone-webview,
.le-pane-preview #visualPreview .preview-iframe-wrapper {
  width:      100% !important;
  height:     100% !important;
  max-width:  100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  border:     none !important;
  margin:     0 !important;
  padding:    0 !important;
  transform:  none !important;
  border-radius: 0 !important;
  position:   absolute !important;
  inset:      0 !important;
}


/* ══════════════════════════════════════════════════════════
   FAB — só Lesson + Activity
   ══════════════════════════════════════════════════════════ */
#leFab {
  position: fixed;
  right:    16px;
  bottom:   calc(16px + env(safe-area-inset-bottom,0px));
  z-index:  400;
  display:  none;
}
@media (max-width: 767px) { #leFab { display: block; } }

.le-fab-main {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--le-ink); color: #fff;
  border: none; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(13,13,13,.28);
  cursor: pointer; position: relative; z-index: 2;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--le-ease), box-shadow .2s, background .2s;
}
.le-fab-main.le-fab-open {
  transform: rotate(45deg);
  background: var(--le-error);
  box-shadow: 0 4px 14px rgba(229,62,62,.4);
}
.le-fab-main:active { transform: scale(.91); }
.le-fab-main.le-fab-open:active { transform: rotate(45deg) scale(.91); }

.le-fab-items {
  position:       absolute;
  bottom:         60px; right: 0;
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
  gap:            8px;
  pointer-events: none;
  opacity:        0;
  transform:      translateY(10px);
  transition:     opacity .2s, transform .2s var(--le-ease);
}
.le-fab-items.le-fab-items-open {
  pointer-events: auto;
  opacity:        1;
  transform:      translateY(0);
}

.le-fab-item {
  display:     flex;
  align-items: center;
  gap:         10px;
  cursor:      pointer;
  -webkit-tap-highlight-color: transparent;
}
.le-fab-label {
  background:      rgba(13,13,13,.82);
  color:           #fff;
  font-family:     var(--le-f-body); font-size: 12px; font-weight: 700;
  padding:         5px 11px; border-radius: 8px;
  white-space:     nowrap;
  backdrop-filter: blur(4px);
  box-shadow:      0 2px 8px rgba(13,13,13,.18);
}
.le-fab-item-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: none; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 12px rgba(13,13,13,.2);
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--le-ease);
}
.le-fab-item-btn:active { transform: scale(.88); }
.le-fib-lesson   { background: var(--le-white); color: var(--le-ink); }
.le-fib-activity { background: var(--le-warn); color: #fff; box-shadow: 0 3px 12px rgba(245,158,11,.4); }

#leFabBackdrop {
  display:  none;
  position: fixed; inset: 0; z-index: 399;
}
#leFabBackdrop.le-bd-visible { display: block; }


/* ══════════════════════════════════════════════════════════
   BOTTOM SHEET — Editar info da lesson
   ══════════════════════════════════════════════════════════ */
.le-sheet-bd {
  position: fixed; inset: 0; z-index: 9300;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end;
  opacity: 0;
  transition: opacity .22s ease;
  backdrop-filter: blur(3px);
}
.le-sheet-bd.le-sheet-show { opacity: 1; }

.le-sheet {
  width: 100%; max-height: 80dvh;
  background: var(--le-white);
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%);
  transition: transform .3s var(--le-ease);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.le-sheet-bd.le-sheet-show .le-sheet { transform: translateY(0); }

.le-sheet-handle {
  width: 44px; height: 5px; background: rgba(13,13,13,.1);
  border-radius: 3px; margin: 12px auto 0; flex-shrink: 0;
}
.le-sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--le-rule);
  background: var(--le-surface); flex-shrink: 0;
}
.le-sh-eyebrow {
  font-family: var(--le-f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--le-muted);
  margin-bottom: 3px;
}
.le-sh-title {
  font-family: var(--le-f-dis); font-size: 20px; font-style: italic;
  color: var(--le-ink); letter-spacing: -.02em; margin: 0;
}
.le-sh-x {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(13,13,13,.07); border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--le-muted); cursor: pointer;
  flex-shrink: 0; margin-top: 3px;
  -webkit-tap-highlight-color: transparent;
}
.le-sh-x:active { background: rgba(13,13,13,.12); }

.le-sheet-body {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 14px;
}
.le-sheet-body::-webkit-scrollbar { display: none; }

.le-sh-field { display: flex; flex-direction: column; gap: 6px; }
.le-sh-label {
  font-family: var(--le-f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--le-muted);
}
.le-sh-inp, .le-sh-ta {
  width: 100%; padding: 13px 14px;
  border: 2px solid rgba(13,13,13,.1); border-radius: 10px;
  font-family: var(--le-f-body); font-size: 16px; color: var(--le-ink);
  background: var(--le-white); outline: none; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
  transition: border-color .18s, box-shadow .18s;
}
.le-sh-inp:focus, .le-sh-ta:focus {
  border-color: var(--le-ink);
  box-shadow: 0 0 0 3px rgba(13,13,13,.06);
}
.le-sh-ta { resize: none; min-height: 90px; line-height: 1.6; }

.le-sheet-foot {
  display: flex; gap: 10px; padding: 12px 20px 16px;
  border-top: 1px solid var(--le-rule);
  background: var(--le-surface); flex-shrink: 0;
}
.le-sh-cancel {
  flex: 1; height: 50px; background: var(--le-white);
  border: 1.5px solid rgba(13,13,13,.14); color: var(--le-muted);
  font-family: var(--le-f-body); font-size: 14px; font-weight: 600;
  cursor: pointer; border-radius: 10px;
  -webkit-tap-highlight-color: transparent;
}
.le-sh-cancel:active { border-color: var(--le-ink); color: var(--le-ink); }
.le-sh-save {
  flex: 2; height: 50px; background: var(--le-ink); color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--le-f-body); font-size: 14px; font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(13,13,13,.22);
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--le-ease), box-shadow .18s;
}
.le-sh-save:active  { transform: scale(.95); box-shadow: 0 2px 6px rgba(13,13,13,.15); }
.le-sh-save:disabled { background: #aaa; box-shadow: none; pointer-events: none; }

@keyframes le-spin { to { transform: rotate(360deg); } }
.le-sh-spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: le-spin .65s linear infinite;
}


/* ══════════════════════════════════════════════════════════
   SECTION PICKER — override mobile → bottom sheet
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  #sectionPickerModal.show {
    display:         flex !important;
    align-items:     flex-end !important;
    background:      rgba(0,0,0,.5) !important;
    backdrop-filter: blur(3px) !important;
  }
  #sectionPickerModal .modal-content {
    width:         100% !important;
    max-width:     100% !important;
    height:        82dvh !important;
    max-height:    82dvh !important;
    border-radius: 20px 20px 0 0 !important;
    margin:        0 !important;
    display:       flex !important;
    flex-direction: column !important;
    overflow:      hidden !important;
    padding-bottom: env(safe-area-inset-bottom,0) !important;
  }
  #sectionPickerModal .modal-header {
    padding: 14px 20px 12px !important;
    flex-shrink: 0 !important;
  }
  #sectionPickerModal .section-helper-panel { display: none !important; }
  #sectionPickerModal .spm-left {
    border-right: none !important;
    padding: 14px 16px !important;
  }
  #sectionPickerModal .modal-body { border-radius: 0 !important; }
  #sectionPickerModal #sectionTypesGrid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  #sectionPickerModal .section-type-card {
    padding: 14px 6px !important;
    gap: 6px !important;
  }
  #sectionPickerModal .section-type-icon  { font-size: 28px !important; }
  #sectionPickerModal .section-type-label { font-size: 10px !important; }
}
