/* Ayuda: el mismo panel, tipografía y acciones del sistema Clavis. */
.sheet-content.help-content { display:flex; flex-direction:column; overflow:hidden; }
.clavis-help { display:flex; flex-direction:column; flex:1; min-height:0; color:var(--cl-tinta,#291039); }
.clavis-help h2 { margin:0 0 8px; font-size:24px; font-weight:500; letter-spacing:-.6px; }
.clavis-help .help-topics { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; max-height:140px; overflow:auto; }
.clavis-help .help-topic { padding:7px 12px; font-size:13px; margin:0; }
.clavis-help .help-themes { flex-shrink:0; margin:8px 0; }
.clavis-help .help-themes summary { cursor:pointer; font-size:14px; font-weight:500; padding:6px 0; }
.clavis-help .help-log { min-height:60px; flex:1; overflow:auto; overscroll-behavior:contain; padding-right:4px; }
.clavis-help .help-label { color:var(--cl-tinta,#291039); font-weight:500; margin:0 0 8px; font-size:14px; }
.clavis-help .help-options { margin:20px 0; }
.clavis-help .help-question { display:block; width:100%; text-align:left; padding:13px 0; border:0; border-bottom:1px solid var(--cl-borde,#e8e0ec); border-radius:0; background:transparent; color:inherit; font-size:14px; font-weight:400; line-height:1.5; }
.clavis-help .help-question,.clavis-help .help-question:hover { box-shadow:none; transform:none; }
.clavis-help .help-question:hover { background:var(--cl-lila-suave,#f3edf5); }
.clavis-help .help-user { width:fit-content; max-width:95%; margin:24px 0 16px auto; padding:10px 14px; border-radius:16px 16px 3px 16px; background:var(--cl-lila,#e9d5fb); overflow-wrap:anywhere; font-size:14px; }
.clavis-help .help-answer { margin:16px 0 24px; overflow-wrap:anywhere; }
.clavis-help .help-answer p { margin:0 0 12px; }
.clavis-help .help-destination { margin:4px 0 0; }
.clavis-help .help-form { flex-shrink:0; margin:16px 0 0; padding:12px 0 0; background:#fbf9fc; border-top:1px solid var(--cl-borde,#e8e0ec); }
.clavis-help .help-input { display:flex; align-items:stretch; gap:8px; }
.clavis-help .help-input input { min-width:0; flex:1; width:auto; margin:0; font-size:16px; }
.clavis-help .help-input button { flex:0 0 auto; margin:0; padding-inline:16px; }
.clavis-help .help-footer { display:flex; flex-wrap:wrap; gap:12px 18px; flex-shrink:0; margin-top:14px; padding-bottom:0; }
.clavis-help .help-footer :is(button,a) { font-size:13px; font-weight:400; margin:0; }
@media(max-width:600px) {  .clavis-help .help-input input { flex-basis:0; }.clavis-help .help-input button { padding-inline:12px; }.clavis-help .help-input button { min-height:44px; }.clavis-help .help-topic { min-height:40px; } }

/* La conversación tiene prioridad sobre la bienvenida y el teclado. */
.clavis-help.help-chatting .help-intro,.clavis-help.help-compact .help-intro { display:none; }
.clavis-help.help-compact .help-footer { display:none; }
.clavis-help.help-compact .help-form { margin-top:8px; padding-top:8px; }
.clavis-help.help-compact .help-form label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.clavis-help.help-compact .help-themes { margin:0 0 6px; }
.clavis-help .help-answer:focus,.clavis-help .help-options:focus { outline:none; }
.clavis-help .help-answer,.clavis-help .help-options { scroll-margin-top:8px; }
.clavis-app #modal-backdrop .clavis-help #help-query:focus-visible { outline:2px solid var(--cl-ciruela,#39103f); outline-offset:2px; box-shadow:none; }
@media(max-width:680px) { .clavis-help.help-typing .help-intro,.clavis-help.help-typing .help-footer { display:none; } }

.clavis-help .help-tour { flex-shrink:0; margin:4px 0 12px; font-size:14px; line-height:1.5; }
.clavis-help .help-tour[hidden] { display:none; }
.clavis-help .help-tour button { display:inline-flex; align-items:center; justify-content:center; margin:8px 0 0; min-height:44px; padding:10px 18px; font-size:13px; font-weight:500; }
.clavis-help.help-compact .help-tour { display:none; }
@media(max-width:680px) { .clavis-help .help-tour { display:none; } }
