/* MCP gallery: all rules stay inside the mcg namespace. */
.mcg-page{width:min(1190px,calc(100% - 20px));max-width:1190px;min-width:0;background:#f7f7f7;border-inline:1px solid #ededed}
.mcg-page [hidden]{display:none!important}
.mcg-hero{padding:24px 24px 48px;text-align:center;border-bottom:1px solid #ededed}
.mcg-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:26px;padding:3px 8px;border:1px solid #e8e8e8;border-radius:6px;background:#fff;box-shadow:0 1px 2px #0000000a;color:#262626;font-size:13px;line-height:18px}
.mcg-badge svg{width:14px;height:14px;fill:#d4d4d4}
.mcg-hero h1{max-width:728px;margin:24px auto 16px;font-size:64px;line-height:1;letter-spacing:-.02em;font-weight:550;text-wrap:wrap}
.mcg-hero h1:lang(zh-CN){word-break:keep-all}
.mcg-description{max-width:530px;margin:0 auto;font-size:16px;line-height:22px;color:#777;text-wrap:pretty}
.mcg-ctas{display:flex;justify-content:center;gap:16px;margin-top:24px}
.mcg-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 18px;border:1px solid #e2e2e2;border-radius:6px;background:#fff;box-shadow:0 1px 2px #0000000a;color:#262626;font:500 14px/20px var(--font-body);text-align:center;text-decoration:none;cursor:pointer}
.mcg-ctas .mcg-button{min-width:228px}
.mcg-button:hover{background:#f1f1f1;border-color:#ccc}
.mcg-button-dark{background:#171717;border-color:#171717;color:#fff}
.mcg-button-dark:hover{background:#333;border-color:#333}
.mcg-filters{display:flex;align-items:center;justify-content:space-between;gap:24px;height:80px;max-width:100%;padding:0 16px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.mcg-filters button{position:relative;flex:0 0 auto;min-height:36px;padding:8px 14px;background:transparent;border:0;color:#929292;font-size:14px;line-height:20px;white-space:nowrap}
.mcg-filters button:hover{color:#333}
.mcg-filters button[aria-pressed="true"]{color:#171717}
.mcg-filters button[aria-pressed="true"]::after{position:absolute;right:0;bottom:0;left:0;height:2px;background:#171717;content:""}
.mcg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:0 3px 4px}
.mcg-card{display:flex;position:relative;flex-direction:column;min-width:0;min-height:192px;padding:32px;border:1px solid #ededed;border-radius:12px;background:#fff;box-shadow:0 2px 3px #00000005;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.mcg-card:hover{border-color:#ccc;box-shadow:0 3px 10px #00000008}
.mcg-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:24px}
.mcg-apps{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px}
.mcg-app{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 auto}
.mcg-app .mcg-kept,.mcg-app .mcg-assistant,.mcg-app .mcg-workspace{display:none}
.mcg-app[data-app="kept"] .mcg-kept{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;background:#1a1a1a;color:#fff;font:600 20px/1 var(--font-heading)}
.mcg-app[data-app="assistant"] .mcg-assistant{display:block;width:28px;height:28px;fill:none;stroke:#c67a5c;stroke-width:2;stroke-linecap:round}
.mcg-app[data-app="workspace"] .mcg-workspace{display:block;width:25px;height:25px;fill:#617d6b}
.mcg-chip{max-width:72%;padding:3px 7px;border:1px solid #f1f1f1;border-radius:5px;background:#fafafa;box-shadow:0 1px 2px #00000006;color:#333;font-size:12px;line-height:16px;text-align:right}
.mcg-card h2{margin:0 0 6px;color:#171717;font-size:18px;line-height:24px;letter-spacing:-.025em;font-weight:600;overflow-wrap:anywhere}
.mcg-card>p{max-width:300px;color:#777;font-size:16px;line-height:22px;overflow-wrap:anywhere}
.mcg-featured{align-self:flex-start;margin-top:14px;color:#657468;font-size:12px;line-height:16px}
.mcg-pagination{display:flex;flex-direction:column;align-items:center;gap:16px;padding:32px 16px 64px}
.mcg-pagination p{color:#777;font-size:13px;line-height:20px}
.mcg-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mcg-page :focus-visible{outline:2px solid #38684c;outline-offset:3px}
@media(max-width:800px){
.mcg-hero{padding:10px 0 48px}
.mcg-hero h1{margin-top:24px;margin-bottom:8px;font-size:32px;line-height:32px;letter-spacing:-.02em}
.mcg-description{font-size:18px;line-height:24px}
.mcg-ctas{flex-direction:column;gap:16px;margin-top:24px}
.mcg-ctas .mcg-button{width:100%}
.mcg-filters{height:72px;justify-content:flex-start;gap:4px;padding:0 12px}
.mcg-filters button{padding-inline:16px}
.mcg-grid{grid-template-columns:minmax(0,1fr);padding-inline:3px}
.mcg-card{min-height:192px;padding:24px}
.mcg-card-top{margin-bottom:24px}
.mcg-chip{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.mcg-card{transition:none}}
