/* HosBot Marketplace: template grid, category chips, setup dialog, add button and toast. */
.mk{max-width:1180px;margin:0 auto;padding:88px 32px 120px;color:#1d1d1f}
.mk *{box-sizing:border-box}
.mk-kicker{color:#6e6e73;font-size:17px;font-weight:500;margin:0 0 18px}
.mk-lede{color:#6e6e73;font-size:19px;line-height:1.6;max-width:640px;margin:22px 0 0}
.mk .bot.lg{width:52px;height:52px;border-radius:18px;gap:7px}.mk .bot.lg i{width:5px;height:14px}
.mk .bot.md{width:40px;height:40px;border-radius:14px;gap:6px}.mk .bot.md i{width:4px;height:11px}
.mk .bot.sm{width:28px;height:28px;border-radius:9px;gap:4px}.mk .bot.sm i{width:3px;height:8px}
.mk button{font:inherit}
.mk :focus-visible{outline:2px solid #0071e3;outline-offset:3px}

/* Add bot button (state set by marketplace.js) */
.hb-add{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border:0;border-radius:999px;background:#0071e3;color:#fff;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
.hb-add:hover{background:#0077ed}
.hb-add-icon{position:relative;width:12px;height:12px;flex:0 0 12px}
.hb-add-icon:before,.hb-add-icon:after{content:"";position:absolute;left:50%;top:50%;width:12px;height:1.6px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%)}
.hb-add-icon:after{transform:translate(-50%,-50%) rotate(90deg)}
.hb-add.is-added{background:#e8f5ee;color:#2f6b45}
.hb-add.is-added .hb-add-icon:before{width:5px;transform:translate(-90%,10%) rotate(45deg)}
.hb-add.is-added .hb-add-icon:after{width:10px;transform:translate(-30%,-40%) rotate(-50deg)}
.hb-add.ghost{background:#f0f6ff;color:#0066cc}.hb-add.ghost:hover{background:#e3effd}
.hb-add.ghost.is-added{background:#e8f5ee;color:#2f6b45}

/* Setup sheet */
.hb-spec{margin:0;display:grid;gap:0}
.hb-spec>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:14px 0;border-top:1px solid #ececf0}
.hb-spec>div:first-child{border-top:0}
.hb-spec dt{font-size:13px;font-weight:600;color:#6e6e73}
.hb-spec dd{margin:0;font-size:15px;line-height:1.55;color:#1d1d1f}
.hb-spec ol{margin:0;padding-left:20px}.hb-spec li+li{margin-top:4px}
.hb-tags{display:flex;flex-wrap:wrap;gap:6px}
.hb-tags span{font-size:13px;background:#f5f5f7;border-radius:999px;padding:4px 10px;color:#3a3a3c}
.hb-result{background:#f5f7fa;border-radius:12px;padding:10px 12px;font-size:14px!important;color:#3a4a5c!important}

/* Toast */
.hb-toast{position:fixed;left:50%;bottom:24px;z-index:80;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:12px 14px 12px 18px;border-radius:16px;background:#1d1d1f;color:#fff;font-size:14px;box-shadow:0 18px 40px #0000002e;transform:translate(-50%,140%);opacity:0;transition:transform .3s,opacity .3s;font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Segoe UI",sans-serif}
.hb-toast.show{transform:translate(-50%,0);opacity:1}
.hb-toast b{font-weight:600}
.hb-toast button{border:0;background:#ffffff1f;color:#fff;border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.hb-toast a{color:#7fb4ff;text-decoration:none;white-space:nowrap;font-size:13px}

@media(max-width:760px){.mk{padding:56px 18px 90px}.mk-lede{font-size:17px}.hb-spec>div{grid-template-columns:minmax(0,1fr);gap:4px}.hb-toast{flex-wrap:wrap;gap:8px 12px;bottom:16px}}
@media(prefers-reduced-motion:reduce){.hb-toast,.hb-add{transition:none}}

/* Template grid, category chips and setup dialog */
.v1-chips{display:flex;flex-wrap:wrap;gap:8px;margin:44px 0 28px}
.v1-chip{border:1px solid #e3e6eb;background:#fff;color:#3a3a3c;border-radius:999px;padding:9px 15px;font-size:14px;cursor:pointer}
.v1-chip span{color:#86868b;margin-left:3px}
.v1-chip:hover{background:#f5f5f7}
.v1-chip[aria-pressed=true]{background:#1d1d1f;border-color:#1d1d1f;color:#fff}.v1-chip[aria-pressed=true] span{color:#ffffffa0}
.v1-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.v1-card{display:flex;flex-direction:column;padding:26px;border:1px solid #e5e5ea;border-radius:24px;background:#fff;transition:box-shadow .2s,transform .2s}
.v1-card:hover{box-shadow:0 18px 40px #1a2f4512;transform:translateY(-3px)}
.v1-card[hidden]{display:none}
.v1-top{display:flex;align-items:center;gap:10px}
.v1-cat{font-size:13px;color:#6e6e73}
.v1-pop{margin-left:auto;font-size:11px;font-weight:600;color:#b06b39;background:#ffefe4;border-radius:999px;padding:4px 9px}
.v1-card h2{font-size:21px;letter-spacing:-.4px;margin:20px 0 6px}
.v1-card>p{margin:0;color:#6e6e73;font-size:15px;line-height:1.55}
.v1-card .v1-when{margin:16px 0 22px;font-size:13px;color:#3a3a3c}
.v1-when span{display:block;font-weight:600;color:#86868b;font-size:12px;margin-bottom:2px}
.v1-actions{margin-top:auto;display:flex;gap:8px;align-items:center}
.v1-more{border:0;background:transparent;color:#0066cc;font-size:14px;padding:10px 8px;cursor:pointer}
.v1-more:hover{text-decoration:underline}
.v1-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100vh - 48px);border:0;border-radius:26px;padding:0;box-shadow:0 30px 80px #0000003a}
.v1-dialog::backdrop{background:#1d1d1f66;backdrop-filter:blur(3px)}
.v1-d-in{padding:30px}
.v1-d-head{display:flex;gap:14px;align-items:center;margin-bottom:8px}
.v1-d-head h2{font-size:26px;letter-spacing:-.6px;margin:0}.v1-d-head p{margin:2px 0 0;color:#6e6e73;font-size:14px}
.v1-d-tag{color:#3a3a3c;font-size:16px;line-height:1.55;margin:12px 0 10px}
.v1-d-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap}
.v1-close{position:absolute;top:14px;right:14px;width:34px;height:34px;border:0;border-radius:50%;background:#f5f5f7;font-size:18px;cursor:pointer;color:#3a3a3c}
@media(max-width:1000px){.v1-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.v1-grid{grid-template-columns:minmax(0,1fr)}.v1-chips{flex-wrap:nowrap;overflow-x:auto;margin-right:-18px;padding-right:18px;scrollbar-width:none}.v1-chip{flex:0 0 auto}.v1-d-in{padding:24px 20px}}

/* Hero: copy on the left, a stack of templates switching from "+ Add" to "Added" on the right */
.mkh-v3{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:48px;align-items:center}
.mkh .mkh-title{display:block;white-space:normal;font-size:clamp(2.6rem,5vw,4.4rem);font-weight:600;letter-spacing:-.05em;line-height:1.05;margin:0;text-wrap:balance}
.mkh .mkh-title .soft{display:block;color:#788493}
.mkh .mkh-lede{color:#6e6e73;font-size:19px;line-height:1.6;margin:20px 0 0;max-width:620px;text-wrap:pretty}
.mkh-stats{display:flex;flex-wrap:wrap;gap:10px 28px;list-style:none;padding:0;margin:28px 0 0;color:#6e6e73;font-size:15px}
.mkh-stats b{color:#1d1d1f;font-weight:600;margin-right:3px}
.mkh-stack{position:relative;display:flex;flex-direction:column;gap:12px;padding:28px;border-radius:30px;background:#f5f5f7}
.mkh-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 14px 14px 16px;border-radius:18px;background:#fff;box-shadow:0 6px 20px #1a2f450d}
.mkh-card b{display:block;font-size:15px}.mkh-card small{display:block;color:#6e6e73;font-size:13px;line-height:1.4}
.mkh-fake{position:relative;display:grid;width:92px;height:34px;font-size:13px;font-weight:600}
.mkh-fake i{grid-area:1/1;display:grid;place-items:center;border-radius:999px;font-style:normal;animation:mkh-add 6s infinite}
.mkh-fake i:first-child{background:#0071e3;color:#fff}
.mkh-fake i:last-child{background:#e8f5ee;color:#2f6b45;animation-name:mkh-added}
.mkh-card:nth-child(2) i{animation-delay:1.2s}.mkh-card:nth-child(3) i{animation-delay:2.4s}
@keyframes mkh-add{0%,15%{opacity:1;transform:scale(1)}20%{transform:scale(.92)}25%,85%{opacity:0}100%{opacity:1}}
@keyframes mkh-added{0%,20%{opacity:0;transform:scale(.9)}27%,85%{opacity:1;transform:scale(1)}92%,100%{opacity:0}}
@media(max-width:1000px){.mkh-v3{grid-template-columns:minmax(0,1fr);gap:32px}}
@media(max-width:640px){.mkh .mkh-lede{font-size:17px}.mkh-stats{gap:6px 18px;font-size:14px}.mkh-stack{padding:16px;border-radius:24px}.mkh-card small{display:none}.mkh-fake{width:84px}}
@media(prefers-reduced-motion:reduce){.mkh-fake i{animation:none}.mkh-fake i:last-child{opacity:0}}
