/* FarmacoBox · misma superficie, tipografía y jerarquía que la biblioteca */
:root,:root[data-theme="light"]{--font-body:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;--font-display:var(--font-body);--stage-1:#fafafa;--stage-2:#fafafa;--surface:#fff;--surface-2:#f1f3f6;--surface-paper:#fff;--ink:#222a35;--ink-2:#526071;--muted:#737d8c;--line:#e4e8ee;--line-2:#d8dfe8;--red-soft:#ecf2fc;--shadow-color:#18293f12;--blue:#2463bd;--purple:#2463bd;--grad:#2c3a4e;--grad-soft:#f0f3f8;--ui-action:#2c3a4e;--ui-selected:#eaf0f8;--ui-selected-ink:#265a9b;--scrim:#17243845}
:root[data-theme="dark"]{--stage-1:#15181e;--stage-2:#15181e;--surface:#1d222b;--surface-2:#252c37;--surface-paper:#1d222b;--ink:#e9edf4;--ink-2:#bbc5d5;--muted:#99a6b8;--line:#333c49;--line-2:#445063;--ui-action:#c4d4ee;--ui-selected:#27374c;--ui-selected-ink:#b7d1fa;--grad:#3d526f;--grad-soft:#253248;--shadow-color:#0002;--scrim:#05090b88;color-scheme:dark}
html{font-size:16px;background:var(--stage-1);scrollbar-width:thin;scrollbar-color:#c8ced8 transparent}body{font-family:var(--font-body)!important;font-size:16px!important;background:var(--stage-1)!important;background-image:none!important;margin:0!important;padding:0!important;min-height:100dvh!important;overflow-x:hidden}
button,input,select,textarea{font-family:var(--font-body)!important}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible{outline:2px solid #7096cd!important;outline-offset:3px!important}button,input,select{font-size:1rem}button:disabled{cursor:not-allowed}button:not(.skin-chip):not(.accent-chip){letter-spacing:0!important}b,strong{font-weight:600}
.bg-mesh,.bg-particles,.spotlight,#spotlight,#bg-particles,.flash,.particle,.mode-banner,.fa-footer,#fbx-social,.brand,.topbar__center,#estudio-tabs,.ficha__watermark,.ficha__name-underline,.tab-new{display:none!important}
.topbar,.fbx-integrated .topbar{position:sticky!important;top:0!important;display:flex!important;min-height:64px!important;height:auto!important;width:100%!important;padding:10px 10px!important;margin:0!important;gap:10px!important;background:var(--stage-1)!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;backdrop-filter:none!important;z-index:40!important}
.topbar__right,.fbx-integrated .topbar__right{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;width:100%!important;min-width:0!important;flex-wrap:wrap!important}
.tool-title{font-family:var(--font-body);font-size:1rem!important;font-weight:600!important;letter-spacing:-.02em!important;line-height:1.4;margin:0 auto 0 0;color:var(--ink)}
.iconbtn,.btn-temas,.search-pill{border:1px solid var(--line)!important;background:var(--surface)!important;color:var(--ink-2)!important;border-radius:9px!important;box-shadow:none!important;min-height:40px!important;font-weight:500!important;transform:none!important;font-size:.875rem!important;gap:7px!important}
#btn-config,#btn-hist{display:inline-flex!important;width:auto!important;align-items:center!important;padding:8px 11px!important;position:relative}#btn-config>svg,#btn-hist>svg{width:17px!important;height:17px!important}#btn-config:hover,#btn-hist:hover,.btn-temas:hover{background:var(--surface-2)!important}.hist-badge{background:var(--ui-selected)!important;color:var(--ui-selected-ink)!important;border-radius:5px!important;font-size:.75rem!important;position:static!important;order:2;box-shadow:none!important;min-width:18px;height:18px;padding:1px 4px}.btn-temas{padding:8px 12px!important}.btn-temas .cnt{background:transparent!important;color:var(--muted)!important;font-size:.75rem!important}
body:not([data-tool="caja"]):not([data-tool="caja-estudio"]) .hist-wrap,body:not([data-tool="caja"]):not([data-tool="caja-estudio"]) #btn-temas{display:none!important}
.cfg-wrap{order:5}.hist-wrap{order:3}#btn-temas{order:2}.cfg-panel{width:320px!important;max-width:calc(100vw - 30px)!important;right:0!important;top:calc(100% + 10px)!important;border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:0 16px 45px var(--shadow-color)!important;background:var(--surface)!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;padding:18px!important}.cfg-h{font-size:.875rem!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;color:var(--ink-2)!important;margin-bottom:10px!important}.cfg-sec{padding:14px 0!important}.cfg-sec:first-child{padding-top:0!important}.cfg-opt{font-size:.875rem!important;min-height:40px!important;border-radius:8px!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--ink-2)!important;font-weight:500!important;box-shadow:none!important}.cfg-opt.active{background:var(--ui-selected)!important;color:var(--ui-selected-ink)!important;border-color:#a4bad8!important}.settings-utilities{display:flex;flex-wrap:wrap;gap:8px}.settings-utilities .cfg-h{width:100%}.settings-utilities .iconbtn{width:auto!important;padding:8px 10px!important;gap:8px!important}.settings-utilities .search-pill{width:100%!important;justify-content:flex-start!important}.settings-utilities .search-pill span{display:inline!important}.settings-utilities .search-pill kbd{display:none!important}.classic-toggle{display:flex;gap:10px;align-items:center;font-size:.875rem;line-height:1.5;cursor:pointer}.classic-toggle input{width:18px;height:18px}
.standalone-tools{display:flex;overflow:auto;gap:4px;padding:12px max(16px,calc((100vw - 1040px)/2));background:var(--surface);border-bottom:1px solid var(--line)}.standalone-tools button{font-size:.875rem;min-height:40px;white-space:nowrap;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:var(--muted)}.standalone-tools [aria-selected=true]{background:var(--ui-selected);color:var(--ui-selected-ink)}
.stage,.fbx-integrated .stage{display:flex!important;position:relative!important;align-items:center!important;justify-content:flex-start!important;min-height:0!important;height:auto!important;width:100%!important;max-width:1100px!important;margin:0 auto!important;padding:28px 10px 20px!important;transform-style:flat!important;scroll-margin-top:74px!important;gap:0!important}
.random-pool{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;max-width:650px;margin:12px auto 22px}.seg{background:var(--surface-2)!important;border:0!important;padding:3px!important;border-radius:10px!important;box-shadow:none!important}.seg__btn{min-height:39px!important;display:flex;align-items:center;gap:8px;padding:8px 13px!important;color:var(--muted)!important;font-size:.875rem!important;font-weight:500!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important}.seg__btn.active{background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 1px 3px #00000008!important}.seg__cnt{font-size:.75rem!important;background:none!important;color:var(--muted)!important}.stat{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:6px!important}.stat__ic{display:none!important}.stat__txt{display:flex!important;flex-direction:row!important;align-items:center;gap:6px}.stat__num{font-size:.875rem!important;font-weight:550!important;color:var(--ink-2)!important}.stat__lbl{font-size:.875rem!important;text-transform:lowercase!important;color:var(--muted)!important;letter-spacing:0!important}
body:not([data-tool="caja"]):not([data-tool="caja-estudio"]) .random-pool{display:none!important}
html:not(.fbx-classic-box) #scene{width:100%!important;max-width:650px!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;margin:0 auto!important;transform:none!important;perspective:none!important;animation:none!important;filter:none!important;cursor:pointer!important}
html:not(.fbx-classic-box) #scene>.cube,html:not(.fbx-classic-box) #scene>.box-shadow,html:not(.fbx-classic-box) #scene>.fa-giftbox-wrap,html:not(.fbx-classic-box) #scene::before,html:not(.fbx-classic-box) #scene::after{display:none!important}
.random-card{display:flex;align-items:flex-start;flex-direction:column;gap:14px;padding:40px;border:1px solid var(--line-2);border-radius:18px;background:var(--surface);box-shadow:none;transition:border-color .15s,background .15s;text-align:left}.random-card-eyebrow{color:var(--muted);font-size:.75rem;font-weight:500;letter-spacing:.08em}.random-card>strong{font-size:2rem;line-height:1.25;font-weight:600;letter-spacing:-.035em;color:var(--ink)}.random-card-copy{font-size:1rem;line-height:1.65;color:var(--muted)}.random-card-action{display:flex;align-items:center;gap:20px;background:var(--ui-action);color:var(--surface);border-radius:10px;padding:13px 19px;margin-top:14px;min-height:47px;font-size:.9375rem;font-weight:550}.random-card-action svg{width:18px;height:18px}#scene:hover .random-card{border-color:#98abc6}#scene:active .random-card{background:var(--surface-2)}#scene.disabled .random-card{opacity:.5}#scene.spinning .random-card-action,#scene.shaking .random-card-action{opacity:.6}.fbx-classic-box .random-card{display:none}.fbx-classic-box #scene{margin:20px auto!important}.fbx-classic-box #scene{animation:none!important}
#skin-picker{display:none!important}#hint{margin:20px 0!important;padding:0 12px!important;font-size:.8125rem!important;line-height:1.6;color:var(--muted)!important;text-align:center}.key{background:var(--surface-2)!important;border:1px solid var(--line)!important;border-radius:5px!important;box-shadow:none!important}.stats-panel{max-width:650px!important;width:100%;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;padding:20px 0!important;box-shadow:none!important}.stats-panel h4{font-size:.875rem!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}
/* Library search opens on the search field, without a decorative hero. */
#fs-panel,body[data-fbx-mode="farmasearch"] #fs-panel,body[data-fbx-mode="farmasearch"] #fs-panel.fs-focus-ficha{width:100%!important;max-width:940px!important;margin:0 auto!important;padding:0!important;display:block!important;background:transparent!important;border:0!important;box-shadow:none!important}
#fs-panel[hidden]{display:none!important}.fs-hero{display:none!important}.fs-input{height:54px!important;min-height:54px!important;padding:0 46px 0 46px!important;font-size:1rem!important;border-radius:11px!important;border:1px solid var(--line)!important;background:var(--surface)!important;box-shadow:none!important;color:var(--ink)!important}.fs-input:focus{border-color:#88a7d0!important;box-shadow:0 0 0 3px #2463bd10!important}.fs-searchbox-ic{left:16px!important;width:19px!important;height:19px!important;color:var(--muted)!important}.fs-clear{right:10px!important}.fs-searchbox{margin:0 0 22px!important}.fs-suggest{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:0 10px 35px var(--shadow-color)!important;max-height:min(420px,65dvh)!important}.fs-suggest-item{font-size:1rem!important;line-height:1.5!important;padding:13px 16px!important;border-radius:0!important}.fs-suggest-item.active{background:var(--ui-selected)!important;color:var(--ink)!important;box-shadow:none!important}.fs-sistemas{margin:24px 0 0!important;text-align:left!important}.fs-sistemas-head{text-align:left!important;font-size:.875rem!important;letter-spacing:0!important;color:var(--muted)!important}.fs-explore-grid{gap:12px!important}.fs-explore-sel,.fs-sistemas-sel{height:46px!important;font-size:1rem!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--surface)!important;color:var(--ink-2)!important}.fs-sistemas-list{justify-content:flex-start!important}.fs-ficha,.fs-focus-ficha .fs-ficha{padding:22px 0!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.fs-ficha-name{font-size:1.875rem!important;font-weight:600!important;letter-spacing:-.03em!important;line-height:1.3!important;color:var(--ink)!important;background:none!important;-webkit-text-fill-color:var(--ink)!important}.fs-ficha-body,.fs-focus-ficha .fs-ficha-body{padding:20px 0!important;max-height:none!important;overflow:visible!important}.fs-focus-ficha .fs-ficha-body .acc{display:block!important}.fs-ficha-tags{gap:7px!important}.fs-ficha-source{font-size:.8125rem!important;color:var(--muted)!important}
/* Questions and spaced repetition: light dividers, clear selected states. */
.fb-panel,.matb-panel,.srs-panel{width:100%!important;max-width:940px!important;margin:0 auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}.fb-head{display:none!important}.fb-section{padding:0!important;margin:0 0 26px!important;border:0!important;background:transparent!important;box-shadow:none!important}.fb-section-title{font-size:1rem!important;font-weight:550!important;color:var(--ink)!important;letter-spacing:-.01em!important;margin-bottom:13px!important}.fb-tema-chips{gap:8px!important}.fb-tema-chip{font-size:.875rem!important;border:1px solid var(--line)!important;border-radius:9px!important;padding:10px 13px!important;min-height:42px!important;background:var(--surface)!important;color:var(--ink-2)!important;font-weight:500!important;box-shadow:none!important}.fb-tema-chip.sel,.fb-num.sel,.fb-modo.sel{background:var(--ui-selected)!important;border:1px solid #a0b5d0!important;color:var(--ui-selected-ink)!important;box-shadow:none!important}.fb-num{font-size:.9375rem!important;min-height:43px!important;background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:none!important;border-radius:9px!important;color:var(--ink-2)!important}.fb-modo{padding:18px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:none!important;transform:none!important}.fb-modo-name{font-size:1rem!important;font-weight:550!important}.fb-modo-desc{font-size:.875rem!important;line-height:1.65!important;color:var(--ink-2)!important}.fb-start-row{margin:20px 0!important;gap:12px!important}.btn{min-height:44px!important;padding:11px 16px!important;font-size:.9375rem!important;line-height:1.4!important;font-weight:500!important;border-radius:10px!important;box-shadow:none!important;transform:none!important}.btn--primary,.btn--primary:hover{background:var(--ui-action)!important;color:var(--surface)!important;border:1px solid transparent!important}.btn--ghost{background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--ink-2)!important}.mini-btn{min-height:37px!important;font-size:.875rem!important;border-radius:8px!important;box-shadow:none!important;background:var(--surface)!important;color:var(--ink-2)!important}.fb-pregunta{background:var(--surface)!important;border:1px solid var(--line)!important;padding:26px!important;border-radius:14px!important;box-shadow:none!important}.fb-pregunta-text,.fb-opcion-text,.fb-explicacion{font-size:1rem!important;line-height:1.8!important}.fb-opcion{border-radius:10px!important;padding:15px!important;font-size:1rem!important;font-weight:400!important;box-shadow:none!important;transform:none!important}.fb-progress{height:4px!important;background:var(--line)!important}.fb-progress-bar{background:var(--blue)!important;box-shadow:none!important}.fb-card{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;box-shadow:none!important}.fb-card-label,.fb-card-sub{font-size:.875rem!important;color:var(--muted)!important}.fb-card-value,.fb-card-value-xl{color:var(--ink)!important;font-weight:600!important;letter-spacing:-.03em!important}.fb-dash-h{font-size:1rem!important;font-weight:550!important}.fb-dash-help{font-size:.875rem!important;line-height:1.6}
.srs-reco{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important;padding:22px!important;margin:20px 0 28px!important}.srs-reco-ic{display:none!important}.srs-reco-h{font-size:1.125rem!important;font-weight:550!important;letter-spacing:-.02em!important}.srs-reco-p{font-size:1rem!important;line-height:1.7!important;color:var(--muted)!important}.srs-reco-btn{margin-top:10px!important}.srs-stat-strip{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:0 0 20px!important;box-shadow:none!important}.srs-section-h{font-size:1rem!important;font-weight:550!important;letter-spacing:0!important;text-transform:none!important}.srs-deck{border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;padding:17px 0!important}.srs-deck-name{font-size:1rem!important;white-space:normal!important;font-weight:550!important;color:var(--ink)!important}.srs-deck-sub,.srs-deck-count{font-size:.875rem!important}.srs-card{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:none!important;padding:28px!important}.srs-card-front{font-size:2rem!important;line-height:1.3!important;letter-spacing:-.03em!important;font-weight:600!important}.srs-card-hint{font-size:.875rem!important;line-height:1.7!important;color:var(--muted)!important}.srs-card-back{font-size:1rem!important;line-height:1.8!important}.srs-grade{border-radius:9px!important;min-height:53px!important;box-shadow:none!important;font-weight:500!important}.srs-grade-l{font-size:.875rem!important;line-height:1.4!important}.srs-grade-i{font-size:.75rem!important}.srs-rev-back{font-size:.875rem!important;min-height:40px!important}.srs-done-h{font-size:1.75rem!important;font-weight:550!important}
.matb-tabs{display:flex!important;flex-wrap:nowrap!important;overflow:auto!important;gap:18px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:0 0 10px!important;box-shadow:none!important;margin-bottom:22px!important}.matb-tab{font-size:.875rem!important;padding:10px 0!important;min-height:42px!important;white-space:nowrap!important;background:transparent!important;color:var(--muted)!important;border:0!important;border-radius:0!important;box-shadow:none!important}.matb-tab.active{background:transparent!important;color:var(--ink)!important;box-shadow:inset 0 -2px var(--ink)!important;font-weight:550!important}.matb-content{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}.matb-card{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important}.matb-panel select,.matb-panel input{font-size:1rem!important;min-height:44px!important;border-radius:9px!important}.matb-panel h2,.matb-panel h3{font-weight:550!important;letter-spacing:-.02em!important}
/* Clinical cards keep semantic colors for warnings, answers and antibiotic coverage. */
.overlay{background:var(--scrim)!important;backdrop-filter:blur(3px)!important;padding:18px!important;z-index:100!important}.ficha{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px!important;max-height:calc(100dvh - 36px)!important;box-shadow:0 14px 60px var(--shadow-color)!important}.ficha__head{padding:28px 28px 16px!important;background:var(--surface)!important}.ficha__name{font-size:2rem!important;line-height:1.3!important;font-weight:600!important;letter-spacing:-.03em!important;color:var(--ink)!important;background:none!important;-webkit-text-fill-color:var(--ink)!important}.ficha-actions{padding:0 28px 18px!important;gap:12px!important}.btn-estudio-toggle,.btn-timer-toggle{background:var(--surface-2)!important;border:1px solid var(--line)!important;box-shadow:none!important;border-radius:10px!important;color:var(--ink)!important;padding:12px 16px!important;min-height:54px!important}.btn-estudio-txt,.btn-timer-val{font-size:1rem!important;font-weight:550!important;color:var(--ink)!important}.btn-estudio-hint,.btn-timer-lbl{font-size:.8125rem!important;color:var(--muted)!important}.btn-estudio-ico,.btn-timer-ico{background:transparent!important;color:var(--ink-2)!important;box-shadow:none!important}.ficha__body{padding:0 28px 20px!important;overflow:auto!important;min-height:0!important}.ficha__foot{padding:14px 24px!important;border-top:1px solid var(--line)!important;background:var(--surface)!important;gap:8px!important;flex-wrap:wrap!important}.ficha__source{font-size:.8125rem!important;color:var(--muted)!important}.acc{gap:10px!important}.acc-item{border:1px solid var(--line)!important;border-radius:10px!important;background:var(--surface)!important;box-shadow:none!important;overflow:hidden}.acc-head{background:var(--surface)!important;padding:16px!important;font-size:1rem!important;font-weight:550!important;color:var(--ink)!important;min-height:52px!important}.acc-head:hover{background:var(--surface-2)!important}.acc-content,.acc-body{font-size:1rem!important;line-height:1.8!important;font-weight:400!important;background:var(--surface)!important;color:var(--ink-2)!important}.acc-content p,.acc-body p{font-size:1rem!important}.acc-item.open{box-shadow:none!important}.ficha__tag,.tag{font-size:.8125rem!important;box-shadow:none!important;font-weight:500!important}.hist-panel,.drawer,.cmdk{background:var(--surface)!important;border:1px solid var(--line)!important;box-shadow:0 15px 45px var(--shadow-color)!important;border-radius:14px!important}.hist-panel{max-width:calc(100vw - 24px)!important;right:0!important}.hist-panel__head h4,.drawer__title{font-weight:550!important;font-size:1.125rem!important}.drawer__tab,.drawer__search input,.cmdk__input{font-size:1rem!important}.drawer__tab.active{background:var(--ui-selected)!important;color:var(--ui-selected-ink)!important;box-shadow:none!important}.drawer__head{background:var(--surface)!important}.fbx-provenance{width:100%;max-width:940px;margin:30px auto 0;padding:14px 0 0;border-top:1px solid var(--line);color:var(--muted);font-size:.8125rem;line-height:1.8}.fbx-provenance summary{cursor:pointer;min-height:40px;padding:5px 0;font-size:.875rem}.fbx-provenance a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.fbx-provenance p{margin:8px 0}
@media(max-width:700px){.topbar,.fbx-integrated .topbar{padding:9px 4px!important;min-height:58px!important}.topbar__right{gap:7px!important}.tool-title{font-size:.9375rem!important;flex:1;min-width:120px}.stage,.fbx-integrated .stage{padding:22px 5px 24px!important}#btn-config>span,#btn-hist>span:not(.hist-badge){display:none}#btn-config,#btn-hist{min-width:38px!important;padding:8px!important}.btn-temas{font-size:.875rem!important;padding:8px 10px!important}.btn-temas .cnt{display:none!important}.hist-wrap .hist-badge{display:none!important}.random-pool{margin:5px 0 20px;gap:10px}.seg__btn{padding:9px 11px!important;font-size:.875rem!important}.seg__cnt{display:none!important}.stat__num,.stat__lbl{font-size:.8125rem!important}.random-card{padding:28px 24px;gap:12px;border-radius:14px}.random-card>strong{font-size:1.75rem}.random-card-action{margin-top:10px}.random-card-copy{font-size:1rem}.random-card-eyebrow{font-size:.75rem}.fbx-provenance{margin-top:25px}.fb-modo-grid{grid-template-columns:1fr!important}.fb-num-grid{gap:8px!important}.fb-num{min-width:42px!important}.fb-tema-chip{font-size:.875rem!important;padding:9px 11px!important}.fb-pregunta{padding:20px 16px!important}.fb-opcion{padding:13px!important}.fb-start-row{flex-wrap:wrap!important}.fb-pregunta-text{font-size:1rem!important}.srs-grades{grid-template-columns:repeat(3,minmax(0,1fr))!important}.srs-card{padding:24px 18px!important}.srs-card-front{font-size:1.75rem!important}.srs-reco{padding:20px!important}.srs-deck{padding:17px 0!important}.srs-deck-name{font-size:1rem!important}.matb-tabs{gap:18px!important}.matb-tab{font-size:.875rem!important}.overlay{padding:6px!important}.ficha{height:auto!important;max-height:calc(100dvh - 12px)!important;border-radius:12px!important}.ficha__head{padding:22px 18px 14px!important}.ficha__name{font-size:1.75rem!important}.ficha-actions{padding:0 18px 16px!important;flex-wrap:wrap!important}.ficha__body{padding:0 18px 20px!important}.ficha__foot{padding:12px!important;gap:7px!important}.ficha__foot .btn{font-size:.875rem!important;padding:10px 12px!important}.acc-head{font-size:1rem!important}.fs-ficha-name{font-size:1.75rem!important}.cfg-panel{position:fixed!important;top:60px!important;right:10px!important}.hist-panel{position:fixed!important;top:60px!important;right:10px!important;max-height:calc(100dvh - 75px)!important}.fs-explore-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.acc-trigger{background:var(--surface)!important;color:var(--ink)!important;padding:16px!important;min-height:53px!important;box-shadow:none!important}.acc-trigger:hover{background:var(--surface-2)!important}.acc-title{font-size:1rem!important;font-weight:550!important;letter-spacing:-.015em!important}.acc-icon{background:var(--surface-2)!important;color:var(--ink-2)!important;border-radius:8px!important;box-shadow:none!important}.acc-inner{font-size:1rem!important;line-height:1.85!important;color:var(--ink-2)!important;padding:4px 18px 20px!important}.srs-stat-n{font-size:1.75rem!important;font-weight:600!important;color:var(--ink)!important;line-height:1.3!important}.srs-stat-l{font-size:.875rem!important;color:var(--muted)!important;text-transform:none!important;letter-spacing:0!important}.srs-deck-chip{font-size:.8125rem!important;font-weight:500!important;box-shadow:none!important}.srs-deck-cta{font-size:.875rem!important;min-height:36px!important;border-radius:8px!important}.ls-pick{background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--ink-2)!important;box-shadow:none!important;border-radius:10px!important}.ls-pick-brand,.ls-pick-brand i{color:var(--ink)!important;font-size:.9375rem!important;font-weight:550!important}.ls-pick-desc,.ls-pres-item{font-size:.875rem!important;line-height:1.6!important;color:var(--ink-2)!important}.ls-pick-ic{background:transparent!important;box-shadow:none!important}.fp-badge{background:var(--surface-2)!important;color:var(--ink-2)!important;font-size:.8125rem!important;font-weight:500!important;letter-spacing:0!important;text-transform:none!important}.fp-pickbtn{background:var(--surface-2)!important;color:var(--ink)!important;box-shadow:none!important;border:1px solid var(--line)!important;border-radius:10px!important}.hist-panel__list{max-height:calc(100dvh - 205px)!important}
:root,:root[data-theme="light"]{--red:#E63946;--red-soft:#fff0f1;--ui-selected:#fff0f1;--ui-selected-ink:#ac2533;--ui-action:#E63946;--grad:#E63946}.seg__btn.active,.drawer__tab.active{color:var(--ui-selected-ink)!important;background:var(--ui-selected)!important}.fbx-integrated .topbar{background:var(--surface)!important}.ficha,.fb-pregunta,.srs-card{border-radius:10px!important}.fb-pregunta-text,.acc-inner{line-height:1.8!important}

/* Only the direct FarmacoTools entry requests standalone navigation inside its iframe. */
.fbx-tool-standalone .standalone-tools{display:flex;flex-wrap:nowrap;gap:6px;max-width:100%;overflow-x:auto;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line);scrollbar-width:thin}
.fbx-tool-standalone .standalone-tools button{flex-shrink:0;min-height:44px;padding:10px 14px;border:1px solid transparent;border-radius:5px;color:#252525;font-family:Montserrat,sans-serif;font-size:14px;font-weight:500}
.fbx-tool-standalone .standalone-tools [aria-selected=true]{color:#133b3c;background:#edf8f8;border-color:#6ec0c2;font-weight:700}
.fbx-tool-standalone .standalone-tools button:focus-visible{outline:3px solid #145f63!important;outline-offset:2px!important}
@media(max-width:700px){.fbx-tool-standalone .standalone-tools{padding:10px;gap:4px}.fbx-tool-standalone .standalone-tools button{padding:9px 12px;font-size:13px}}
