
#slBackTop{position:fixed;right:18px;z-index:99980;border:0;border-radius:999px;padding:12px 16px;font-weight:900;cursor:pointer;background:linear-gradient(180deg,var(--primary),var(--primary-2));color:var(--on-primary);box-shadow:0 12px 30px rgba(0,0,0,.22)}
#slBackTop{bottom:92px;display:none}#slToolsBtn{bottom:28px}
body.mobile-ui #slBackTop{bottom:92px;right:12px}body.mobile-ui #slToolsBtn{bottom:146px;right:12px;padding:10px 12px;font-size:12px}
body.sl-reading-mode{--surface:color-mix(in srgb,#0f172a 94%,black);--panel:color-mix(in srgb,#111827 96%,black);--text:#f8fafc;--muted:#cbd5e1;background:#0f172a!important;color:#f8fafc!important}
body.sl-reading-mode .law-card,body.sl-reading-mode .section-card,body.sl-reading-mode .panel,body.sl-reading-mode .settings-card,body.sl-reading-mode .hero-title-card{background:#111827!important;color:#f8fafc!important;line-height:1.9!important;font-size:1.06em!important}
.sl-tools-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.sl-tools-head h2{margin:0;font-size:22px}.sl-close{border:1px solid var(--line);background:var(--field-bg);color:var(--text);border-radius:12px;padding:8px 12px;cursor:pointer;font-weight:800}
.sl-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sl-tool-card{border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--field-bg) 86%,transparent);padding:14px}.sl-tool-card h3{margin:0 0 8px;font-size:16px}.sl-tool-card textarea,.sl-tool-card input,.sl-tool-card select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;background:var(--field-bg);color:var(--text);padding:10px;margin:6px 0;min-height:42px}.sl-tool-card textarea{min-height:120px;resize:vertical}.sl-tool-card button{border:0;border-radius:12px;background:linear-gradient(180deg,var(--primary),var(--primary-2));color:var(--on-primary);padding:10px 12px;font-weight:900;cursor:pointer;margin-top:6px}.sl-result{white-space:pre-wrap;border:1px dashed var(--line);border-radius:12px;padding:10px;margin-top:8px;min-height:52px;color:var(--text);background:color-mix(in srgb,var(--panel) 80%,transparent)}
@media(max-width:760px){.sl-tool-grid{grid-template-columns:1fr}.sl-tools-head h2{font-size:18px}}

/* === v4.26 浮动按钮重叠修复 === */
.onboarding-launch{
  right:18px !important;
  bottom:18px !important;
  z-index:99982 !important;
}
#slToolsBtn{
  right:18px !important;
  bottom:72px !important;
  z-index:99981 !important;
}
#slBackTop{
  right:18px !important;
  bottom:126px !important;
  z-index:99980 !important;
}
@media(max-width:900px){
  .onboarding-launch{
    right:10px !important;
    bottom:calc(86px + env(safe-area-inset-bottom,0px)) !important;
    padding:9px 12px !important;
    font-size:12px !important;
  }
  #slToolsBtn{
    right:10px !important;
    bottom:calc(136px + env(safe-area-inset-bottom,0px)) !important;
    padding:9px 12px !important;
    font-size:12px !important;
  }
  #slBackTop{
    right:10px !important;
    bottom:calc(186px + env(safe-area-inset-bottom,0px)) !important;
    padding:9px 12px !important;
    font-size:12px !important;
  }
}


/* === v4.26 智能工具页面化 / 深夜阅读修复 === */
.quick-actions-fixed{position:fixed;right:18px;bottom:18px;z-index:99982;display:flex;gap:10px;align-items:center;}
.quick-actions-fixed .onboarding-launch,.quick-actions-fixed .reading-launch{position:static !important;border:0;border-radius:999px;padding:12px 16px;font-weight:900;cursor:pointer;background:linear-gradient(180deg,var(--primary),var(--primary-2));color:var(--on-primary);box-shadow:0 12px 30px rgba(0,0,0,.22)}
.quick-actions-fixed .reading-launch{background:linear-gradient(180deg,#334155,#111827);color:#f8fafc;}
/* 一键到顶按钮：单独定位，位于「新手引导」按钮正上方，滚动后才显示 */
.sl-top-launch{
  position:fixed;right:18px;bottom:84px;z-index:99983;
  border:0;border-radius:999px;padding:12px 18px;
  font-weight:900;cursor:pointer;
  background:linear-gradient(180deg,#0ea5e9,#0369a1);
  color:#fff;font-size:13px;letter-spacing:.5px;
  box-shadow:0 10px 24px rgba(3,105,161,.45);
  display:none;
}
.sl-top-launch.show{display:inline-flex;align-items:center;gap:4px;animation:slTopPop .25s ease;}
.sl-top-launch:hover{filter:brightness(1.1);}
@keyframes slTopPop{0%{transform:translateY(8px);opacity:0;}100%{transform:translateY(0);opacity:1;}}
body.mobile-ui .sl-top-launch,body:not(.desktop-ui) .sl-top-launch{right:10px;bottom:calc(152px + env(safe-area-inset-bottom,0px));padding:9px 12px;font-size:12px;}
body.mobile-ui .quick-actions-fixed,body:not(.desktop-ui) .quick-actions-fixed{right:10px;bottom:calc(86px + env(safe-area-inset-bottom,0px));gap:8px;}
body.mobile-ui .quick-actions-fixed button,body:not(.desktop-ui) .quick-actions-fixed button{padding:9px 11px;font-size:12px;}
#slBackTop{right:18px !important;bottom:78px !important;z-index:99980 !important;}
body.mobile-ui #slBackTop,body:not(.desktop-ui) #slBackTop{right:10px !important;bottom:calc(138px + env(safe-area-inset-bottom,0px)) !important;}
.sl-tools-page{margin-top:16px;}
.sl-tools-page .sl-tools-head{margin-bottom:14px;}
body.sl-reading-mode,body.sl-reading-mode .app{background:#07111f !important;background-image:linear-gradient(135deg,#07111f,#0b1220 55%,#111827) !important;color:#e5edf7 !important;}
body.sl-reading-mode::before{background:linear-gradient(135deg,#07111f,#0b1220 55%,#111827) !important;}
body.sl-reading-mode .sidebar{background:linear-gradient(180deg,#0b1220,#111827) !important;border-color:#334155 !important;}
body.sl-reading-mode .nav-btn{color:#e5edf7 !important;background:rgba(15,23,42,.65) !important;border-color:#334155 !important;}
body.sl-reading-mode .nav-btn.active{background:linear-gradient(180deg,#334155,#1f2937) !important;color:#f8fafc !important;}
body.sl-reading-mode .panel,body.sl-reading-mode .workspace,body.sl-reading-mode .hero-brand,body.sl-reading-mode .hero-title-card,body.sl-reading-mode .stat-card,body.sl-reading-mode .settings-card,body.sl-reading-mode .codex-side,body.sl-reading-mode .codex-main,body.sl-reading-mode .search-panel,body.sl-reading-mode .law-card,body.sl-reading-mode .section-card,body.sl-reading-mode .sl-tool-card{background:#111827 !important;background-image:none !important;color:#e5edf7 !important;border-color:#334155 !important;box-shadow:none !important;}
body.sl-reading-mode input,body.sl-reading-mode select,body.sl-reading-mode textarea{background:#0b1220 !important;color:#f8fafc !important;border-color:#475569 !important;}
body.sl-reading-mode button:not(.nav-btn):not(.onboarding-launch):not(.reading-launch){background:linear-gradient(180deg,#334155,#1f2937) !important;color:#f8fafc !important;border-color:#475569 !important;}
body.sl-reading-mode .hero-desc,body.sl-reading-mode .section-sub,body.sl-reading-mode .small-muted,body.sl-reading-mode .stat-label,body.sl-reading-mode .foot-note,body.sl-reading-mode .law-section-body,body.sl-reading-mode p{color:#d7e0ee !important;}
body.sl-reading-mode .sl-result{background:#0b1220 !important;color:#f8fafc !important;border-color:#475569 !important;}
body.sl-reading-mode .quick-actions-fixed .reading-launch{background:linear-gradient(180deg,#64748b,#334155) !important;color:#fff !important;}



/* === 深夜阅读最终修复：不改版本号，不写更新日志 === */
html body.sl-reading-mode,
html body.sl-reading-mode .app,
html body.sl-reading-mode .wrap,
html body.sl-reading-mode main,
html body.sl-reading-mode .view{
  background:#07111f !important;
  background-image:linear-gradient(135deg,#07111f 0%,#0b1220 52%,#111827 100%) !important;
  color:#e5edf7 !important;
}
html body.sl-reading-mode::before,
html body.sl-reading-mode::after{
  background:linear-gradient(135deg,#07111f 0%,#0b1220 52%,#111827 100%) !important;
  opacity:1 !important;
}
html body.sl-reading-mode .sidebar,
html body.sl-reading-mode .sidebar-brand-card,
html body.sl-reading-mode .sidebar .brand,
html body.sl-reading-mode .nav,
html body.sl-reading-mode .timer-card,
html body.sl-reading-mode .sidebar-footer,
html body.sl-reading-mode .mobile-bottom-nav{
  background:#0b1220 !important;
  background-image:linear-gradient(180deg,#0b1220,#111827) !important;
  border-color:#334155 !important;
  box-shadow:none !important;
}
html body.sl-reading-mode .sidebar *,
html body.sl-reading-mode .mobile-bottom-nav *,
html body.sl-reading-mode .brand-title,
html body.sl-reading-mode .brand-sub,
html body.sl-reading-mode .nav-text,
html body.sl-reading-mode .timer-title,
html body.sl-reading-mode .timer-display{
  color:#e5edf7 !important;
  text-shadow:none !important;
}
html body.sl-reading-mode .nav-btn,
html body.sl-reading-mode .mobile-bottom-nav .nav-btn{
  background:#111827 !important;
  background-image:none !important;
  color:#e5edf7 !important;
  border-color:#334155 !important;
}
html body.sl-reading-mode .nav-btn.active,
html body.sl-reading-mode .mobile-bottom-nav .nav-btn.active{
  background:linear-gradient(180deg,#334155,#1f2937) !important;
  color:#ffffff !important;
  border-color:#64748b !important;
}
html body.sl-reading-mode .panel,
html body.sl-reading-mode .workspace,
html body.sl-reading-mode .hero,
html body.sl-reading-mode .hero-brand,
html body.sl-reading-mode .home-brand,
html body.sl-reading-mode .hero-title-card,
html body.sl-reading-mode .hero-brand-mini,
html body.sl-reading-mode .stat-card,
html body.sl-reading-mode .settings-card,
html body.sl-reading-mode .codex-side,
html body.sl-reading-mode .codex-main,
html body.sl-reading-mode .search-panel,
html body.sl-reading-mode .law-card,
html body.sl-reading-mode .law-section,
html body.sl-reading-mode .section-card,
html body.sl-reading-mode .help-card,
html body.sl-reading-mode .changelog-card,
html body.sl-reading-mode .changelog-note,
html body.sl-reading-mode .sl-tool-card,
html body.sl-reading-mode .sl-tools-page,
html body.sl-reading-mode .calc-row,
html body.sl-reading-mode .result-card,
html body.sl-reading-mode .copy-card,
html body.sl-reading-mode .favorite-panel,
html body.sl-reading-mode .filter-panel,
html body.sl-reading-mode .search-result,
html body.sl-reading-mode details,
html body.sl-reading-mode summary{
  background:#111827 !important;
  background-image:none !important;
  color:#e5edf7 !important;
  border-color:#334155 !important;
  box-shadow:none !important;
}
html body.sl-reading-mode .help-card *,
html body.sl-reading-mode .changelog-card *,
html body.sl-reading-mode .changelog-note *,
html body.sl-reading-mode .law-card *,
html body.sl-reading-mode .section-card *,
html body.sl-reading-mode .settings-card *,
html body.sl-reading-mode .sl-tool-card *,
html body.sl-reading-mode .panel *,
html body.sl-reading-mode .hero-title-card *,
html body.sl-reading-mode .codex-main *,
html body.sl-reading-mode .codex-side *{
  color:#e5edf7 !important;
}
html body.sl-reading-mode .hero-desc,
html body.sl-reading-mode .section-sub,
html body.sl-reading-mode .small-muted,
html body.sl-reading-mode .stat-label,
html body.sl-reading-mode .foot-note,
html body.sl-reading-mode .law-section-body,
html body.sl-reading-mode .help-card p,
html body.sl-reading-mode .help-card li,
html body.sl-reading-mode .changelog-card li,
html body.sl-reading-mode .changelog-card ul,
html body.sl-reading-mode p,
html body.sl-reading-mode li,
html body.sl-reading-mode span{
  color:#d7e0ee !important;
}
html body.sl-reading-mode input,
html body.sl-reading-mode select,
html body.sl-reading-mode textarea,
html body.sl-reading-mode .field,
html body.sl-reading-mode .search-input{
  background:#0b1220 !important;
  background-image:none !important;
  color:#f8fafc !important;
  border-color:#475569 !important;
  box-shadow:none !important;
}
html body.sl-reading-mode input::placeholder,
html body.sl-reading-mode textarea::placeholder{
  color:#94a3b8 !important;
}
html body.sl-reading-mode .btn-primary,
html body.sl-reading-mode .btn-secondary,
html body.sl-reading-mode button:not(.nav-btn):not(.onboarding-launch):not(.reading-launch){
  background:linear-gradient(180deg,#334155,#1f2937) !important;
  color:#f8fafc !important;
  border-color:#475569 !important;
}
html body.sl-reading-mode .changelog-tag,
html body.sl-reading-mode .tag,
html body.sl-reading-mode .badge,
html body.sl-reading-mode .meta-pill,
html body.sl-reading-mode .version-chip{
  background:#0b1220 !important;
  color:#f8fafc !important;
  border-color:#475569 !important;
}
html body.sl-reading-mode .quick-actions-fixed{
  position:fixed !important;
  right:18px !important;
  bottom:18px !important;
  z-index:99982 !important;
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
}
html body.sl-reading-mode .quick-actions-fixed .reading-launch,
html body.sl-reading-mode .quick-actions-fixed .onboarding-launch{
  position:static !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(180deg,#475569,#1f2937) !important;
  color:#ffffff !important;
  border:1px solid #64748b !important;
  box-shadow:0 12px 30px rgba(0,0,0,.35) !important;
}
@media(max-width:900px){
  html body.sl-reading-mode .quick-actions-fixed{
    right:10px !important;
    bottom:calc(86px + env(safe-area-inset-bottom,0px)) !important;
  }
}
/* 确保不存在旧版智能工具悬浮弹窗 */
.sl-tools-floating,
.sl-smart-tools-float,
#slSmartToolsFloat,
#slToolsFloating,
.smart-tools-floating{
  display:none !important;
}



/* === 深夜阅读局部修复：不改版本号，不写更新日志 === */
html body.sl-reading-mode .sidebar-brand-card,
html body.sl-reading-mode .sidebar-brand-text,
html body.sl-reading-mode .brand,
html body.sl-reading-mode .status-card,
html body.sl-reading-mode .sidebar-status,
html body.sl-reading-mode .sidebar-foot,
html body.sl-reading-mode .sidebar-timer{
  background:#0b1220 !important;
  background-image:linear-gradient(180deg,#0b1220,#111827) !important;
  color:#e5edf7 !important;
  border-color:#334155 !important;
  box-shadow:none !important;
}
html body.sl-reading-mode .sidebar-brand-card *,
html body.sl-reading-mode .sidebar-brand-text *,
html body.sl-reading-mode .status-card *,
html body.sl-reading-mode .sidebar-status *,
html body.sl-reading-mode .sidebar-foot *,
html body.sl-reading-mode .sidebar-timer *{
  color:#e5edf7 !important;
  text-shadow:none !important;
}
html body.sl-reading-mode .brand-title,
html body.sl-reading-mode .status-title{
  color:#f8fafc !important;
}
html body.sl-reading-mode .brand-sub,
html body.sl-reading-mode .status-sub,
html body.sl-reading-mode .status-version{
  color:#cbd5e1 !important;
}
html body.sl-reading-mode .law-section,
html body.sl-reading-mode .law-section-head,
html body.sl-reading-mode .law-section.open,
html body.sl-reading-mode .law-section-body,
html body.sl-reading-mode .law-section-meta,
html body.sl-reading-mode .severity-tag,
html body.sl-reading-mode .tag,
html body.sl-reading-mode .badge,
html body.sl-reading-mode .mini-chip,
html body.sl-reading-mode .meta-pill,
html body.sl-reading-mode .version-chip,
html body.sl-reading-mode .stat-icon,
html body.sl-reading-mode .chapter-item,
html body.sl-reading-mode .chapter-item.active,
html body.sl-reading-mode .chapter-preview-item,
html body.sl-reading-mode .law-item,
html body.sl-reading-mode .law-entry,
html body.sl-reading-mode .law-content,
html body.sl-reading-mode .search-result-item,
html body.sl-reading-mode .search-result,
html body.sl-reading-mode .theme-btn,
html body.sl-reading-mode .favorite-empty,
html body.sl-reading-mode .favorite-crime-item,
html body.sl-reading-mode .quick-crime-btn,
html body.sl-reading-mode .suggestions,
html body.sl-reading-mode .suggestion-item,
html body.sl-reading-mode .version-highlight,
html body.sl-reading-mode .version-highlight-grid > *,
html body.sl-reading-mode .info-card,
html body.sl-reading-mode .meta-card{
  background:#111827 !important;
  background-image:none !important;
  color:#e5edf7 !important;
  border-color:#334155 !important;
  box-shadow:none !important;
}
html body.sl-reading-mode .law-section-head:hover,
html body.sl-reading-mode .chapter-item:hover,
html body.sl-reading-mode .suggestion-item:hover{
  background:#1e293b !important;
  color:#f8fafc !important;
}
html body.sl-reading-mode .tag.light,
html body.sl-reading-mode .tag.good,
html body.sl-reading-mode .tag.bad,
html body.sl-reading-mode .tag.felony,
html body.sl-reading-mode .tag.civil,
html body.sl-reading-mode .tag.free,
html body.sl-reading-mode .severity-tag{
  background:#0b1220 !important;
  color:#f8fafc !important;
  border-color:#475569 !important;
}
html body.sl-reading-mode .version-highlight-title,
html body.sl-reading-mode .version-chip strong,
html body.sl-reading-mode .info-card strong,
html body.sl-reading-mode .meta-card strong{
  color:#f8fafc !important;
}
html body.sl-reading-mode .version-highlight::before,
html body.sl-reading-mode .version-highlight-title::before{
  box-shadow:none !important;
  background:#22c55e !important;
}
.quick-actions-fixed .reading-launch,
.quick-actions-fixed .onboarding-launch{
  background:linear-gradient(180deg,var(--primary),var(--primary-2)) !important;
  color:var(--on-primary) !important;
  border:1px solid var(--line-2) !important;
}
html body.sl-reading-mode .quick-actions-fixed .reading-launch,
html body.sl-reading-mode .quick-actions-fixed .onboarding-launch{
  background:linear-gradient(180deg,var(--primary),var(--primary-2)) !important;
  color:var(--on-primary) !important;
  border:1px solid var(--line-2) !important;
}

/* Markup-only classes keep the deployed HTML free of embedded presentation. */
.visually-hidden{display:none;}
.sentencing-attitude-row{flex-direction:column;gap:14px;align-items:flex-start;}
.sentencing-attitude-control{display:flex;align-items:center;gap:10px;width:100%;}
.sentencing-attitude-label{font-size:13px;color:var(--sub);}
.sentencing-attitude-select{flex:1;padding:8px;border-radius:8px;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.2);color:var(--text);outline:none;}
.judgment-output-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
.judgment-output-title{margin:0;}
.judgment-output-actions{display:flex;gap:8px;flex-wrap:wrap;}
.judgment-output-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px;}
.maintenance-dual-password-field{grid-column:1 / -1;}
.maintenance-dual-password-input{resize:vertical;font-family:monospace;letter-spacing:1px;}
.maintenance-dual-password-status{margin-top:8px;}
.maintenance-log-result{max-height:180px;overflow-y:auto;font-size:12px;line-height:1.6;}
.maintenance-export-preview{max-height:240px;overflow-y:auto;font-size:12px;line-height:1.6;white-space:pre-wrap;}
.maintenance-note{color:var(--muted);font-size:12px;}
.law-admin-online-notice{background:rgba(255,200,0,.08);border-left:3px solid #f0a000;padding:10px 12px;border-radius:6px;line-height:1.7;}
.law-admin-history-actions{margin-top:10px;}
