.theory-page{padding:20px 0 64px}.theory-topbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:16px}.theory-topbar__heading{min-width:0;flex:1 1 280px}.theory-topbar__title{display:flex;align-items:center;gap:10px;min-width:0;line-height:1.25;text-wrap:balance;overflow-wrap:anywhere;font-size:clamp(1.38rem,2.4vw,1.92rem);font-weight:800;margin:0 0 4px;color:var(--text-primary)}.theory-topbar__sub{font-size:.88rem;color:var(--text-secondary);margin:0;line-height:1.5}.theory-topbar__actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.theory-workspace{display:flex;flex-direction:column;gap:12px}.theory-sidebar{display:flex;flex-direction:column;gap:10px;min-width:0}.theory-sidebar__section-label,.theory-sidebar__group--desktop-only{display:none}.theory-mobile-bar{display:grid;grid-template-columns:minmax(112px,.78fr) minmax(0,1.45fr);gap:8px}.theory-mobile-trigger{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:0;padding:8px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text-primary);cursor:pointer;text-align:left;transition:border-color .16s ease,background .16s ease}.theory-mobile-trigger:hover,.theory-mobile-trigger.is-filtered{border-color:var(--brand-light);background:#1877f21a}.theory-mobile-trigger__eyebrow{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);line-height:1.1}.theory-mobile-trigger__val{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%;min-width:0}.theory-mobile-trigger__val strong{font-size:.85rem;font-weight:800;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.theory-mobile-trigger__val svg{flex-shrink:0;color:var(--brand-light)}.theory-sheet-backdrop{position:fixed;inset:0;z-index:1200;background:var(--backdrop-scrim);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .16s ease}.theory-sheet{width:100%;max-width:560px;max-height:82vh;overflow-y:auto;background:var(--surface-elevated);border-top:1px solid var(--border-light);border-radius:22px 22px 0 0;padding:10px 16px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:var(--shadow)}.theory-sheet__handle{width:42px;height:4px;border-radius:99px;background:#94a3b859;margin:2px auto 12px}.theory-sheet__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--border)}.theory-sheet__head strong{font-size:.98rem;font-weight:800;color:var(--text-primary)}.theory-sheet__close{width:32px;height:32px;border-radius:999px;border:1px solid var(--border);background:var(--bg-2);color:var(--text-secondary);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.theory-sheet__cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.theory-sheet__cat-item,.theory-sheet__topic-item{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:var(--bg-2);color:var(--text-secondary);font-size:.88rem;font-weight:650;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease}.theory-sheet__topic-list{display:flex;flex-direction:column;gap:7px}.theory-sheet__topic-item{justify-content:space-between}.theory-sheet__cat-item.is-active,.theory-sheet__topic-item.is-active{border-color:var(--tint-blue-border);background:var(--tint-blue-bg);color:var(--accent-blue-text);font-weight:800}.theory-sheet__cat-code{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:26px;padding:0 7px;border-radius:7px;background:#1565d8;color:#fff;font-size:.78rem;font-weight:800;flex-shrink:0}.theory-sheet__cat-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.theory-cats{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.theory-cats::-webkit-scrollbar{display:none}.theory-cat-btn{flex-shrink:0;white-space:nowrap}.theory-modes{display:flex;gap:7px;overflow-x:auto;padding:1px 2px 3px;scrollbar-width:none}.theory-modes::-webkit-scrollbar{display:none}.theory-mode-btn{flex-shrink:0;white-space:nowrap;justify-content:center;gap:6px}.theory-mode-btn--critical-idle{background:var(--tint-danger-bg)!important;border-color:var(--tint-danger-border)!important;color:var(--accent-danger-text)!important}.theory-mode-btn--critical-active{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important;box-shadow:none!important}.theory-topics{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.theory-topics::-webkit-scrollbar{display:none}.theory-topic-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px;border-radius:999px;border:1px solid var(--border);background:var(--bg-3);color:var(--text-secondary);font-size:.8rem;font-weight:600;line-height:1.35;white-space:nowrap;flex-shrink:0;cursor:pointer;transition:all .16s ease}.theory-topic-btn:hover{border-color:var(--brand-light);color:var(--text-primary)}.theory-topic-btn.is-active{background:#1565d8;border-color:#3b82f6;color:#fff;font-weight:700}.theory-sidebar__cta{display:none}.theory-main{min-width:0;display:flex;flex-direction:column}.theory-main__toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:10px 12px}.theory-search{position:relative;flex:1 1 240px;min-width:min(100%,220px)}.theory-search__icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-muted);display:inline-flex;pointer-events:none}.theory-search__input{width:100%;padding:9px 34px 9px 38px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text-primary);font-size:.88rem}.theory-search__clear{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:6px;border:none;background:#94a3b829;color:var(--text-secondary);font-size:.75rem;display:inline-flex;align-items:center;justify-content:center}.theory-toolbar__toggles{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.theory-quick-switch{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;border-radius:999px;border:1px solid var(--border);background:var(--bg-2);color:var(--text-secondary);font-size:.79rem;font-weight:700;white-space:nowrap;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease}.theory-quick-switch:hover{border-color:var(--brand-light);color:var(--text-primary)}.theory-quick-switch.is-active{background:var(--tint-blue-bg);border-color:var(--tint-blue-border);color:var(--accent-blue-text)}.theory-quick-switch--answers.is-active{background:var(--tint-emerald-bg);border-color:var(--tint-emerald-border);color:var(--accent-emerald-text)}.theory-meta-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-left:auto}.theory-meta-count{color:var(--text-muted);font-size:.83rem;margin:0;white-space:nowrap}.theory-meta-count strong{color:var(--text-primary);font-weight:800}.theory-quick-pager{display:none}.theory-qlist{display:flex;flex-direction:column;gap:16px;min-height:760px}.theory-qcard{padding:20px}.theory-qcard--critical{border-left:3px solid var(--critical)}.theory-qcard__head{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px}.theory-qcard__num{min-width:34px;height:34px;background:var(--bg-3);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:.84rem;font-weight:800;color:var(--text-primary);flex-shrink:0}.theory-qcard__title-wrap{flex:1;min-width:0}.theory-qcard__badges{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;flex-wrap:wrap}.theory-qcard__text{font-size:.98rem;font-weight:650;line-height:1.56;color:var(--text-primary);margin:0}.theory-qcard__body{display:flex;flex-direction:column;gap:14px}.theory-qcard__media{margin:0}.theory-qcard__img{width:100%;max-width:580px;height:220px;border-radius:10px;object-fit:contain;border:1px solid var(--border);background:var(--bg-2);display:block}.theory-qcard__options{display:flex;flex-direction:column;gap:8px}@media(min-width:1025px){.theory-page{padding:20px 0 64px}.theory-topbar{background:var(--surface-hero-card);border:1px solid var(--border);box-shadow:var(--shadow-sm);border-radius:18px;padding:16px 22px;margin-bottom:20px;flex-wrap:nowrap}.theory-mobile-bar,.theory-sheet-backdrop{display:none!important}.theory-workspace{display:grid;grid-template-columns:292px minmax(0,1fr);gap:22px;align-items:start}.theory-sidebar{position:sticky;top:calc(var(--nav-height, 64px) + var(--top-banner-offset, 0px) + 14px);max-height:calc(100vh - var(--nav-height, 64px) - var(--top-banner-offset, 0px) - 24px);overflow-y:auto;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--border);gap:12px;box-shadow:var(--shadow-md)}.theory-sidebar__group,.theory-sidebar__group--desktop-only{display:flex;flex-direction:column;gap:7px;padding-bottom:12px;border-bottom:1px solid var(--border)}.theory-sidebar__group:last-of-type{padding-bottom:0;border-bottom:none}.theory-sidebar__section-label{display:block;font-size:.69rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin-bottom:1px}.theory-cats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;overflow:visible;padding-bottom:0}.theory-cat-btn{padding:6px 2px!important;font-size:.76rem!important;font-weight:800!important;justify-content:center;min-width:0}.theory-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible;padding:0}.theory-mode-btn{width:100%;min-width:0;justify-content:flex-start;padding:7px 9px!important;font-size:.77rem!important;gap:5px}.theory-mode-btn span{overflow:hidden;text-overflow:ellipsis}.theory-topics{display:flex;flex-direction:column;gap:4px;overflow:visible;padding-bottom:0}.theory-topic-btn{width:100%;border-radius:9px;padding:6.5px 10px;white-space:normal;text-align:left;font-size:.79rem;background:var(--surface-inset)}.theory-sidebar__cta{display:inline-flex;width:100%;justify-content:center}.theory-main__toolbar{padding:10px 14px;margin-bottom:16px;flex-wrap:nowrap}.theory-toolbar__toggles{flex-wrap:nowrap;flex-shrink:0}.theory-quick-pager{display:inline-flex;align-items:center;gap:6px}.theory-qcard--with-media .theory-qcard__body{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(270px,.88fr);gap:18px;align-items:start}.theory-qcard--with-media .theory-qcard__options{order:1}.theory-qcard--with-media .theory-qcard__media{order:2}.theory-qcard--with-media .theory-qcard__img{height:230px;max-width:100%}}
