:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#111;color:#eee}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.wrap{max-width:960px;margin:auto;padding:24px 28px 80px}.page-head{display:flex;justify-content:space-between;align-items:center;color:#aaa;font-size:13px}.page-head a{color:#ddd;text-decoration:none}.intro{padding:76px 0 42px;max-width:680px}.intro>p:first-child,.actions-head p,#tool-service{color:#e58753;font-size:11px;font-weight:700;letter-spacing:.12em}.intro h1{font-size:clamp(32px,6vw,54px);letter-spacing:-.05em;line-height:1.1;margin:12px 0 16px}.intro>p:last-child{color:#aaa;line-height:1.6;max-width:600px}#notice{min-height:22px;color:#e7ae89;font-size:13px}.services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.service,.actions{border:1px solid #303030;border-radius:18px;background:#191919}.service{padding:22px}.service-head,.actions-head,.result-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.service h2,.actions h2{font-size:20px;margin:0}.service p{color:#a0a0a0;font-size:13px;line-height:1.5}.service .status{display:inline-block;margin:10px 0;padding:5px 9px;border-radius:30px;background:#303030;font-size:11px;color:#bbb}.service .status.active{background:#21412f;color:#9de1b4}.service button,.actions button,dialog button{border:1px solid #4a4a4a;border-radius:9px;background:#292929;color:#eee;padding:9px 13px;font-size:12px}.service button.primary,dialog button[type=submit]{background:#eee;color:#111;border-color:#eee;font-weight:650}.service-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.actions{margin-top:28px;padding:22px}.actions-head p{margin:0 0 6px}.actions-head select{background:#252525;color:#eee;border:1px solid #444;padding:8px;border-radius:8px;max-width:50%}.search{display:block;margin:22px 0 14px;color:#aaa;font-size:12px}.search input{display:block;width:100%;margin-top:7px;padding:12px 14px;border:1px solid #444;border-radius:10px;background:#111;color:#eee}.tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:520px;overflow:auto}.tool{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px}.tool strong{font-size:12px}.tool small{color:#999;line-height:1.4}dialog{width:min(620px,calc(100vw - 28px));max-height:90vh;overflow:auto;background:#1a1a1a;color:#eee;border:1px solid #555;border-radius:16px;padding:22px}dialog::backdrop{background:#000b}dialog header{display:flex;justify-content:space-between;align-items:start}dialog h2{margin:3px 0 12px}dialog header button,.result-head button{font-size:20px;border:0;background:none;padding:0}#tool-description{color:#aaa;font-size:13px;line-height:1.5}#tool-fields label{display:block;margin:14px 0;font-size:12px;color:#bbb}#tool-fields input,#tool-fields select,#tool-fields textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #444;border-radius:8px;background:#111;color:#eee}#tool-fields textarea{min-height:90px}#tool-warning{color:#f0bb8b;font-size:12px}dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#result{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto;padding:16px;border-radius:9px;background:#111;font-size:12px;line-height:1.5}@media(max-width:650px){.wrap{padding:18px}.intro{padding:48px 0 24px}.services,.tools{grid-template-columns:1fr}.actions-head{align-items:start;flex-direction:column}.actions-head select{max-width:100%;width:100%}}

.embedded-connector .page-head,.embedded-connector .intro,.embedded-connector .services{display:none}.embedded-connector .wrap{max-width:none;padding:10px 18px}.embedded-connector .actions{margin:0}.embedded-connector #notice{min-height:0}.embedded-connector .tools{max-height:420px}
.service-title{display:flex;align-items:center;gap:10px}.service-icon{display:block;width:24px;height:24px;object-fit:contain}
.catalog-note{grid-column:1/-1;margin:0;color:#e7ae89;font-size:13px}
.catalog-note button,.catalog-sentinel button{margin-left:8px;border:0;background:none;color:#f2b68c;padding:0;text-decoration:underline;text-underline-offset:2px}
.catalog-sentinel{grid-column:1/-1;min-height:1px;color:#999;font-size:12px}
.market-section{margin:20px 0 38px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 18px}.section-heading p{margin:0 0 5px;color:#e58753;font-size:11px;font-weight:700;letter-spacing:.12em}.section-heading h2{margin:0;font-size:25px;letter-spacing:-.03em}.section-heading>span{color:#999;font-size:12px}.catalog-section{border-top:1px solid #303030;padding-top:34px}.catalog-search{display:block;margin:0 0 20px;color:#aaa;font-size:12px}.catalog-search input{display:block;width:100%;margin-top:8px;padding:15px 17px;border:1px solid #484848;border-radius:12px;background:#1b1b1b;color:#eee;font-size:15px;outline:none}.catalog-search input:focus{border-color:#e58753}.catalog-card{min-height:205px;display:flex;flex-direction:column}.catalog-card .service-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:7px}.catalog-card .service-actions{margin-top:auto;padding-top:14px}.service-category{color:#777;font-size:11px}.empty-state{grid-column:1/-1;padding:28px;border:1px dashed #3a3a3a;border-radius:14px;color:#999;font-size:13px}.service-icon-fallback{display:grid;place-items:center;border-radius:7px;background:#38302b;color:#f1ad7d;font-size:15px;font-weight:700}.embedded-connector .market-section{display:none}

.service .connect-error{margin:12px 0 0;color:#efaa88;font-size:12px}

/* Keep the marketplace in one desktop viewport; only the app list scrolls when needed. */
.wrap{max-width:1240px;height:100dvh;padding:18px 28px 24px;display:flex;flex-direction:column;overflow:hidden}
.intro{max-width:none;padding:18px 0 20px;display:flex;align-items:end;justify-content:space-between;gap:28px}
.intro>div>p{margin:0 0 4px;color:#e58753;font-size:11px;font-weight:700;letter-spacing:.12em}
.intro h1{margin:0;font-size:38px;line-height:1;letter-spacing:-.04em}
.intro>p:last-child{max-width:520px;margin:0;color:#aaa;font-size:13px;line-height:1.5}
#notice{min-height:0;margin:0 0 12px;line-height:1.4}
#notice:empty{display:none}
.market-section{margin:0 0 20px}
.section-heading{align-items:center;margin-bottom:10px}
.section-heading h2{font-size:21px}
.services{gap:10px}
.service{min-width:0;padding:14px 16px;border-radius:12px}
.service h2{font-size:17px}
.service .status{margin:0;white-space:nowrap}
.service-actions{margin-top:10px;gap:6px}
.service button{padding:7px 10px}
#services{max-height:min(28vh,260px);overflow:auto}
.catalog-section{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;border-top:1px solid #303030;padding-top:18px;margin-bottom:0}
.catalog-section .section-heading{flex:none}
.catalog-search{margin:0}
.catalog-search input{width:240px;margin:0;padding:8px 11px;border-radius:8px;font-size:13px}
#catalog{grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;min-height:0;overflow:auto;gap:12px;padding:2px 8px 8px 2px}
.catalog-card{min-height:62px;flex-direction:row;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;transition:border-color .15s ease,background-color .15s ease}
.catalog-card:hover{border-color:#444;background:#202020}
.catalog-card .service-head{min-width:0;flex:1}
.catalog-card .service-title{min-width:0;gap:10px;font-size:14px;line-height:1.25}
.catalog-card .service-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.catalog-card .service-icon{width:24px;height:24px;flex:none}
.catalog-card .service-actions{margin:0;padding:0;flex:none}
.catalog-card button{min-height:34px;padding:7px 11px;font-size:12px;white-space:nowrap}
.catalog-card button.primary{background:#30251e;border-color:#805438;color:#f2b68c}
.catalog-card button.primary:hover{background:#443024;border-color:#b5744d;color:#ffcca6}
.catalog-card button:focus-visible{outline:2px solid #e58753;outline-offset:2px}
.actions-open .wrap{height:auto;min-height:100dvh;overflow:visible}
.actions-open #catalog{max-height:350px}
.embedded-connector .wrap{height:auto;min-height:0;display:block;overflow:visible;max-width:none;padding:10px 18px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){#catalog{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px),(max-height:620px){.wrap{height:auto;min-height:100dvh;overflow:visible;padding:18px}.intro{display:block;padding:28px 0 22px}.intro>p:last-child{margin-top:10px}.catalog-section{overflow:visible}.catalog-section .section-heading{align-items:stretch;flex-direction:column}.catalog-search input{width:100%}#services,#catalog{max-height:none;overflow:visible}#catalog{grid-template-columns:repeat(2,minmax(0,1fr))}.services{grid-template-columns:1fr}}
@media(max-width:460px){#catalog{grid-template-columns:1fr}}
