/* 工具目录：每项只保留名称、用途及必要的权限标记。 */
body.tools-compact .tools-heading{margin-bottom:8px}
body.tools-compact .tools-heading h1{font-size:26px;margin:0}
body.tools-compact .tools-heading>div:first-child{background:none;padding-left:0}
body.tools-compact #toolCatalogAccessNotice{margin-bottom:22px!important}
body.tools-compact .tools-layout{grid-template-columns:150px minmax(0,1fr);gap:20px}
body.tools-compact .category-heading{margin-bottom:10px}
body.tools-compact .category-heading h2{font-size:18px}
body.tools-compact .section-mark,body.tools-compact .card-icon{display:none}
body.tools-compact .tool-section+.tool-section{margin-top:24px}
body.tools-compact .tool-card{min-height:96px;padding:16px;border-radius:10px;box-shadow:none}
body.tools-compact .card-title{min-height:24px;margin:0 0 6px;padding-right:28px}
body.tools-compact .tool-card h3{font-size:16px;line-height:1.5}
body.tools-compact .tool-card p{font-size:12px;line-height:1.6;margin:0}
body.tools-compact .tool-favorite{top:8px;right:7px;bottom:auto;min-height:36px;width:36px;background:transparent;font-size:20px;padding:0;color:#89988e}
body.tools-compact .tool-favorite[aria-pressed=true]{background:transparent;color:#a77a2e}
body.tools-compact .tool-shortcuts{padding:8px 0;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;margin-bottom:20px}
body.tools-compact .tool-shortcuts h2{width:32px;font-size:12px}
body.tools-compact .tool-shortcuts a{font-size:12px;padding:3px 8px}
body.tools-compact .tools-benefits{padding:14px 16px;margin-top:16px}
body.tools-compact .tools-benefits strong{font-size:15px}
body.tools-compact .tools-benefits p{font-size:12px;margin-top:3px}
body.tools-compact .tools-benefits a{background:transparent;color:var(--brand);font-size:13px;padding:0;min-height:32px}
@media(max-width:720px){
 body.tools-compact .tools-heading h1{font-size:23px}
 body.tools-compact .tools-layout{display:block}
 body.tools-compact .tool-categories{margin-bottom:20px}
 body.tools-compact .tool-card{padding:12px;min-height:84px}
 body.tools-compact .tool-card h3{font-size:14px}
 body.tools-compact .card-title{padding-right:22px}
 body.tools-compact .tool-favorite{right:2px;top:5px;width:32px}
 body.tools-compact .tool-shortcuts{padding:8px 0}
 body.tools-compact .tool-shortcuts a{font-size:11px;min-height:32px}
 body.tools-compact .tools-benefits{gap:8px}
}

/* 安静的底色，让工具名称、当前分类和付费标记承担重点。 */
body.tools-compact{background:var(--bg)}
body.tools-compact .tool-card.reference{background:var(--card)}
body.tools-compact .tool-card:hover{background:#f3f7f2;border-color:#8cb6aa;box-shadow:none}
body.tools-compact .tool-card:focus-visible,body.tools-compact .tool-favorite:focus-visible{outline:3px solid #65a89a;outline-offset:3px}
