/* 快账工具原样式，选择器限定在工具内容。 */
/* Shared appearance with study_nav: 1300px workspace, 220px sidebar, white panels without outer frames. */
:where(.study-tools-embed) .accounting-app, :where(.study-tools-embed):has(>.m-tool-top){background:#f6f7fc}
:where(.study-tools-embed) .main-container:has(>.sidebar-tool-switcher){--sidebar:220px;--canvas:#f6f7fc;--paper:#fff;--ink:#263445;--muted:#657b98;--accent:#3274ff;--accent-dark:#215fe5;--accent-wash:#edf3ff;--line:#e0e7f2;max-width:1364px;gap:36px;padding:24px 32px 40px;color:var(--ink);font:14px/1.6 'PingFang SC','Microsoft YaHei',sans-serif}
.study-tools-embed .main-container:has(>.sidebar-tool-switcher){max-width:1300px;padding:4px 0 24px}
:where(.study-tools-embed) .sidebar.sidebar-tool-switcher{box-sizing:border-box;width:220px;min-width:220px;max-width:220px;flex:0 0 220px;display:flex;flex-direction:column;align-self:flex-start;position:sticky;top:88px;height:auto;max-height:calc(100vh - 108px);max-height:calc(100dvh - 108px);overflow:auto;overscroll-behavior:contain;padding:12px 8px;border:0;border-radius:12px;background:#fff;box-shadow:none;scrollbar-width:thin;scrollbar-color:#c9d3e1 transparent}
.study-tools-embed .sidebar.sidebar-tool-switcher{border:0;border-radius:12px;background:#fff;box-shadow:none}
:where(.study-tools-embed) .sidebar-tool-switcher::-webkit-scrollbar{width:5px}
:where(.study-tools-embed) .sidebar-tool-switcher::-webkit-scrollbar-thumb{background:#c9d3e1;border-radius:6px}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-top{position:sticky;top:-12px;z-index:3;background:#fff;padding:0 0 12px;flex:none}
:where(.study-tools-embed) .sidebar-heading{display:flex;align-items:center;gap:9px;padding:2px 4px 12px}
:where(.study-tools-embed) .sidebar-heading h2{margin:0;padding:0;font-size:16px;font-weight:700;line-height:1.5;color:#203c61}
:where(.study-tools-embed) .sidebar-heading p{margin:2px 0 0;color:#91a0b4;font-size:10px;line-height:1.5}
:where(.study-tools-embed) .sidebar-mark{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:8px;background:#eaf1ff;color:#3274ff}
:where(.study-tools-embed) .sidebar-mark svg{width:18px;height:18px}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-shortcuts{position:static;display:flex;align-items:center;gap:6px;min-height:40px;margin:0 0 10px;padding:0;background:#fff}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-shortcuts>a{display:flex;align-items:center;gap:8px;flex:1;min-width:0;width:auto;min-height:40px;padding:9px 10px;border:0;border-radius:7px;background:#f5f8fd;color:#465d7b;font-size:14px;font-weight:500;line-height:1.5}
:where(.study-tools-embed) .sidebar-shortcuts>a>span:first-of-type{flex:1}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-shortcuts>a[aria-current=page]{background:#3274ff;color:#fff;box-shadow:0 3px 8px #3274ff20}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-all-count, :where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-count{display:inline-block;min-width:22px;padding:1px 5px;border-radius:5px;background:#f0f4fa;color:#7c8fa9;text-align:center;font-size:10px;font-weight:400;line-height:16px;font-variant-numeric:tabular-nums}
:where(.study-tools-embed) .sidebar-shortcuts>a[aria-current=page] .sidebar-all-count{background:#ffffff28;color:#fff}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search{position:static;display:flex;align-items:center;gap:7px;min-height:38px;margin:0 2px;padding:0 10px;border:1px solid #b9c9df;border-radius:7px;background:#fff;font-weight:400;box-shadow:none;transition:border-color .15s,box-shadow .15s}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search:hover{border-color:#8ea8cc}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search:focus-within{border-color:#3274ff;box-shadow:0 0 0 3px #3274ff14}
:where(.study-tools-embed) .sidebar-search>svg{width:15px;height:15px;stroke:#8197b4}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search input{width:100%;min-width:0;background:transparent;border:0!important;outline:0;font-size:13px;font-weight:400;line-height:1.5;padding:8px 0;color:#304862;box-shadow:none!important}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-accordion{padding:0;overflow:visible}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-menu-heading{margin:10px 9px 3px;color:#91a0b4;font-size:10px;font-weight:500;line-height:1.6}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category{margin:0 0 4px}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle{gap:8px;min-height:42px;padding:10px 9px;border:0;border-radius:7px;background:transparent;color:#465d7b;font-size:14px;font-weight:500;line-height:1.5}
:where(.study-tools-embed) .sidebar-category-label{flex:1;min-width:0;white-space:nowrap}
:where(.study-tools-embed) .sidebar-category-icon{display:grid;place-items:center;flex:none;width:17px;height:18px;color:#7d97b9;font-style:normal}
:where(.study-tools-embed) .sidebar-category-icon svg{width:17px;height:17px}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle:hover, :where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle.viewing-category{background:transparent;color:#3274ff}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle[aria-expanded=true]{background:transparent;color:#3274ff}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle[aria-expanded=true] .sidebar-category-icon, :where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle.viewing-category .sidebar-category-icon{color:inherit}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-chevron{width:9px;height:9px;margin-left:-3px;color:#8da0ba}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category>.sidebar-tool-list{height:auto;overflow:visible;padding:0 0 5px 25px}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-tool-list .sidebar-nav-item{display:flex;align-items:flex-start;gap:6px;min-height:32px;margin:1px 0;padding:5px 9px;border:0;border-radius:6px;background:transparent;color:#657b98;font-size:13px;font-weight:400;line-height:1.55}
:where(.study-tools-embed) .sidebar-nav-item>span{flex:1;min-width:0;overflow-wrap:anywhere}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-nav-item:hover{background:#f5f7fc;color:#3274ff}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-nav-item.active{background:#edf3ff;color:#3274ff;font-weight:500}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-empty{padding:8px 7px;font-size:12px;line-height:1.8;color:#91a0b4}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search-results{flex:none;height:auto;padding:0 2px 4px;overflow:visible}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-list-heading{border:0;margin:0 9px;font-size:11px}
:where(.study-tools-embed) .sidebar-heading .sidebar-close{display:none;align-self:center;margin-left:auto;border:0;background:none;color:#65788f;font-size:23px;line-height:1;min-width:28px;min-height:30px;padding:0}
:where(.study-tools-embed) .main-container .home-toolbar{min-height:46px;margin-bottom:26px;gap:16px}
:where(.study-tools-embed) .main-container .home-title{gap:14px;min-width:0}
:where(.study-tools-embed) .main-container .home-title h1{font-size:26px;font-weight:600;line-height:1.5;color:#263445}
:where(.study-tools-embed) .main-container .home-title>span{font-size:12px;color:#748399}
:where(.study-tools-embed) .main-container .tool-section{margin-bottom:27px}
:where(.study-tools-embed) .main-container .section-heading{margin-bottom:12px}
:where(.study-tools-embed) .main-container .section-heading h2{font-size:15px;line-height:1.6;font-weight:500;color:#263445}
:where(.study-tools-embed) .main-container .tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
:where(.study-tools-embed) .main-container .tool-card-item{position:relative;display:flex;min-width:0;background:#fff;border:0;border-radius:10px;box-shadow:none;transition:box-shadow .16s}
:where(.study-tools-embed) .main-container .tool-card-item:hover{border:0;transform:none;box-shadow:0 6px 18px #234e8e0f}
:where(.study-tools-embed) .main-container a.tool-card-link{display:grid;grid-template-columns:36px minmax(0,1fr);align-content:start;align-items:center;gap:12px 10px;width:100%;min-height:144px;padding:30px 16px 18px;color:inherit;text-decoration:none}
:where(.study-tools-embed) .main-container .tool-card-link .tool-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px}
:where(.study-tools-embed) .main-container .tool-icon svg{width:20px;height:20px}
:where(.study-tools-embed) .main-container .tool-card-link .name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-width:0;padding:0;margin:0;font-size:15px;font-weight:500;line-height:1.6;color:#263445;overflow-wrap:anywhere}
:where(.study-tools-embed) .main-container .tool-card-link:hover .name{color:#3274ff}
:where(.study-tools-embed) .main-container .tool-card-link .desc{grid-column:1/-1;min-height:48px;margin:0;font-size:13px;line-height:1.85;color:#657b98;overflow-wrap:anywhere}
:where(.study-tools-embed) .main-container .favorite-btn{position:absolute;top:2px;right:2px;display:grid;place-items:center;width:28px;height:28px;border:0;background:transparent;color:#8ba2c1;font-size:16px;line-height:1;padding:0}
:where(.study-tools-embed) .main-container .favorite-btn[aria-pressed=true], :where(.study-tools-embed) .main-container .favorite-btn:hover{color:#b5903d}
:where(.study-tools-embed) .main-container .tone-tax{background:#edf4ff;color:#4087fc}:where(.study-tools-embed) .main-container .tone-payroll{background:#edf7ff;color:#2b8bbd}:where(.study-tools-embed) .main-container .tone-general{background:#fff5e8;color:#bb8636}:where(.study-tools-embed) .main-container .tone-finance{background:#f2eeff;color:#8f73df}:where(.study-tools-embed) .main-container .tone-document{background:#eaf7fb;color:#3399b7}:where(.study-tools-embed) .main-container .tone-image{background:#eaf8f0;color:#42a581}:where(.study-tools-embed) .main-container .tone-text{background:#fff6e5;color:#cb963b}:where(.study-tools-embed) .main-container .tone-query{background:#e8f6f3;color:#26968d}
:where(.study-tools-embed) .main-container .input-panel, :where(.study-tools-embed) .main-container .result-card, :where(.study-tools-embed) .main-container .schedule-panel, :where(.study-tools-embed) .main-container .subject-workspace, :where(.study-tools-embed) .main-container .utility-pending{border:0;border-radius:10px;background:#fff;box-shadow:none}
:where(.study-tools-embed) .main-container .tool-heading h1{font-size:24px;line-height:1.5;font-weight:600;color:#263445}
:where(.study-tools-embed) .main-container .tool-intro, :where(.study-tools-embed) .main-container .breadcrumbs, :where(.study-tools-embed) .main-container .workspace-year{color:#657b98}
:where(.study-tools-embed) .main-container .primary-result{background:#fff;color:#263445;border:0}
:where(.study-tools-embed) .main-container .primary-result>div{color:#3274ff}
:where(.study-tools-embed) .main-container .primary-result>span, :where(.study-tools-embed) .main-container .primary-result small{color:#657b98}
:where(.study-tools-embed) .main-container .button.secondary{background:#fff;border:1px solid #e0e7f2;color:#597393;box-shadow:none}
:where(.study-tools-embed) .main-container .input-wrap input:focus, :where(.study-tools-embed) .main-container .input-wrap select:focus, :where(.study-tools-embed) .main-container .input-wrap textarea:focus{border-color:#84ace7;box-shadow:0 0 0 2px #3274ff12}
:where(.study-tools-embed) .main-container .related-tools{border-top:0;margin-top:27px;padding-top:0}
:where(.study-tools-embed) .main-container .related-tools-heading h2{font-size:17px;font-weight:500}
:where(.study-tools-embed) .main-container :is(a,button,input,select,textarea,summary):focus-visible{outline-color:#3274ff}
/* The mobile landing page uses the same white cards; form controls retain their boundaries. */
:where(.study-tools-embed) #mToolsPanel{background:#f6f7fc;padding:20px 16px}
:where(.study-tools-embed) #mToolsPanel .hot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
:where(.study-tools-embed) #mToolsPanel .hot-card{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px;padding:20px 16px;border:0;border-radius:10px;background:#fff;box-shadow:none}
:where(.study-tools-embed) #mToolsPanel .hot-icon{width:32px;height:32px;flex:none;border-radius:8px;font-size:18px}
:where(.study-tools-embed) #mToolsPanel .hot-body{flex:1;min-width:0}
:where(.study-tools-embed) #mToolsPanel .hot-body h4{font-size:15px;line-height:1.6;color:#263445;font-weight:500;margin:3px 0 10px}
:where(.study-tools-embed) #mToolsPanel .hot-body p{font-size:13px;line-height:1.85;color:#657b98}
:where(.study-tools-embed) #mToolsPanel .hot-arrow{display:none}
@media(min-width:1151px) and (max-width:1250px){:where(.study-tools-embed) .main-container .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:801px) and (max-width:1150px){:where(.study-tools-embed) .main-container:has(>.sidebar-tool-switcher){gap:24px}:where(.study-tools-embed) .main-container .tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:801px) and (max-width:960px){:where(.study-tools-embed) .main-container .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 :where(.study-tools-embed) .main-container:has(>.sidebar-tool-switcher){display:block;padding:20px 16px 32px}
 .study-tools-embed .main-container:has(>.sidebar-tool-switcher){padding:12px 0 24px}
 :where(.study-tools-embed) .sidebar.sidebar-tool-switcher{display:none;position:fixed;top:16px;bottom:16px;left:16px;right:auto;width:calc(100% - 32px);min-width:0;max-width:360px;flex:none;height:auto;max-height:none;padding:12px 8px;border:0;background:#fff;z-index:11000;box-shadow:0 12px 40px #142a4224}
 :where(.study-tools-embed) .sidebar.sidebar-tool-switcher.visible{display:flex}
 :where(.study-tools-embed) .sidebar-shortcuts .sidebar-close{display:grid;place-items:center}
 :where(.study-tools-embed) .sidebar-backdrop{z-index:10999}
 :where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search input{font-size:16px}
 :where(.study-tools-embed) .sidebar-tool-switcher .sidebar-category-toggle{min-height:44px}
 :where(.study-tools-embed) .sidebar-tool-switcher .sidebar-tool-list .sidebar-nav-item{font-size:13px;min-height:36px}
 :where(.study-tools-embed) .main-container .home-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
 :where(.study-tools-embed) .main-container .home-title{flex:1;flex-wrap:wrap;gap:3px 9px;margin-bottom:0}
 :where(.study-tools-embed) .main-container .home-title h1{font-size:24px}
 :where(.study-tools-embed) .main-container .sidebar-toggle-btn{display:block;min-height:38px;padding:6px 10px;border:0;border-radius:7px;background:#fff;color:#597393;font-size:13px;white-space:nowrap}
 :where(.study-tools-embed) .main-container .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media(max-width:520px){
 :where(.study-tools-embed) .main-container .tool-grid, :where(.study-tools-embed) #mToolsPanel .hot-grid{grid-template-columns:minmax(0,1fr)}
 :where(.study-tools-embed) .main-container a.tool-card-link{min-height:124px;padding:30px 18px 18px}
 :where(.study-tools-embed) .main-container .tool-card-link .name{font-size:16px}
 :where(.study-tools-embed) .main-container .tool-card-link .desc{font-size:14px;min-height:0}
 :where(.study-tools-embed) .main-container .tool-heading h1{font-size:22px}
}
@media print{:where(.study-tools-embed) .sidebar.sidebar-tool-switcher, :where(.study-tools-embed) .sidebar-backdrop{display:none!important}:where(.study-tools-embed) .main-container:has(>.sidebar-tool-switcher){display:block;padding:0}}

/* Compact home and the same search frame used by study_nav. */
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search button{min-width:20px}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-shortcuts .sidebar-close{flex:none;align-self:center;width:30px;min-width:30px;min-height:32px;padding:0;border:0;border-radius:6px;background:transparent;color:#65788f;font-size:23px;line-height:1}
:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-shortcuts .sidebar-close:hover{background:#edf3ff;color:#3274ff}
:where(.study-tools-embed) .main-container .tool-home>.tools-home-actions{display:block;min-height:0;height:0;margin:0;padding:0}
@media(max-width:800px){:where(.study-tools-embed) .main-container .tool-home>.tools-home-actions{display:flex;justify-content:flex-end;height:auto;min-height:38px;margin:0 0 14px}:where(.study-tools-embed) .sidebar-tool-switcher .sidebar-search{min-height:42px}}

/* Interaction QA: keep feedback near inputs and make mobile results reachable. */
:where(.study-tools-embed) .main-container .tool-form-footer{display:none}
:where(.study-tools-embed) .main-container .field-error{margin:6px 0 0;font-size:12px;line-height:1.7;color:#b13e43}
:where(.study-tools-embed) .main-container .field-error[hidden], :where(.study-tools-embed) .main-container .utility-table-hint[hidden]{display:none!important}
:where(.study-tools-embed) .main-container .input-wrap :is(input,textarea)[aria-invalid=true]{border-color:#cf686b;background:#fffafa}
:where(.study-tools-embed) .main-container .utility-nowrap{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
:where(.study-tools-embed) .main-container .file-dropzone:focus-within{outline:2px solid #3274ff;outline-offset:3px}
:where(.study-tools-embed) .main-container input[type=range]:disabled{opacity:.45;cursor:not-allowed}
:where(.study-tools-embed) .main-container .file-settings .field-hint:empty{display:none}
:where(.study-tools-embed) .main-container #utilityResultCard{scroll-margin-top:70px}
@media(max-width:800px){
 .study-tools-embed .main-container:has(>.sidebar-tool-switcher){padding:12px 12px 28px}
 :where(.study-tools-embed) .main-container .tool-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
 :where(.study-tools-embed) .main-container .tool-heading h1{overflow-wrap:anywhere}
 :where(.study-tools-embed) .main-container .tool-title-line{min-width:0;flex-wrap:wrap;gap:4px 10px}
 :where(.study-tools-embed) .main-container .tool-form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px 18px;color:#657b98;font-size:12px;line-height:1.7}
 :where(.study-tools-embed) .main-container .tool-form-footer .button{flex:none;min-height:38px;padding:8px 14px}
 :where(.study-tools-embed) .main-container.utility-view .tool-form-footer{margin-top:18px;padding:0}
 :where(.study-tools-embed) .main-container .file-row-actions button{min-width:32px;min-height:32px}
 :where(.study-tools-embed) .main-container .utility-table-hint{margin:8px 0 0;font-size:12px}
 :where(.study-tools-embed) .main-container .result-card{scroll-margin-top:66px}
}

/* A title-level favorite control shares the card and sidebar saved state. */
:where(.study-tools-embed) .main-container .detail-favorite-btn{display:inline-grid;place-items:center;flex:none;align-self:center;width:34px;height:34px;padding:0;border:0;border-radius:7px;background:transparent;color:#8ba2c1;font-size:25px;line-height:1;cursor:pointer}
:where(.study-tools-embed) .main-container .detail-favorite-btn[aria-pressed=true], :where(.study-tools-embed) .main-container .detail-favorite-btn:hover{color:#b5903d}
:where(.study-tools-embed) .main-container .detail-favorite-btn:focus-visible{outline:2px solid #3274ff;outline-offset:2px}
@media(max-width:640px){:where(.study-tools-embed) .main-container .detail-favorite-btn{width:40px;height:40px;font-size:25px}}

:where(.study-tools-embed) .pdf-crop-preview{position:relative;display:table;max-width:100%;margin:auto;overflow:hidden;border-radius:2px}
:where(.study-tools-embed) .source-preview .pdf-crop-preview canvas{margin:0}
:where(.study-tools-embed) .pdf-crop-guide{position:absolute;pointer-events:none;border:2px solid #3274ff;box-shadow:0 0 0 500px #26344545}

/* The result region receives programmatic focus after the mobile jump. */
:where(.study-tools-embed) .main-container #utilityResultCard:focus{outline:none}

:where(.study-tools-embed) .page-editor-heading{gap:12px;align-items:center;flex-wrap:wrap}:where(.study-tools-embed) .page-order-list{margin-top:12px}:where(.study-tools-embed) .page-order-tile .page-delete:hover:not(:disabled){border-color:#e8b4ae;background:#fff3f1;color:#bf5346}
