/* Gerador público: os componentes visuais vêm dos estilos canônicos carregados antes deste arquivo. */
:root{--host-ink:#191923;--host-muted:#6d6a7b;--host-line:#e5e3ed;--host-purple:#8c74d9;--host-link:#6751af;--host-dark:#17171f;--host-dark-card:#22212b;--host-dark-line:#3a3747;--host-lime:#b5d253}

.triobum-tools-page{margin:0;background:#fff;color:var(--host-ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
.triobum-tools-page button,.triobum-tools-page input,.triobum-tools-page select{font:inherit}
.triobum-tools-page.triobum-embed-page{width:100%;background:#fff;color:var(--host-ink)}
.triobum-tools-page.triobum-embed-page .triobum-embed-page__generator{padding:0;border-top:0;background:var(--host-dark);color:#f8f7fb;--webmcp-ink:#f3f1f8;--webmcp-muted:#c6c2d2;--webmcp-faint:#aaa6b9;--webmcp-line:#393541;--webmcp-panel:#28242f;--webmcp-link:#c4acf6}
.triobum-tools-page.triobum-embed-page>.triobum-embed-page__shell{max-width:none}
.triobum-tools-page.triobum-embed-page>.triobum-embed-page__shell>.webmcp-docs__entry-group:not(.triobum-embed-page__generator){max-width:1080px;margin-inline:auto}
.host-generator__inner{max-width:1080px;margin:0 auto;padding:42px 48px 60px}

/* Configuração aprovada: os três cards permanecem com a geometria do preview anterior. */
.host-config-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.host-config-card{min-width:0;padding:22px;border:1px solid var(--host-dark-line);border-radius:14px;background:var(--host-dark-card);box-shadow:0 8px 22px #00000020}
.host-config-card__number,.triobum-embed-page .triobum-embed-page__panel-heading [data-preview-state]{color:var(--host-lime);font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em}
.triobum-embed-page .triobum-embed-page__panel-heading [data-preview-state]{text-transform:uppercase}
.triobum-tools-page .host-panel__state{color:var(--host-lime);font:700 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.host-config-card h3{margin:14px 0 8px;color:#fff;font-size:20px;line-height:1.2}
.host-config-card p{margin:0;color:#bdb9c9;font-size:13px;line-height:1.55}
.host-toggle-list{display:grid;gap:10px;margin:19px 0 0;padding:0;border:0}
.host-toggle{display:flex;align-items:flex-start;gap:10px;min-width:0;color:#e9e7ef;font-size:12px;line-height:1.35;cursor:pointer}
.host-toggle input{flex:none;width:17px;height:17px;margin:1px 0 0;accent-color:var(--host-purple)}
.host-toggle span{display:grid;gap:3px;min-width:0}
.host-toggle strong{font-weight:700}
.host-toggle small{color:#a49fb2;font-size:11px;line-height:1.35}
.host-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.host-field{display:grid;gap:7px;color:#c2bece;font-size:11px;font-weight:700}
.host-config-card .host-field--mode{margin-top:18px}
.host-field select,.host-field .location-combobox-input{width:100%;height:40px;padding:0 40px 0 9px;border:1px solid #514d60;border-radius:8px;background:#2b2936;color:#fff;outline:none;color-scheme:dark}
.host-field .location-combobox{position:relative;width:100%;max-width:none}
.triobum-tools-page .triobum-embed-page__combo-indicator{position:absolute;right:15px;top:14px;width:8px;height:8px;border-right:2px solid #dfd9eb;border-bottom:2px solid #dfd9eb;transform:rotate(45deg);pointer-events:none}
.triobum-tools-page .location-combobox:has(.location-combobox-input[aria-expanded="true"]) .triobum-embed-page__combo-indicator{transform:rotate(225deg)}
.host-fixed-value{margin-top:14px!important;color:#a49fb2!important;font-size:11px!important}
.host-fixed-value strong{color:#fff}
.host-range-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:22px;color:#e9e7ef;font-size:12px;font-weight:700}
.host-range-heading output{color:#cbbcf1;font-variant-numeric:tabular-nums;white-space:nowrap}
.host-range{display:block;width:100%;height:22px;margin:10px 0 0;padding:0;border:0;accent-color:var(--host-purple);cursor:pointer}
.host-range-help{margin-top:2px!important;color:#a49fb2!important;font-size:11px!important}
.host-config-status{min-height:18px;margin:22px 0 0;color:#c9c5d3;font-size:12px;line-height:1.5}

/* Amostra independente, no fluxo da página quando inline. */
.triobum-embed-page__preview.host-sample-panel{position:relative;flex-direction:column;gap:22px}
/* O texto faz fade sem ocupar o slot dos botões durante a travessia. */
.triobum-embed-page__preview.host-sample-panel>.triobum-embed-page__placeholder{position:absolute;inset:0;pointer-events:none}

@media(max-width:900px){
  .host-config-grid{grid-template-columns:1fr 1fr}
  .host-config-card:last-child{grid-column:1/-1}
}
@media(max-width:700px){
  .host-generator__inner{padding:32px 24px 42px}
  .host-config-grid{grid-template-columns:1fr}
  .host-config-card:last-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Amostra e código: mesmo acabamento dos cards de configuração aprovados. */
.triobum-embed-page .triobum-embed-page__panel{border-color:var(--host-dark-line);border-radius:14px;background:var(--host-dark-card);box-shadow:0 8px 22px #00000020}
.triobum-embed-page .triobum-embed-page__panel-heading{border-bottom:0;border-radius:0;background:transparent}
.triobum-embed-page .triobum-embed-page__panel-heading h3{font-size:20px;line-height:1.2}
.triobum-embed-page .triobum-embed-page__preview-shell{background:transparent}
.triobum-embed-page .triobum-embed-page__preview{border-color:#514d60;background:var(--host-dark-card)}
.triobum-embed-page .triobum-embed-page__preview-status,.triobum-embed-page .triobum-embed-page__notice{color:#bdb9c9}
.triobum-embed-page .triobum-embed-page__panel .triobum-embed-page__code{background:var(--host-dark)}

/* Só a mudança de tema do gerador dispensa a linha; o catálogo mantém o divisor canônico. */
.triobum-tools-page .triobum-embed-page__generator{border-top:0}

.host-sample-panel>[data-tools-preview][data-tools-mode="inline"]{align-self:center;width:max-content;max-width:100%}

/* A introdução mantém o contrato de leitura do gerador de stories, inclusive eyebrow e Markdown. */
.triobum-tools-page .triobum-embed-page__intro{max-width:1080px;margin-inline:auto;padding:54px 48px 60px}
.triobum-tools-page .triobum-embed-page__intro>.webmcp-docs__eyebrow{max-width:700px;margin:0 0 16px;color:var(--host-link);font-size:11px;letter-spacing:.15em;font-weight:700}
.triobum-tools-page .triobum-embed-page__intro>h2{max-width:890px;margin:0;font-size:34px;line-height:1.26;letter-spacing:-.035em;font-weight:750}
.triobum-tools-page .triobum-embed-page__intro>p:not(.webmcp-docs__eyebrow){max-width:700px;margin:20px 0 0;color:var(--host-muted);font-size:16px;line-height:1.65}
.triobum-tools-page .triobum-embed-page__intro .webmcp-docs__entry-paths{margin-top:30px}

/* Mesma largura do gerador; padding, grupos e cards usam o componente canônico. */
.host-directory{max-width:1080px;margin:0 auto;padding:0}

/* Introdução em dois parágrafos, com a mesma tipografia e largura já aprovadas. */
.host-hero .webmcp-docs__description + .webmcp-docs__description{margin-top:1em}

@media(max-width:700px){
  .triobum-tools-page .triobum-embed-page__intro{padding:34px 24px 38px}
  .triobum-tools-page .triobum-embed-page__intro>h2{font-size:28px;line-height:1.3}
  .triobum-tools-page .triobum-embed-page__intro>p:not(.webmcp-docs__eyebrow){font-size:15px}
}
