/* Uses the existing theme palette. Compact layout is scoped to tools and Planner. */
.tools-view .module-grid{grid-auto-rows:auto;gap:16px}
.tools-view .module-card{min-height:244px;padding:18px;border-radius:16px}
.tools-view .module-card .module-symbol{width:40px;height:40px;min-height:40px;margin-bottom:14px;border-radius:11px}
.tools-view .module-card .badge{top:18px;right:18px}
.tools-view .module-card h3{font-size:16px;margin-bottom:7px}
.tools-view .module-card p{margin-bottom:12px}
.tools-view .module-card .module-meta{margin-bottom:12px}
.tools-view .module-card>a.tool-open{min-height:44px;padding:10px 12px;border-radius:10px}
.tools-view .module-card>a.tool-open::after{border-radius:16px}
body #plannerView #plannerBoard.is-mini .planner-mini-card>.p21-mini-meta{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;min-width:0;text-align:left;font:500 11px/1.45 system-ui;color:var(--suite-muted)}
.p21-mini-state{flex-shrink:0;padding:2px 7px;border:1px solid var(--suite-line);border-radius:6px;background:var(--suite-soft);color:var(--suite-text);font-weight:700}
.status-in_progress .p21-mini-state{color:var(--suite-accent);background:var(--suite-accent-soft);border-color:var(--suite-accent-line)}
.p21-mini-assignees{min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body #plannerView #plannerBoard.is-mini .planner-mini-card>.planner-mini-task{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.p21-archive-paging{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:14px;color:var(--suite-muted);font-size:13px}
.p21-archive-paging button{min-height:44px;padding:9px 15px}
@media(max-width:1024px){
 .tools-view .module-card{min-height:220px;padding:16px}
 body #appView #plannerView .tenant-planner-heading{gap:8px;margin-bottom:10px}
 body #appView #plannerView .planner-tenant-switcher>span:first-child,
 body #appView #plannerView .tenant-planner-toolbar>label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body #appView #plannerView .planner-tenant-select-shell,
 body #appView #plannerView #plannerSearch{height:44px;min-height:44px;border-radius:10px}
 body #appView #plannerView :is(#plannerStatus,#plannerSevdeskSync){line-height:1.35;margin-top:4px;margin-bottom:6px;font-size:11px}
 body #appView #plannerView #pmPlannerSelection{margin-bottom:10px;gap:6px}
 body #appView #plannerView #pmPlannerSelection select,
 body #appView #plannerView #plannerBoard .p21-column-sort select{height:44px;min-height:44px;border-radius:10px}
 body #appView #plannerView #plannerBoard .tenant-planner-column>header{padding-bottom:6px}
 body #appView #plannerView #plannerBoard .p21-column-sort{gap:3px;margin-bottom:8px}
 body #appView #plannerView #plannerBoard .p21-order-creator{color:var(--suite-muted);font-size:11px}
 .tenant-planner-dialog .tenant-planner-dialog-header .eyebrow{line-height:1.4}
}
@media(min-width:1600px){.tools-view .module-card{min-height:258px}}
@media(prefers-reduced-motion:reduce){.tools-view .module-card{transition:none}}
