/* Recorrido interactivo SIAN — botón «Contenido» y visor de diapositivas */
.s-tour-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #1b6b43;
    border-radius: 8px; background: linear-gradient(135deg, #1f7a4d, #2ba8b8); color: #fff; font: inherit;
    font-size: .84rem; font-weight: 800; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(31, 122, 77, .35); transition: transform .15s, box-shadow .15s; position: relative;
}
.s-tour-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 122, 77, .45); }
.s-tour-btn:focus-visible { outline: 3px solid #9bcb3f; outline-offset: 2px; }
.s-tour-btn svg { width: 17px; height: 17px; }
.s-tour-btn::after {
    content: ''; position: absolute; inset: -4px; border-radius: 11px; border: 2px solid #9bcb3f; opacity: 0;
    animation: st-pulse 2.6s ease-out 1.2s 3;
}
@keyframes st-pulse { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.12); } }

.st-root, .st-root * { box-sizing: border-box; }
.st-root {
    --st-bg1: #04231a; --st-bg2: #0b4a35; --st-verde: #23855a; --st-lima: #9bcb3f; --st-agua: #2ba8b8;
    --st-papel: #f6faf7; --st-tinta: #123127; --st-suave: #5b7468;
    position: fixed; inset: 0; z-index: 2147483000; display: none; flex-direction: column; color: #fff;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.45;
    background: radial-gradient(1200px 700px at 85% -10%, rgba(43, 168, 184, .28), transparent 60%),
        radial-gradient(900px 600px at -10% 110%, rgba(155, 203, 63, .18), transparent 60%),
        linear-gradient(160deg, var(--st-bg1), var(--st-bg2));
}
.st-root.is-open { display: flex; animation: st-in .35s ease both; }
@keyframes st-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
body.st-lock { overflow: hidden; }

/* Barra superior */
.st-top { display: flex; align-items: center; gap: 14px; padding: 12px clamp(12px, 3vw, 28px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.st-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.st-brand b { color: var(--st-lima); }
.st-brand .st-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--st-lima), var(--st-agua)); color: #04231a; font-size: 1.15rem; }
.st-chapters { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.st-chapters::-webkit-scrollbar { display: none; }
.st-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: rgba(255, 255, 255, .72); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.st-chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.st-chip.is-on { background: var(--st-lima); border-color: var(--st-lima); color: #04231a; }
.st-chip.is-done { border-color: rgba(155, 203, 63, .55); color: #d8efae; }
.st-tools { display: flex; align-items: center; gap: 6px; }
.st-ib { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 1.05rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.st-ib:hover { background: rgba(255, 255, 255, .18); }
.st-ib[aria-pressed="true"] { background: var(--st-lima); color: #04231a; border-color: var(--st-lima); }
.st-ib:focus-visible, .st-chip:focus-visible, .st-nav button:focus-visible, .st-demo button:focus-visible, .st-demo select:focus-visible, .st-demo input:focus-visible { outline: 3px solid var(--st-lima); outline-offset: 2px; }

/* Escenario */
.st-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(14px, 2.5vw, 38px); padding: clamp(14px, 3vw, 34px) clamp(14px, 4vw, 56px); overflow: hidden; }
.st-text { min-height: 0; overflow-y: auto; padding-right: 8px; display: flex; flex-direction: column; }
.st-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.st-badge { padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(155, 203, 63, .18); color: var(--st-lima); border: 1px solid rgba(155, 203, 63, .45); }
.st-badge.acc-ses { background: rgba(43, 168, 184, .18); color: #8fe3ee; border-color: rgba(43, 168, 184, .5); }
.st-badge.acc-adm { background: rgba(255, 193, 7, .16); color: #ffd966; border-color: rgba(255, 193, 7, .45); }
.st-title { margin: 0 0 8px; font-size: clamp(1.55rem, 3.2vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.st-title .ic { display: inline-block; margin-right: 8px; }
.st-lead { margin: 0 0 14px; font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .86); }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.st-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s, background .3s; pointer-events: none; font-size: clamp(.9rem, 1.25vw, 1.05rem); }
.st-steps li.is-in { opacity: 1; transform: none; pointer-events: auto; }
.st-steps li.is-cur { background: rgba(155, 203, 63, .16); border-color: rgba(155, 203, 63, .55); }
.st-steps li .si { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(255, 255, 255, .1); }
.st-steps li b { color: var(--st-lima); }
.st-steps li code { background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.st-go { margin-top: 14px; display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--st-lima); color: #04231a; font-weight: 800; text-decoration: none; font-size: .9rem; }
.st-go:hover { filter: brightness(1.08); }
.st-hintdemo { margin-top: 12px; font-size: .82rem; color: rgba(255, 255, 255, .7); }
kbd, .st-key { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .35); border-bottom-width: 3px; background: rgba(255, 255, 255, .12); color: #fff; font: 700 .78rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }

/* Panel derecho */
.st-stage { min-height: 0; overflow-y: auto; border-radius: 20px; background: var(--st-papel); color: var(--st-tinta); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); position: relative; display: flex; flex-direction: column; }
.st-frame-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #e3eee7; border-bottom: 1px solid #cfe0d5; flex: none; }
.st-frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c4d6cb; display: inline-block; }
.st-frame-bar i:nth-child(1) { background: #ff6b5e; } .st-frame-bar i:nth-child(2) { background: #ffbf3f; } .st-frame-bar i:nth-child(3) { background: #3ccb57; }
.st-frame-bar span { flex: 1; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #cfe0d5; font-size: .76rem; color: #4a6556; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-stage-body { flex: 1; padding: clamp(12px, 2vw, 22px); min-height: 0; }
.st-stage-body h4 { margin: 0 0 8px; font-size: 1rem; color: var(--st-verde); }
.st-reveal { opacity: 0; transform: scale(.94) translateY(8px); transition: opacity .45s, transform .45s; }
.st-reveal.is-in { opacity: 1; transform: none; }
.st-reveal.is-cur { box-shadow: 0 0 0 3px var(--st-lima), 0 8px 22px rgba(35, 133, 90, .25); }

/* Tarjetas genéricas */
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.st-card { background: #fff; border: 1px solid #d5e5db; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.st-card .ci { font-size: 1.9rem; line-height: 1; }
.st-card strong { font-size: .95rem; }
.st-card small { color: var(--st-suave); font-size: .8rem; line-height: 1.35; }

/* Controles de demos */
.st-demo { display: grid; gap: 12px; }
.st-demo .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-btn { padding: 8px 14px; border-radius: 9px; border: 1px solid #b7d3c2; background: #fff; color: var(--st-tinta); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; transition: all .15s; }
.st-btn:hover { background: #eaf5ee; }
.st-btn.pri { background: var(--st-verde); border-color: var(--st-verde); color: #fff; }
.st-btn.pri:hover { background: #1a6d49; }
.st-btn.on { background: var(--st-verde); color: #fff; border-color: var(--st-verde); }
.st-btn[disabled] { opacity: .45; cursor: not-allowed; }
.st-demo label.st-chk { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #cfe0d5; border-radius: 9px; background: #fff; font-size: .84rem; cursor: pointer; }
.st-demo select, .st-demo input[type=text], .st-demo input[type=number] { padding: 7px 10px; border: 1px solid #b7d3c2; border-radius: 8px; font: inherit; font-size: .88rem; background: #fff; color: var(--st-tinta); }
.st-demo input[type=range] { accent-color: var(--st-verde); width: 100%; }
.st-log { background: #0f2a20; color: #cfeedd; border-radius: 10px; padding: 10px 12px; font: .78rem/1.5 ui-monospace, Menlo, monospace; max-height: 130px; overflow: auto; }
.st-log div { animation: st-in .3s both; }
.st-note { font-size: .8rem; color: var(--st-suave); }
.st-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: #e4f3ea; color: #1a6d49; }
.st-pill.warn { background: #fff1cf; color: #8a5a00; } .st-pill.bad { background: #fde1df; color: #a1261b; } .st-pill.info { background: #dff3f7; color: #146a77; }
.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-tbl { width: 100%; border-collapse: collapse; font-size: .82rem; background: #fff; border-radius: 10px; overflow: hidden; }
.st-tbl th, .st-tbl td { padding: 7px 9px; border-bottom: 1px solid #e1ece5; text-align: left; }
.st-tbl th { background: #e9f3ed; font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: #3a5a49; }
.st-tbl td.c, .st-tbl th.c { text-align: center; }
.st-map { width: 100%; height: auto; max-height: 330px; border-radius: 12px; background: linear-gradient(180deg, #dff1f6, #eaf6ee); border: 1px solid #cfe0d5; display: block; }
.st-chiplist { display: flex; flex-wrap: wrap; gap: 7px; }
.st-chiplist span { padding: 6px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #e9f3ed; color: #8aa396; border: 1px solid #d5e5db; transition: all .3s; }
.st-chiplist span.on { background: var(--st-verde); color: #fff; border-color: var(--st-verde); transform: scale(1.04); }
.st-flow { display: grid; gap: 8px; }
.st-node { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 2px solid #d5e5db; background: #fff; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: all .25s; }
.st-node .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e9f3ed; font-weight: 800; color: var(--st-verde); }
.st-node.on { border-color: var(--st-verde); background: #effaf3; }
.st-node.on .n { background: var(--st-verde); color: #fff; }
.st-node.done .n { background: var(--st-lima); color: #04231a; }
.st-node small { display: block; color: var(--st-suave); }

/* Chat de Viernes */
.st-chat { display: flex; flex-direction: column; gap: 10px; }
.st-chat-head { display: flex; align-items: center; gap: 12px; }
.st-avatar { width: 62px; height: 62px; border-radius: 50%; background: #fff center/cover no-repeat; border: 3px solid var(--st-lima); box-shadow: 0 6px 16px rgba(35, 133, 90, .3); transition: transform .3s, border-color .3s; flex: none; }
.st-avatar.talk { animation: st-bob .6s ease-in-out infinite alternate; }
.st-avatar.alert { border-color: #ff8a3d; }
@keyframes st-bob { to { transform: translateY(-5px) rotate(-3deg); } }
.st-msgs { display: flex; flex-direction: column; gap: 8px; min-height: 150px; max-height: 260px; overflow-y: auto; padding: 4px; }
.st-msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: .88rem; animation: st-in .3s both; }
.st-msg.u { align-self: flex-end; background: var(--st-verde); color: #fff; border-bottom-right-radius: 4px; }
.st-msg.b { align-self: flex-start; background: #fff; border: 1px solid #d5e5db; border-bottom-left-radius: 4px; }
.st-msg .src { display: block; margin-top: 6px; font-size: .74rem; color: var(--st-suave); }
.st-msg .av { display: block; margin-top: 6px; font-size: .74rem; padding: 4px 8px; border-radius: 8px; background: #fff7e0; color: #7a5200; }
.st-typing::after { content: '…'; animation: st-dots 1s steps(4, end) infinite; }
@keyframes st-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Pie */
.st-foot { border-top: 1px solid rgba(255, 255, 255, .12); padding: 10px clamp(12px, 3vw, 28px) 12px; display: grid; gap: 8px; }
.st-prog { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; cursor: pointer; }
.st-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--st-lima), var(--st-agua)); transition: width .4s; }
.st-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-nav { display: flex; align-items: center; gap: 8px; }
.st-nav button { padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.st-nav button:hover { background: rgba(255, 255, 255, .2); }
.st-nav .st-next { background: var(--st-lima); color: #04231a; border-color: var(--st-lima); }
.st-nav .st-next:hover { filter: brightness(1.08); }
.st-nav button[disabled] { opacity: .4; cursor: default; }
.st-count { font-size: .82rem; color: rgba(255, 255, 255, .8); min-width: 150px; }
.st-time { font-size: .8rem; color: rgba(255, 255, 255, .7); }
.st-keys { margin-left: auto; font-size: .76rem; color: rgba(255, 255, 255, .7); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Índice y ayuda */
.st-panel { position: absolute; inset: 0; z-index: 5; display: none; background: rgba(2, 20, 14, .94); backdrop-filter: blur(6px); overflow-y: auto; padding: clamp(16px, 4vw, 48px); }
.st-panel.is-open { display: block; animation: st-in .25s both; }
.st-panel h2 { margin: 0 0 16px; font-size: 1.5rem; }
.st-panel .x { position: absolute; top: 14px; right: 18px; }
.st-idx { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.st-idx section { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px; }
.st-idx h3 { margin: 0 0 8px; font-size: .95rem; color: var(--st-lima); }
.st-idx button { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; color: #fff; font: inherit; font-size: .86rem; cursor: pointer; }
.st-idx button:hover, .st-idx button.cur { background: rgba(155, 203, 63, .2); }
.st-helpgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 28px; max-width: 900px; }
.st-helpgrid div { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.st-helpgrid kbd { min-width: 64px; }

.st-toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 6; background: #fff; color: var(--st-tinta); border-radius: 12px; padding: 10px 14px; display: none; gap: 10px; align-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); font-size: .88rem; }
.st-toast.is-open { display: flex; }

/* Teclado ilustrado */
.st-kbd { display: grid; gap: 16px; justify-items: center; padding: 10px; }
.st-kbd .big { display: grid; grid-template-columns: repeat(3, 70px); grid-template-rows: repeat(2, 64px); gap: 8px; }
.st-kbd .kc { display: grid; place-items: center; border-radius: 12px; font-size: 1.6rem; font-weight: 800; background: linear-gradient(#fff, #e3efe8); border: 1px solid #b7d3c2; border-bottom-width: 5px; color: var(--st-tinta); box-shadow: 0 6px 14px rgba(0, 0, 0, .12); animation: st-key 2.8s ease-in-out infinite; }
.st-kbd .kc:nth-child(1) { grid-column: 2; animation-delay: 0s; } .st-kbd .kc:nth-child(2) { grid-column: 1; grid-row: 2; animation-delay: .7s; }
.st-kbd .kc:nth-child(3) { animation-delay: 1.4s; } .st-kbd .kc:nth-child(4) { animation-delay: 2.1s; }
@keyframes st-key { 0%, 70%, 100% { transform: none; } 12%, 24% { transform: translateY(4px); border-bottom-width: 1px; background: var(--st-lima); } }
.st-kbd .space { width: 280px; max-width: 100%; height: 54px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(#fff, #e3efe8); border: 1px solid #b7d3c2; border-bottom-width: 5px; color: var(--st-tinta); }

@media (max-width: 860px) {
    .st-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); overflow-y: auto; }
    .st-text { overflow: visible; }
    .st-stage { min-height: 360px; }
    .st-keys { display: none; }
    .st-brand span.t { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .st-root *, .st-root *::before, .st-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .s-tour-btn::after { display: none; }
}
@media print { .st-root, .s-tour-btn { display: none !important; } }

/* Solo logos de Corponariño: emblema en lugar de emojis */
.st-brand img.st-logo { width: auto; height: 30px; border-radius: 0; background: none; display: block; }
.st-emb { width: 1.6em; height: 1.6em; object-fit: contain; flex: none; }
.st-title { display: flex; align-items: center; gap: 12px; }
.st-title .st-emb-t { width: 1.25em; height: 1.25em; }
.st-card .ci { line-height: 0; }
.st-card .ci img { width: 34px; height: 34px; }
.st-card .ci:empty, .st-steps li .si:empty { display: none; }
.st-steps li .si { font-weight: 800; font-size: .95rem; color: var(--st-lima); }
.st-chip .st-num { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: .68rem; font-weight: 800; }
.st-chip.is-on .st-num { background: rgba(4, 35, 26, .18); }
.st-ib { width: auto; min-width: 38px; padding: 0 12px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .st-ib { padding: 0 8px; font-size: .72rem; } .st-tools { gap: 4px; } }

/* Tabla de contenido de la primera diapositiva */
.st-toc { margin-top: 4px; display: grid; gap: 8px; }
.st-toc h3 { margin: 0 0 2px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--st-lima); }
.st-toc-cap { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 10px; }
.st-toc-h { display: flex; align-items: center; gap: 9px; width: 100%; padding: 2px 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; text-align: left; }
.st-toc-h small { margin-left: auto; font-weight: 600; color: rgba(255, 255, 255, .6); }
.st-toc-h .st-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--st-lima); color: #04231a; font-size: .75rem; font-weight: 800; flex: none; }
.st-toc-l { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 4px 0 0 31px; }
.st-toc-l button { padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: rgba(255, 255, 255, .8); font: inherit; font-size: .76rem; cursor: pointer; }
.st-toc-l button:hover, .st-toc-h:hover { color: var(--st-lima); border-color: var(--st-lima); }
.st-toc button:focus-visible { outline: 3px solid var(--st-lima); outline-offset: 2px; }

/* ───────── Responsive total (teléfono y tablet) ───────── */
.st-root { height: 100vh; height: 100dvh; -webkit-tap-highlight-color: transparent; padding-bottom: env(safe-area-inset-bottom); }
.st-stage-body { overflow-x: auto; }
.st-demo-btn { display: none; }
.st-demo-btn.is-on { display: inline-block; }
.st-touch-hint { display: none; text-align: center; max-width: 320px; font-size: .95rem; }
.st-swipe { display: none; }

@media (max-width: 860px) {
    .st-top { flex-wrap: wrap; gap: 8px 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
    .st-brand { order: 1; }
    .st-tools { order: 2; margin-left: auto; gap: 5px; }
    .st-tools [data-a="narr"], .st-tools [data-a="help"], .st-tools [data-a="full"] { display: none; }
    .st-ib { height: 36px; min-width: 36px; padding: 0 10px; font-size: .78rem; }
    .st-chapters { order: 3; flex: 1 1 100%; }
    .st-brand span.t { display: inline; font-size: .9rem; }

    .st-main { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 14px 18px; }
    .st-text { overflow: visible; padding-right: 0; }
    .st-stage { overflow: visible; margin-top: 16px; min-height: 0; border-radius: 16px; }
    .st-stage-body { padding: 12px; }
    .st-title { font-size: 1.45rem; gap: 10px; }
    .st-lead { font-size: .98rem; margin-bottom: 10px; }
    .st-steps li { font-size: .92rem; padding: 8px 10px; grid-template-columns: 30px 1fr; gap: 8px; }
    .st-steps li .si { width: 30px; height: 30px; }
    .st-hintdemo { font-size: .8rem; }
    .st-go { width: 100%; justify-content: center; }

    .st-foot { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); gap: 6px; }
    .st-bar { gap: 6px 10px; }
    .st-nav { flex: 1 1 100%; }
    .st-nav button { flex: 1; min-height: 44px; font-size: .95rem; }
    .st-nav .st-demo-btn.is-on { flex: 0 0 auto; }
    .st-count { min-width: 0; font-size: .76rem; }
    .st-time { font-size: .74rem; margin-left: auto; text-align: right; }

    .st-toast { position: fixed; left: 12px; right: 12px; bottom: calc(118px + env(safe-area-inset-bottom)); transform: none; max-width: none; flex-wrap: wrap; justify-content: space-between; }
    .st-panel { padding: 56px 14px 20px; }
    .st-idx { grid-template-columns: 1fr; }
    .st-helpgrid { grid-template-columns: 1fr; }
    .st-panel .x { top: calc(10px + env(safe-area-inset-top)); }

    .st-grid2 { grid-template-columns: 1fr; }
    .st-cards { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .st-tbl { min-width: 0; }
    .st-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
    .st-scroll .st-tbl { min-width: 460px; }
    .st-demo > * { min-width: 0; }
    .st-map { max-height: 260px; }
    .st-msgs { max-height: 220px; }
    .st-demo .row { gap: 6px; }
    .st-btn { padding: 9px 12px; }
    .st-demo select, .st-demo input[type=text], .st-demo input[type=number] { font-size: 16px; min-height: 40px; }
    .st-toc-l { margin-left: 0; }
}
@media (max-width: 420px) {
    .st-brand img.st-logo { height: 24px; }
    .st-brand span.t { display: none; }
    .st-title { font-size: 1.3rem; }
    .st-kicker .st-badge { font-size: .66rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .st-top { padding-top: 4px; padding-bottom: 4px; }
    .st-foot { padding-top: 4px; }
    .st-nav button { min-height: 36px; }
}
@media (hover: none) and (pointer: coarse) {
    .st-keys { display: none; }
    .st-kbd .big, .st-kbd .space, .st-kbd .st-note { display: none; }
    .st-kbd .st-touch-hint { display: block; }
    .st-kbd .st-swipe { display: grid; place-items: center; width: 160px; height: 100px; border-radius: 18px; background: linear-gradient(#fff, #e3efe8); border: 1px solid #b7d3c2; font-size: 2rem; font-weight: 800; color: var(--st-tinta); animation: st-swipe 2.4s ease-in-out infinite; }
}
@keyframes st-swipe { 0%, 100% { transform: translateX(-26px); } 50% { transform: translateX(26px); } }
@media (max-width: 860px) {
    .st-kbd .big, .st-kbd .space { display: none; }
    .st-kbd .st-touch-hint { display: block; }
    .st-kbd .st-swipe { display: grid; place-items: center; width: 160px; height: 90px; border-radius: 18px; background: linear-gradient(#fff, #e3efe8); border: 1px solid #b7d3c2; font-size: 2rem; font-weight: 800; color: var(--st-tinta); animation: st-swipe 2.4s ease-in-out infinite; }
}
@media (max-width: 860px) { .st-kbd .st-note { display: none; } }
