/* bot-config.css — Botón verde «Bot» en el header (Opción A) + ventana modal limpia de ajustes del Bot de WhatsApp. */
#headerBotBtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 13px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  background: #E6F5EC !important;
  border: 1.5px solid #A7DFBE !important;
  color: #146C3A !important;
  font-family: inherit !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  flex: 0 0 auto !important;
  transition: background .15s ease, border-color .15s ease, transform .12s ease !important;
}
#headerBotBtn:hover {
  background: #D7F0E1 !important;
  border-color: #7AD2A1 !important;
  transform: translateY(-1px);
}
#headerBotBtn:active { transform: scale(.97); }
#headerBotBtn .bt-hdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .2);
  flex: 0 0 auto;
}
#headerBotBtn svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto !important;
  stroke: currentColor !important;
}
#headerBotBtn.paused {
  background: #EEF1F5 !important;
  border-color: #D1D5DB !important;
  color: #4B5563 !important;
}
#headerBotBtn.paused .bt-hdot {
  background: #9CA3AF;
  box-shadow: none;
}
html[data-theme="dark"] #headerBotBtn {
  background: rgba(22, 163, 74, .18) !important;
  border-color: rgba(74, 222, 128, .4) !important;
  color: #86EFAC !important;
}
html[data-theme="dark"] #headerBotBtn.paused {
  background: rgba(148, 163, 184, .16) !important;
  border-color: rgba(148, 163, 184, .32) !important;
  color: #CBD5E1 !important;
}
@media (max-width: 768px) {
  /* Móvil: solo ícono (círculo de 40 px) para que el botón no quite espacio a Notas, Bandeja, Ayuda y avatar. */
  html body #headerBotBtn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    gap: 0 !important;
    position: relative !important;
  }
  html body #headerBotBtn .bt-hlbl { display: none !important; }
  html body #headerBotBtn svg { width: 20px !important; height: 20px !important; }
  html body #headerBotBtn .bt-hdot { position: absolute !important; top: 6px; right: 6px; }
}

/* Ventana modal del Bot — Unificada con el estilo de «Registrar nueva atención» (css/41-atencionNueva.css) */
#botModal, #botModal * { box-sizing: border-box !important; }
#botModal {
  --an-bg: #F2F2F7;
  --an-card: #FFFFFF;
  --an-card2: #F1F5F9;
  --an-fld: #F6F8FB;
  --an-ink: rgba(15, 23, 42, .94);
  --an-ink2: #38425B;
  --an-mut: #5A6580;
  --an-line-soft: rgba(47, 74, 184, .08);
  --an-fld-line: rgba(47, 74, 184, .16);
  --an-primary: #0284C7;
  --an-primary-h: #0369A1;
  --an-acc: #0284C7;
  --an-acc-soft: #E8F4FB;
  --an-green: #0F9D58;
  --an-green-soft: #E6F6EC;
  --an-red: #DC2626;
  --an-red-soft: #FEE7E7;
  --an-seg: #E9EBF0;
  --an-seg-on: #FFFFFF;
  --an-shadow: 0 1px 3px rgba(15, 17, 22, .04), 0 4px 12px rgba(15, 17, 22, .04);
  --an-shadow-lg: 0 24px 60px rgba(15, 17, 22, .18), 0 4px 12px rgba(15, 17, 22, .06);
  --an-font: "Plus Jakarta Sans", "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;

  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  z-index: 9500 !important;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  font-family: var(--an-font) !important;
  -webkit-font-smoothing: antialiased;
}
#botModal[hidden] { display: none !important; }
html[data-theme="dark"] #botModal {
  --an-bg: #121212;
  --an-card: #1C1C1E;
  --an-card2: #252528;
  --an-fld: #252528;
  --an-ink: #ECECEC;
  --an-ink2: #BDBDC2;
  --an-mut: #8E8E93;
  --an-line-soft: rgba(255, 255, 255, .05);
  --an-fld-line: rgba(255, 255, 255, .10);
  --an-acc: #38BDF8;
  --an-acc-soft: rgba(56, 189, 248, .16);
  --an-green: #34D399;
  --an-green-soft: rgba(52, 211, 153, .14);
  --an-red: #F87171;
  --an-red-soft: rgba(248, 113, 113, .14);
  --an-seg: #2C2C2E;
  --an-seg-on: #48484A;
  --an-shadow: none;
  --an-shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
}
#botModal .bt-dlg {
  background: var(--an-bg);
  color: var(--an-ink);
  width: 100% !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  height: var(--appvh, 100dvh);
  max-height: var(--appvh, 100dvh);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--an-shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--an-font);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) {
  #botModal { align-items: center; padding: 16px; }
  #botModal .bt-dlg { height: auto; border-radius: 18px; max-height: calc(100vh - 32px); }
}
/* En escritorio (>=835px) odontOS aplica html { zoom: 0.75 }: compensa la escala como «Registrar nueva atención» */
@media (min-width: 835px) {
  #botModal, #btSheet {
    width: calc(100vw / var(--zv, 0.75)) !important;
    height: calc(100vh / var(--zv, 0.75)) !important;
    max-width: none !important;
    max-height: none !important;
    padding: 24px !important;
  }
  #botModal .bt-dlg {
    zoom: 1.3334;
    width: min(1040px, calc(100vw - 48px)) !important;
    max-width: 1040px !important;
    max-height: calc(100vh - 48px) !important;
  }
  #btSheet .bt-sh {
    zoom: 1.3334;
    width: min(560px, calc(100vw - 48px)) !important;
    max-width: 560px !important;
    max-height: calc(100vh - 48px) !important;
  }
  #botPanel { padding: 14px; }
  #botPanel .bt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  #botPanel .bt-col { min-width: 0; }
  #botPanel .bt-cap-top { margin-top: 0; }
  #botPanel .bt-row { min-height: 46px; }
}
#botModal .bt-mhead {
  background: var(--an-card);
  border-bottom: 1px solid var(--an-line-soft);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
}
#botModal .bt-hic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--an-green-soft);
  color: var(--an-green);
  display: grid;
  place-items: center;
  flex: none;
}
#botModal .bt-hic svg { width: 22px; height: 22px; stroke: currentColor; }
#botModal .bt-mhead-tx { flex: 1; min-width: 0; }
#botModal .bt-mhead-tx h3 { margin: 0 !important; font-size: 19px !important; font-weight: 700 !important; letter-spacing: -.01em; color: var(--an-ink) !important; font-family: var(--an-font) !important; }
#botModal .bt-mhead-tx p { margin: 2px 0 0 !important; font-size: 13px; color: var(--an-mut); }
#botModal .bt-mclose {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--an-card2) !important;
  color: var(--an-ink2) !important;
  cursor: pointer;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: none !important;
}
#botModal .bt-mclose:hover { background: var(--an-seg) !important; color: var(--an-ink) !important; }
#botModal .bt-mclose svg { width: 18px; height: 18px; }
#botPanel {
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
#botModal .bt-mfoot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--an-card);
  border-top: 1px solid var(--an-line-soft);
  flex: none;
}
#botModal .bt-fsp { flex: 1; }
#botModal .bt-fbtn {
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 12px !important;
  border: 0 !important;
  padding: 0 18px !important;
  font-family: var(--an-font) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
}
#botModal .bt-fbtn.pri { background: var(--an-primary) !important; color: #FFFFFF !important; }
#botModal .bt-fbtn.pri:hover { background: var(--an-primary-h) !important; }
#botModal .bt-fbtn.sec { background: var(--an-card2) !important; color: var(--an-ink) !important; }
#botModal .bt-fbtn.sec:hover { background: var(--an-seg) !important; }
@media (max-width: 834px) {
  #botModal .bt-mhead { padding: 12px 14px; }
  #botModal .bt-hic { width: 36px; height: 36px; }
  #botModal .bt-hic svg { width: 19px; height: 19px; }
  #botModal .bt-mhead-tx p { display: none; }
  #botModal .bt-mfoot { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
  #botModal .bt-fsp, #botModal .bt-hide-mob { display: none !important; }
  #botModal .bt-fbtn.pri { flex: 1 !important; }
}

.bt-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.bt-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bt-pill.on { background: #E6F5EC; color: #146C3A; }
.bt-pill.off { background: #EEF1F5; color: #4B5563; }
.bt-pill.warn { background: #FEF3C7; color: #92400E; }
.bt-pill.bad { background: #FEE2E2; color: #B91C1C; }
html[data-theme="dark"] .bt-pill.warn { background: rgba(245, 158, 11, .16); color: #FCD34D; }
html[data-theme="dark"] .bt-pill.bad { background: rgba(248, 113, 113, .16); color: #FCA5A5; }

.bt-seg { display: flex; width: 100%; max-width: 100%; background: var(--an-seg, #E9EBF0); border-radius: 11px; padding: 3px; gap: 2px; height: 44px; }
.bt-seg button { flex: 1 1 0; min-width: 0 !important; height: 100% !important; align-self: stretch !important; min-height: 0 !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--an-ink2, inherit); font-weight: 650; font-size: 14px; cursor: pointer; padding: 0 8px !important; font-family: inherit; white-space: nowrap; }
.bt-seg button[aria-pressed="true"] { background: var(--an-seg-on, #fff) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: var(--an-ink, #0F172A) !important; }
.bt-seg button:disabled { opacity: .6; cursor: default; }

#botPanel .bt-cap { font-size: 12.5px; font-weight: 650; color: var(--an-ink2, #38425B); text-transform: none; letter-spacing: 0; margin: 14px 4px 6px; }
#botPanel .bt-grp, #btSheet .bt-grp { background: var(--an-card, var(--card, #fff)); border-radius: 14px; overflow: hidden; border: 0; box-shadow: var(--an-shadow, 0 1px 3px rgba(15, 17, 22, .04), 0 4px 12px rgba(15, 17, 22, .04)); width: 100%; max-width: 100%; }
#botPanel .bt-row, #btSheet .bt-row { display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 12px !important; min-height: 50px; padding: 8px 14px !important; margin: 0 !important; border: 0 !important; border-top: 1px solid var(--an-line-soft, #E5E5EA) !important; border-radius: 0 !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; background: transparent; color: inherit; font-family: inherit; font-size: 14.5px; text-align: left !important; white-space: normal !important; box-shadow: none !important; }
#botPanel .bt-row:first-child, #btSheet .bt-row:first-child { border-top: 0 !important; }
.bt-l { flex: 1 1 auto; font-weight: 650; min-width: 0; overflow-wrap: break-word; white-space: normal; line-height: 1.3; }
.bt-v { color: var(--an-mut, #5A6580); font-size: 13px; flex: 0 0 auto; white-space: nowrap; }
#botPanel .bt-blk { display: block !important; padding: 10px 12px !important; }
#botPanel .bt-t { border: 1px solid var(--an-fld-line, rgba(47,74,184,.16)) !important; background: var(--an-fld, #F6F8FB) !important; border-radius: 10px !important; text-align: left; font-size: 14.5px; flex: 0 1 200px; min-width: 0 !important; width: auto !important; max-width: 62% !important; height: 40px !important; min-height: 40px !important; line-height: 40px !important; margin: 0 !important; color: var(--an-ink, #0F172A); box-shadow: none !important; padding: 0 12px !important; }
#botPanel .bt-nav { cursor: pointer; }
#botPanel .bt-nav::after { content: "›"; font-size: 1.35rem; line-height: 1; color: #C7C7CC; flex: 0 0 auto; }
#botModal button:focus:not(:focus-visible), #btSheet button:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }

#botPanel .bt-sw { position: relative; display: block !important; width: 51px !important; min-width: 51px !important; height: 31px !important; flex: 0 0 51px !important; margin: 0 !important; padding: 0 !important; }
#botPanel .bt-sw input { position: absolute; inset: 0; opacity: 0; margin: 0 !important; cursor: pointer; width: 100% !important; height: 100% !important; min-height: 0 !important; }
#botPanel .bt-sw span { position: absolute !important; inset: 0 !important; width: auto !important; min-width: 0 !important; height: auto !important; border-radius: 16px; background: var(--an-seg, #D1D1D6); transition: background .2s; }
#botPanel .bt-sw span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
#botPanel .bt-sw input:checked + span { background: #34C759; }
#botPanel .bt-sw input:checked + span::after { transform: translateX(20px); }
#botPanel .bt-sw input:focus-visible + span, #botPanel button:focus-visible, #headerBotBtn:focus-visible { outline: 2px solid #16A34A; outline-offset: 2px; }

.bt-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
.bt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 4px 12px; border-radius: 999px; background: #E6F5EC; color: #146C3A; font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; }
.bt-chip button { width: 30px; height: 30px; flex: 0 0 auto; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: #146C3A; font-size: 1.1rem; cursor: pointer; }
.bt-add { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px dashed #A7DFBE; background: transparent; color: #146C3A; font-weight: 700; cursor: pointer; font-family: inherit; }
.bt-add:hover { background: rgba(22, 163, 74, .10); border-color: #16A34A; }
html[data-theme="dark"] .bt-add:hover { background: rgba(52, 211, 153, .14); }
.bt-in { flex: 1 1 140px; min-width: 0 !important; width: 100% !important; max-width: 100% !important; min-height: 42px !important; border: 1px solid #CBD5E1 !important; border-radius: 10px !important; background: #F8FAFC !important; padding: 0 12px !important; font-size: .92rem !important; color: var(--ink, #1C1C1E) !important; box-shadow: none !important; }
html[data-theme="dark"] .bt-in { background: rgba(255, 255, 255, .07) !important; border-color: rgba(255, 255, 255, .18) !important; color: #F1F5F9 !important; }
.bt-nota { font-size: .8rem; color: var(--muted, #5F6168); padding: 8px 14px; overflow-wrap: break-word; }
.bt-sil-form { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line-soft, #E5E5EA); width: 100%; }
.bt-sil-form .bt-in { flex: 1 1 140px !important; }
.bt-sil-btn { min-height: 42px !important; padding: 0 16px !important; border: 0 !important; border-radius: 10px !important; background: #16A34A !important; color: #fff !important; font-weight: 700; font-size: .9rem; cursor: pointer; font-family: inherit; white-space: nowrap; flex: 0 0 auto; }
.bt-sil-row { justify-content: space-between; }
.bt-sil-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.bt-sil-info .bt-l, .bt-sil-info .bt-v { overflow-wrap: anywhere; white-space: normal; }
html[data-theme="dark"] #botModal .bt-mclose { background: rgba(255, 255, 255, .10) !important; }
.bt-sil-del { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: #FEE2E2; color: #B91C1C; font-weight: 700; font-size: .84rem; cursor: pointer; font-family: inherit; flex: 0 0 auto; }
.bt-sil-del:hover { background: #FECACA; color: #991B1B; }
html[data-theme="dark"] .bt-sil-del { background: rgba(248, 113, 113, .16); color: #FCA5A5; }
html[data-theme="dark"] .bt-sil-del:hover { background: rgba(248, 113, 113, .24); color: #FCA5A5; }

#btToast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 9700; background: #1C1C1E; color: #fff; border-radius: 14px; padding: 0 6px 0 16px; min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
#btToast[hidden] { display: none; }
#btToast button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }

#btSheet, #btSheet * { box-sizing: border-box !important; }
#btSheet { position: fixed; inset: 0; z-index: 9650; background: rgba(28, 28, 30, .45); display: flex; align-items: flex-end; justify-content: center; }
#btSheet .bt-sh { background: var(--card, #fff); color: var(--ink, #1C1C1E); border-radius: 20px 20px 0 0; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; padding: 16px; box-shadow: 0 -8px 32px rgba(0, 0, 0, .18); font-variant-numeric: tabular-nums; }
#btSheet .bt-sh.bt-sh-rest { background: #F2F2F7; }
#btSheet h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--ink, #1C1C1E) !important; }
#btSheet .bt-msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; margin: 6px 0; line-height: 1.35; }
#btSheet .bt-msg.u { background: #E3E3E8; color: #1C1C1E; border-bottom-left-radius: 6px; }
#btSheet .bt-msg.b { background: #16A34A; color: #fff; margin-left: auto; border-bottom-right-radius: 6px; }
#btSheet .bt-close { width: 100%; min-height: 46px; margin-top: 10px; border: 0 !important; border-radius: 12px !important; background: #E6F5EC !important; color: #146C3A !important; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: none !important; }
html[data-theme="dark"] #btSheet .bt-close { background: rgba(22, 163, 74, .22) !important; color: #86EFAC !important; }
@media (min-width: 640px) { #btSheet { align-items: center; padding: 16px; } #btSheet .bt-sh { border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .bt-sw span, #botPanel .bt-sw span::after, #headerBotBtn { transition: none !important; } }

/* Pausa con hora de fin (estado único: Activo / En pausa / Desactivado) */
#botPanel .bt-sub { display: block; margin-top: 2px; font-weight: 400; font-size: .8rem; color: var(--muted, #5F6168); }
#botPanel .bt-pausa { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(245, 158, 11, .12); color: #92400E; font-size: .8rem; line-height: 1.4; overflow-wrap: break-word; }
#botPanel .bt-pausa b { font-weight: 700; }
#botPanel .bt-reanudar { display: inline; min-height: 0 !important; height: auto !important; padding: 10px 4px !important; margin: -10px -4px !important; border: 0 !important; background: transparent !important; color: inherit !important; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
#botPanel .bt-ult { margin: 10px 6px 0; font-size: .78rem; color: var(--muted, #5F6168); overflow-wrap: break-word; }
html[data-theme="dark"] #botPanel .bt-pausa { background: rgba(245, 158, 11, .16); color: #FCD34D; }

/* Fase 50 (Opción A): restricciones temporales «No agendar» + hoja secundaria */
#botPanel .bt-cap-flex, #btSheet .bt-cap-flex { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#botPanel .bt-cap-sub, #btSheet .bt-cap-sub { font-size: .75rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted, #5F6168); white-space: nowrap; flex: 0 0 auto; }
#btSheet .bt-cap { font-size: .74rem; font-weight: 700; color: var(--muted, #5F6168); text-transform: uppercase; letter-spacing: .04em; margin: 6px 6px 6px; }
.bt-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.bt-dot.amber { background: #D97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .16); }
.bt-regla-row { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 14px; border-top: 1px solid var(--line-soft, #E5E5EA); background: var(--card, #fff); width: 100%; min-width: 0; }
.bt-regla-row:first-child { border-top: 0; }
.bt-regla-info { flex: 1 1 auto; min-width: 0; }
.bt-regla-t { font-size: .9rem; font-weight: 700; color: var(--ink, #1C1C1E); line-height: 1.3; overflow-wrap: break-word; }
.bt-regla-m { font-size: .78rem; color: var(--muted, #5F6168); margin-top: 2px; line-height: 1.3; overflow-wrap: break-word; }
#botPanel .bt-row-add { color: #146C3A; font-weight: 700; font-size: .9rem; min-height: 48px; }
#botPanel .bt-row-add .bt-l { color: #146C3A; }
#botPanel .bt-row-add:hover, #botPanel .bt-nav:hover { background: rgba(15, 23, 42, .03); }
.bt-pill[hidden], .bt-custom-row[hidden] { display: none !important; }
#btSheet .bt-sh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#btSheet .bt-sh-head h3 { margin: 0; }
#btSheet .bt-sh-note { font-size: .8rem; color: var(--muted, #5F6168); margin: 0 0 12px; line-height: 1.4; }
#btSheet .bt-sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
#btSheet .bt-sh-opt { min-height: 54px; padding: 8px 12px !important; margin: 0 !important; border-radius: 12px !important; border: 1px solid var(--line-soft, #E5E5EA) !important; background: var(--card, #fff); color: var(--ink, #1C1C1E); font-family: inherit; text-align: left !important; cursor: pointer; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 2px !important; min-width: 0; white-space: normal !important; box-shadow: none !important; }
#btSheet .bt-sh-opt:hover { border-color: #16A34A !important; }
#btSheet .bt-sh-opt strong { font-size: .88rem; font-weight: 700; line-height: 1.25; }
#btSheet .bt-sh-opt span { font-size: .75rem; color: var(--muted, #5F6168); line-height: 1.25; }
#btSheet .bt-sh-opt.sel { border: 1.5px solid #F59E0B !important; background: #FFFBEB; }
#btSheet .bt-sh-opt.sel strong { color: #92400E; }
#btSheet .bt-sh-opt:disabled { opacity: .55; cursor: default; }
#btSheet .bt-sh-more { width: 100%; min-height: 44px; padding: 0 12px !important; margin: 0 0 10px !important; border: 1px dashed #CBD5E1 !important; border-radius: 12px !important; background: var(--card, #fff); color: var(--ink, #1C1C1E); font: 600 .84rem/1 inherit; cursor: pointer; white-space: normal !important; box-shadow: none !important; }
#btSheet .bt-custom-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; background: var(--card, #fff); border: 1px solid var(--line-soft, #E5E5EA); border-radius: 12px; margin-bottom: 10px; }
#btSheet .bt-custom-row label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--muted, #5F6168); min-width: 0; }
#btSheet .bt-custom-row select { min-height: 42px; width: 100%; min-width: 0; border: 1px solid #CBD5E1; border-radius: 8px; padding: 0 8px; font: 600 .84rem/1 inherit; background: #F8FAFC; color: var(--ink, #1C1C1E); }
#btSheet .bt-primary-sm { grid-column: 1 / -1; min-height: 44px; border: 0; border-radius: 10px; background: #16A34A; color: #fff; font: 700 .9rem/1 inherit; cursor: pointer; }
#btSheet .bt-primary-sm:disabled { opacity: .55; cursor: default; }
html[data-theme="dark"] #botPanel .bt-row-add, html[data-theme="dark"] #botPanel .bt-row-add .bt-l { color: #86EFAC; }
html[data-theme="dark"] #botPanel .bt-row-add:hover, html[data-theme="dark"] #botPanel .bt-nav:hover { background: rgba(255, 255, 255, .05); }
html[data-theme="dark"] #btSheet .bt-sh.bt-sh-rest { background: var(--panel, #1C1C1E) !important; }
html[data-theme="dark"] #btSheet .bt-sh-opt.sel { background: rgba(245, 158, 11, .16); border-color: #F59E0B; }
html[data-theme="dark"] #btSheet .bt-sh-opt.sel strong { color: #FCD34D; }
html[data-theme="dark"] #btSheet .bt-sh-more { border-color: rgba(255, 255, 255, .22); }
html[data-theme="dark"] #btSheet .bt-custom-row select { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #F1F5F9; }
