:root{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#17313d;background:#eef7fa;
  --primary:#07517a;--primary-2:#0a6b9f;--line:#d7e3e8;--muted:#60737d;
  --ok:#176b4d;--danger:#8b2525;--warn:#8a5b00;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f5fbfd 0,#eef7fa 240px,#eef7fa 100%)}
.topbar{background:#ffffffed;backdrop-filter:blur(10px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.topbar-inner{max-width:1220px;margin:auto;min-height:68px;padding:10px 20px;display:flex;align-items:center;gap:26px}
.brand{font-weight:900;font-size:20px;color:var(--primary);text-decoration:none}.topbar nav{display:flex;gap:16px;align-items:center;flex:1}
.topbar nav a,.link-button{border:0;background:none;color:#31505f;font:inherit;font-weight:700;text-decoration:none;cursor:pointer;padding:5px}.logout-form{margin:0}.identity{text-align:right;display:flex;flex-direction:column}.identity small{color:var(--muted)}
.wrap{max-width:1220px;margin:36px auto;padding:0 20px 52px}.wrap.narrow{max-width:540px;margin-top:70px}
.card{background:#fff;border:1px solid #e3edf1;border-radius:24px;padding:32px;box-shadow:0 18px 55px #07517a14;margin-bottom:22px}.card.compact{padding:26px}.login-card{padding:38px}
.badge{display:inline-block;background:var(--primary);color:#fff;padding:7px 11px;border-radius:999px;font-weight:800;font-size:12px;letter-spacing:.04em}.badge.ok{background:var(--ok)}.badge.danger{background:var(--danger)}
h1{font-size:38px;line-height:1.08;margin:16px 0 8px;color:var(--primary)}h2{margin:0 0 14px;color:var(--primary)}h3{color:#355664;margin:22px 0 10px}.lead{font-size:17px;color:var(--muted);margin-top:5px}.page-head,.result-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
label{display:block;font-weight:750;margin:16px 0 6px}input,select,textarea{width:100%;margin-top:7px;padding:13px 14px;border:1px solid #c9d9df;border-radius:11px;background:#fff;font-size:15px;color:#17313d;outline:none;transition:.16s border-color,.16s box-shadow}input:focus,select:focus,textarea:focus{border-color:#72abc7;box-shadow:0 0 0 4px #0b79b20f}input[type=checkbox]{width:auto;margin-right:7px}.helptext{display:block;font-size:12px;color:var(--muted);font-weight:400;margin-top:5px;line-height:1.45}ul.errorlist{color:#8b2525;padding-left:18px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
button,.button-link,.downloads a{border:0;background:var(--primary);color:#fff;border-radius:11px;padding:13px 18px;font-size:15px;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.16s transform,.16s background}button:hover,.button-link:hover,.downloads a:hover{background:var(--primary-2);transform:translateY(-1px)}button{width:100%;margin-top:18px;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed;transform:none}.button-link{width:auto}.button-link.secondary,.downloads a.secondary{background:#eef5f8;color:var(--primary);border:1px solid #d5e6ed}.button-link.secondary:hover,.downloads a.secondary:hover{background:#e5f1f6}
.downloads{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}.download-disabled{padding:13px 18px;border-radius:11px;background:#f6e8e8;color:#8b2525;font-weight:800;border:1px solid #efcccc}
.warning,.error,.note,.flash{padding:14px 16px;border-radius:12px;margin:16px 0}.warning{background:#fff4d6;color:#6f520f}.error{background:#ffe2e2;color:#7b1d1d}.note{background:#f0f7fa;color:#53636d}.flash.success{background:#e2f5e8;color:#205b34}.flash.error{background:#ffe2e2;color:#7b1d1d}.back{color:var(--primary);font-weight:750;text-decoration:none;display:inline-block;margin:0 0 16px}
.two-col{display:grid;grid-template-columns:1.15fr .85fr;gap:22px}.tenant-list{display:flex;flex-direction:column;gap:10px}.tenant-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border:1px solid var(--line);border-radius:14px;padding:15px;text-decoration:none;color:inherit}.tenant-row:hover{border-color:#8bb6ca}.tenant-row small,.simple-list span{display:block;color:var(--muted);margin-top:3px}.tenant-meta{text-align:right}.pill{display:inline-block;padding:5px 10px;border-radius:999px;background:#e2f5e8;color:#205b34;font-weight:800;font-size:12px}.pill.off{background:#f4e5e5;color:#802f2f}.simple-list{display:flex;flex-direction:column}.simple-list>div{padding:11px 0;border-bottom:1px solid #edf2f4}.chips{display:flex;gap:8px;flex-wrap:wrap}.chips span{padding:7px 10px;border-radius:999px;background:#eef7fa;color:var(--primary);font-weight:700}.hint{font-size:13px;color:var(--muted);line-height:1.5}.hint a{color:var(--primary)}hr{border:0;border-top:1px solid var(--line);margin:24px 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.metrics.metrics-2{grid-template-columns:repeat(2,1fr);margin-top:0}.metrics div{background:#f4f9fb;border:1px solid #e6eff3;border-radius:13px;padding:16px}.metrics strong{display:block;color:var(--primary);font-size:20px}.metrics span{color:var(--muted);font-size:13px}p label{margin:0}form p{margin:13px 0}form p>label{margin-bottom:5px}.errorlist+input{border-color:#d98c8c}
.generator-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr);gap:28px;align-items:start}.generator-form{min-width:0}.production-summary{background:linear-gradient(180deg,#f4fafc,#eef7fa);border:1px solid #dcebf1;border-radius:20px;padding:22px;position:sticky;top:96px}.production-summary h3{margin:8px 0 12px}.production-summary ol{padding-left:20px;color:#48616d;line-height:1.65;margin:0 0 20px}.summary-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:900;box-shadow:0 8px 20px #07517a25}.summary-rule{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #d9e7ec;padding:12px 0;font-size:13px}.summary-rule span{color:var(--muted)}.summary-rule strong{color:var(--primary)}
.result-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.85fr);gap:26px;margin-top:24px;align-items:start}.viewer-card{border:1px solid #dce8ed;border-radius:20px;overflow:hidden;background:#f7fbfc}.viewer-toolbar{display:flex;justify-content:space-between;gap:15px;padding:14px 16px;background:#fff;border-bottom:1px solid #e3edf1}.viewer-toolbar span{font-size:12px;color:var(--muted)}#stl-viewer{min-height:360px;position:relative;display:grid;place-items:center;overflow:hidden}#stl-viewer canvas{display:block;width:100%!important}.viewer-loading{color:var(--muted);font-weight:700}.viewer-error{padding:12px 16px;color:#7b1d1d;background:#ffe9e9;border-top:1px solid #efcccc;font-size:13px}.validation-box{border-radius:16px;border:1px solid #dce8ed;padding:16px;background:#fbfdfe}.validation-box.valid{border-color:#cfe6d9;background:#f7fcf9}.validation-box.invalid{border-color:#efcccc;background:#fffafa}.validation-box h3{margin:0 0 10px}.validation-row{display:flex;gap:10px;padding:10px 0;border-top:1px solid #edf2f4}.validation-row:first-of-type{border-top:0}.validation-row p{margin:2px 0 0;color:#5c6f78;font-size:13px;line-height:1.45}.validation-row strong{font-size:11px;letter-spacing:.04em}.status-dot{width:10px;height:10px;border-radius:999px;flex:0 0 auto;margin-top:5px}.validation-row.error .status-dot{background:#c84545}.validation-row.warning .status-dot{background:#d49a23}.validation-row.info .status-dot{background:#1c8a60}.validation-row.error strong{color:#a32e2e}.validation-row.warning strong{color:#946400}.validation-row.info strong{color:#176b4d}
@media(max-width:960px){.generator-grid,.result-layout,.two-col{grid-template-columns:1fr}.production-summary{position:static}.viewer-card{order:-1}}
@media(max-width:800px){.grid,.metrics,.metrics.metrics-2{grid-template-columns:1fr}.topbar-inner{flex-wrap:wrap}.topbar nav{order:3;width:100%;overflow:auto}.identity{margin-left:auto}.wrap{margin-top:22px;padding:0 12px 35px}.card{padding:22px}h1{font-size:30px}.page-head,.result-head{flex-direction:column}.viewer-toolbar{flex-direction:column;gap:4px}}

/* Fase 7 — ajuste fino das argolas */
.extra-panel{margin-top:22px;border:1px solid #d9e7ec;border-radius:18px;padding:18px;background:#f9fcfd;transition:.18s opacity,.18s filter}.extra-panel.disabled-panel{opacity:.55;filter:grayscale(.15)}.extra-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:6px}.extra-panel-head>div{display:flex;flex-direction:column;gap:3px}.extra-panel-head strong{color:var(--primary);font-size:16px}.extra-panel-head span{font-size:12px;color:var(--muted)}.mini-badge{background:#e7f4f8!important;color:var(--primary)!important;border:1px solid #d3e9f0;border-radius:999px;padding:6px 9px;font-weight:800;white-space:nowrap}.ring-size-grid{align-items:end}.input-suffix{display:flex;align-items:center;gap:0;margin-top:7px}.input-suffix input{margin-top:0;border-radius:11px 0 0 11px}.input-suffix>span{align-self:stretch;display:flex;align-items:center;padding:0 12px;border:1px solid #c9d9df;border-left:0;border-radius:0 11px 11px 0;background:#eef5f8;color:var(--primary);font-weight:800;font-size:13px}.ring-calculated{border:1px dashed #c7dce5;border-radius:14px;padding:14px 16px;margin:16px 0 6px;background:#fff}.ring-calculated span,.ring-calculated small{display:block;color:var(--muted);font-size:12px}.ring-calculated strong{display:block;color:var(--primary);font-size:22px;margin:4px 0}.check-row{display:flex!important;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid #dce8ed;border-radius:13px;background:#fff;margin-top:16px!important;cursor:pointer}.check-row input{margin:2px 0 0;flex:0 0 auto}.check-row span{display:flex;flex-direction:column;gap:2px}.check-row small{color:var(--muted);font-weight:400}.compact-check{margin:0!important;flex:1}.ring-adjust-fields{margin-top:14px;padding-top:14px;border-top:1px solid #e2edf1}.ring-adjust-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between}.small-button{width:auto!important;margin:0!important;padding:10px 13px!important;background:#eef5f8!important;color:var(--primary)!important;border:1px solid #d5e6ed!important}.ring-side-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.ring-side-card{border:1px solid #dce8ed;border-radius:14px;padding:14px;background:#fff}.ring-side-card h4{margin:0 0 8px;color:var(--primary)}.ring-side-card label{font-size:13px}.ring-side-card.linked{opacity:.55}.field-hint{float:right;color:var(--muted);font-size:11px;font-weight:400}.ring-result-box{border:1px solid #d7e7ed;border-radius:14px;background:#f7fbfc;padding:14px;margin:-8px 0 16px}.ring-result-box>strong{color:var(--primary);display:block;margin-bottom:8px}.ring-result-box>div{display:flex;justify-content:space-between;gap:16px;padding:6px 0;border-top:1px solid #e5eef2;font-size:13px}.ring-result-box>div span{color:var(--muted)}.ring-result-box>div b{font-weight:800;text-align:right}.ring-result-box small{display:block;color:var(--muted);margin-top:7px}
@media(max-width:800px){.ring-side-grid{grid-template-columns:1fr}.ring-adjust-toolbar{align-items:stretch;flex-direction:column}.small-button{width:100%!important}.extra-panel-head{flex-direction:column}.field-hint{float:none;display:block;margin-top:2px}}

/* Fase 8 — preview de fontes e calibração de produção */
.font-preview-section{margin:20px 0 24px;border:1px solid #dce8ed;border-radius:18px;padding:18px;background:#f9fcfd}.font-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.font-preview-card{margin:0!important;width:100%;padding:13px!important;background:#fff!important;color:#17313d!important;border:1px solid #dce8ed!important;display:grid!important;grid-template-columns:1fr auto;grid-template-rows:76px auto;align-items:center;text-align:left}.font-preview-card:hover,.font-preview-card.selected{border-color:#07517A!important;box-shadow:0 0 0 3px #07517a14;transform:none!important}.font-preview-card.selected:after{content:'Selecionada';grid-column:2;grid-row:2;color:#07517A;font-size:10px;font-weight:900}.font-preview-canvas{grid-column:1/3;width:100%;height:72px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:9px;background:#fff}.font-preview-canvas img{width:92%;height:58px;object-fit:contain;display:block}.font-preview-card strong{font-size:13px;color:#07517A}.font-preview-card small{font-size:10px;color:#687c86}.calibration-kpi{background:#eef7fa;border:1px solid #d8e9ef;border-radius:12px;padding:12px}.calibration-kpi strong{display:block;color:#07517A;font-size:18px}.calibration-kpi span{font-size:11px;color:#687c86}
@media(max-width:800px){.font-preview-grid{grid-template-columns:1fr}}
.font-preview-card.disabled-font{opacity:.42;filter:grayscale(1);cursor:not-allowed!important}.font-preview-card.disabled-font:hover{border-color:#dce8ed!important;box-shadow:none}


/* Fase 9 — SEO público, Google Login e avatar */
.brand span{font-weight:650;color:#5f7884}.nav-cta{background:#07517a;color:#fff!important;padding:9px 13px!important;border-radius:10px}.avatar-identity{flex-direction:row;align-items:center;gap:10px}.user-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #dbeaf0;background:#eef7fa}.user-avatar.fallback{display:grid;place-items:center;background:#07517a;color:white;font-size:12px;font-weight:900}.site-footer{max-width:1220px;margin:0 auto;padding:28px 20px 40px;border-top:1px solid #d7e3e8;display:flex;justify-content:space-between;gap:20px;color:#60737d}.site-footer div{display:flex;flex-direction:column;gap:4px}.site-footer strong{color:#07517a}.site-footer nav{display:flex;gap:16px}.site-footer a{color:#496570;text-decoration:none}.google-login-form{margin-top:24px}.google-button{background:white!important;color:#25343a!important;border:1px solid #cfdce1!important;box-shadow:0 4px 12px #17313d0c}.google-button:hover{background:#f7fafb!important}.google-g{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:900;color:#4285f4;background:#f4f7ff}.privacy-note{font-size:12px;line-height:1.5;color:#71858e;text-align:center}.privacy-note a{color:#07517a}.admin-login{margin-top:24px;border-top:1px solid #e4edf1;padding-top:18px}.admin-login summary{cursor:pointer;color:#60737d;font-weight:750}.secondary-login{background:#eef5f8!important;color:#07517a!important}.seo-hero{display:grid;grid-template-columns:1.25fr .75fr;gap:34px;align-items:center;padding:56px 0 40px}.seo-hero h1,.name-detail-hero h1{font-size:52px;max-width:820px;margin:12px 0 18px}.seo-hero p,.name-detail-hero p{font-size:19px;line-height:1.7;color:#526b76;max-width:760px}.seo-kicker,.seo-title>span,.section-heading span{font-size:12px;font-weight:900;letter-spacing:.12em;color:#0a6b9f}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.hero-demo,.name-jewel-preview{min-height:310px;border:1px solid #d6e6ec;border-radius:28px;background:radial-gradient(circle at 50% 35%,#fff,#edf7fa);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;box-shadow:0 22px 65px #07517a14;text-align:center}.hero-demo>span,.name-jewel-preview>span{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#7b9098}.hero-demo>strong,.name-jewel-preview>strong{font-family:cursive;font-size:64px;font-weight:500;color:#9aa8ad;text-shadow:0 1px 0 white;margin:18px 0}.hero-demo>small,.name-jewel-preview>small{color:#71858e}.seo-section{margin:45px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:18px}.section-heading h2{font-size:32px;margin:5px 0}.section-heading>a{color:#07517a;font-weight:800;text-decoration:none}.name-card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.name-card-grid.large{grid-template-columns:repeat(5,1fr)}.name-card-grid a{background:white;border:1px solid #dce8ed;border-radius:16px;padding:20px;text-decoration:none;color:#17313d;transition:.16s}.name-card-grid a:hover{border-color:#73aac3;transform:translateY(-2px);box-shadow:0 12px 28px #07517a10}.name-card-grid strong{display:block;color:#07517a;font-size:22px}.name-card-grid span{display:block;margin-top:5px;color:#71858e;font-size:12px}.seo-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:45px 0}.seo-feature-grid article,.font-public-grid article{background:white;border:1px solid #dce8ed;border-radius:20px;padding:25px}.seo-feature-grid article>strong{font-size:12px;color:#0a6b9f}.seo-feature-grid h2,.font-public-grid h2{font-size:21px;margin:8px 0}.seo-feature-grid p,.font-public-grid p{line-height:1.65;color:#60737d}.seo-cta{margin:50px 0 10px;background:#07517a;color:white;border-radius:28px;padding:38px;text-align:center}.seo-cta h2{color:white;font-size:34px;margin-bottom:8px}.seo-cta p{color:#dceef5}.seo-cta .button-link{background:white;color:#07517a}.seo-title{max-width:820px;margin:52px 0 30px}.seo-title h1{font-size:46px}.seo-title p{font-size:18px;line-height:1.7;color:#60737d}.breadcrumbs{font-size:13px;color:#71858e;margin:24px 0}.breadcrumbs a{color:#07517a;text-decoration:none}.name-detail-hero{display:grid;grid-template-columns:1.2fr .8fr;gap:32px;align-items:center;margin:30px 0 50px}.filter-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.filter-links a{padding:8px 12px;background:white;border:1px solid #d7e3e8;border-radius:999px;text-decoration:none;color:#07517a;font-weight:750;font-size:13px}.font-public-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.font-public-grid article>span{font-size:11px;color:#7b9098;text-transform:uppercase;letter-spacing:.08em}.seo-article{max-width:850px;background:white;border:1px solid #dce8ed;border-radius:24px;padding:38px;margin:42px auto}.seo-article h1{font-size:44px}.seo-article h2{font-size:25px;margin-top:34px}.seo-article p{font-size:16px;line-height:1.8;color:#526b76}.rate-card{max-width:650px;margin:60px auto}
@media(max-width:980px){.seo-hero,.name-detail-hero{grid-template-columns:1fr}.name-card-grid,.name-card-grid.large{grid-template-columns:repeat(3,1fr)}.font-public-grid,.seo-feature-grid{grid-template-columns:1fr 1fr}.hero-demo,.name-jewel-preview{min-height:240px}.seo-hero h1,.name-detail-hero h1{font-size:42px}}
@media(max-width:680px){.topbar nav a[href^="/nomes"],.topbar nav a[href^="/fontes"],.topbar nav a[href^="/guia"]{display:none}.seo-hero{padding-top:28px}.seo-hero h1,.name-detail-hero h1,.seo-title h1,.seo-article h1{font-size:34px}.name-card-grid,.name-card-grid.large,.font-public-grid,.seo-feature-grid{grid-template-columns:1fr}.site-footer{flex-direction:column}.avatar-identity div{display:none}.hero-demo>strong,.name-jewel-preview>strong{font-size:48px}}
.usage-strip{margin:0 0 16px;padding:10px 14px;border:1px solid #d9e4ea;border-radius:12px;background:#f7fbfd;font-size:.92rem}.account-card,.danger-zone,.narrow{max-width:760px;margin:24px auto}.account-head{display:flex;gap:18px;align-items:center}.account-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;display:grid;place-items:center;font-weight:700;background:#eef4f7}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.stats-grid>div{padding:14px;border:1px solid #e1e8ed;border-radius:12px}.stats-grid strong,.stats-grid span{display:block}.stats-grid span{font-size:.8rem;color:#60707a;margin-top:4px}.danger-zone{border-color:#efc8c8}.btn.danger{background:#9d1d1d}.secret-box{font-family:monospace;font-size:1.15rem;letter-spacing:.08em;padding:14px;background:#f3f6f8;border-radius:10px;word-break:break-all;margin:14px 0}.wrap-code{display:block;word-break:break-all;white-space:normal}.muted{color:#6b7780}@media(max-width:700px){.stats-grid{grid-template-columns:1fr}.account-head{align-items:flex-start}}

/* v0.10.0 — PWA + pacote de ajuste com IA */
.nav-install-button{border:1px solid rgba(7,81,122,.28);background:#eef8fb;color:#07517A;border-radius:10px;padding:8px 12px;font:inherit;font-weight:700;cursor:pointer}
.nav-install-button:hover{background:#e1f1f6}.pwa-modal[hidden]{display:none}.pwa-modal{position:fixed;inset:0;z-index:9999;background:rgba(8,28,38,.55);display:grid;place-items:center;padding:20px}.pwa-modal-card{position:relative;width:min(520px,100%);background:white;border-radius:22px;padding:28px;box-shadow:0 28px 80px rgba(0,0,0,.24)}.pwa-modal-card h2{margin:.4rem 0 1rem}.pwa-modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#506772}.pwa-modal-card .button-link{margin-top:10px}
.ai-refine-box{margin:20px 0;padding:22px;border:1px solid #bcdce7;border-radius:18px;background:linear-gradient(135deg,#f4fbfd,#fff)}.ai-refine-box h3{margin:.35rem 0 .45rem;color:#07517A}.ai-refine-box p{margin:0;color:#526771}.ai-refine-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.ai-refine-actions button.button-link{font:inherit;cursor:pointer}.copy-feedback{margin-top:12px;padding:10px 12px;border-radius:10px;background:#eaf8ef;color:#21643a;font-weight:600}.doc-file-grid,.example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 26px}.doc-file-grid>div,.example{border:1px solid #d8e8ed;border-radius:15px;padding:16px;background:#fff}.doc-file-grid strong,.doc-file-grid span{display:block}.doc-file-grid span{margin-top:6px;color:#657982;font-size:.92rem}.example.good{border-color:#bce0c8;background:#f5fbf7}.example.bad{border-color:#ead0c9;background:#fff8f6}.ai-doc-page blockquote{margin:18px 0;padding:16px 18px;border-left:4px solid #07517A;background:#eef8fb;border-radius:0 12px 12px 0;font-weight:700}.install-doc .note{margin-top:28px}
@media(max-width:760px){.doc-file-grid,.example-grid{grid-template-columns:1fr}.nav-install-button{padding:7px 10px}.ai-refine-actions{flex-direction:column}.ai-refine-actions .button-link{width:100%;text-align:center}}
/* v1.0 Corte 925 */
.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.metrics-grid>div{border:1px solid #dce8ed;border-radius:14px;padding:14px;background:#f9fcfd}.metrics-grid span{display:block;font-size:11px;color:#71858e;text-transform:uppercase;letter-spacing:.05em}.metrics-grid strong{display:block;margin-top:5px;color:#07517A;font-size:18px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.notice{padding:14px 16px;border:1px solid #c9e1e9;border-radius:14px;background:#f2fafc;color:#375663;line-height:1.55}.success{padding:14px 16px;border:1px solid #bfe1cb;border-radius:14px;background:#f4fbf6;color:#21643a;line-height:1.55}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #e2ebef;padding:10px;font-size:13px}th{color:#07517A;background:#f7fbfc}
@media(max-width:900px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.metrics-grid{grid-template-columns:1fr}}

/* Compact controls scoped to the piece preview. */
#preview-controls{justify-content:center;gap:8px;margin:12px 0;flex-wrap:wrap}
#preview-controls button{flex:0 0 auto;width:auto;max-width:100%;height:36px;margin:0;padding:0 14px;font-size:14px;line-height:1.2;border-radius:9px}

/* v1.0.2 — ajuste fino das argolas com proteção anti-giro */
.ring-step-label{min-width:140px;margin:0!important;font-size:12px;color:var(--muted)}
.ring-step-label select{margin-top:5px}
.ring-quick-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}
.ring-nudge{width:100%!important;margin:0!important;padding:10px 9px!important;background:#fff!important;color:var(--primary)!important;border:1px solid #d5e6ed!important;font-size:12px!important}
.ring-nudge:hover{border-color:#07517A!important;box-shadow:0 0 0 2px #07517a10;transform:none!important}
.ring-nudge-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:12px}
.ring-side-card label+label{margin-top:10px}
.ring-safety-note{margin-top:14px;padding:12px 14px;border-radius:12px;background:#eef7fa;border:1px solid #d8e9ef;color:#35515e;font-size:12px;line-height:1.45}
.ring-safety-note strong{color:var(--primary)}
@media(max-width:800px){.ring-quick-controls{grid-template-columns:1fr 1fr}.ring-step-label{width:100%}}


/* v1.1.0 — seletor explícito de saída Laser / Impressora 3D */
.manufacturing-downloads{margin:28px 0;padding:22px;border:1px solid #cfe1e8;border-radius:20px;background:#f9fcfd}
.download-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.download-heading-row h2{margin:4px 0 0}.section-kicker{font-size:11px;font-weight:900;letter-spacing:.11em;color:#0a6b9f}.same-geometry-badge{padding:7px 10px;border-radius:999px;background:#eaf7ef;color:#27663d;font-size:12px;font-weight:800;white-space:nowrap}
.manufacturing-selector{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.manufacturing-tab{width:100%;margin:0;text-align:left;justify-content:flex-start;align-items:flex-start;flex-direction:column;background:#fff;color:#17313d;border:2px solid #d8e6eb;padding:17px 18px}.manufacturing-tab strong{font-size:18px;color:#07517A}.manufacturing-tab span{font-size:12px;font-weight:650;color:#667b84}.manufacturing-tab.active{background:#eef8fb;color:#07517A;border-color:#0a6b9f;box-shadow:0 0 0 3px #0a6b9f12}.manufacturing-tab:hover{background:#f4fbfd;color:#17313d;transform:none}
.manufacturing-panel{padding:18px;border-radius:15px;background:#fff;border:1px solid #dce8ed}.format-copy{display:flex;flex-direction:column;gap:5px}.format-copy>strong{font-size:18px;color:#17313d}.format-copy>span{color:#60737d;line-height:1.55}.format-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.format-actions .button-link{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}.format-actions .button-link small{font-size:10px;opacity:.82;margin-top:4px}.print-note{margin-top:14px;padding:11px 13px;border-radius:11px;background:#f2f7f9;color:#526771;font-size:12px}.auxiliary-downloads{margin-top:14px}
@media(max-width:700px){.manufacturing-selector{grid-template-columns:1fr}.download-heading-row{flex-direction:column}.same-geometry-badge{white-space:normal}.format-actions{flex-direction:column}.format-actions .button-link{width:100%;box-sizing:border-box}}

/* v1.1.1 — direcional circular estilo gamepad para posicionamento das argolas */
.ring-gamepad-grid{gap:20px;margin-top:18px}
.ring-gamepad-card{display:flex;flex-direction:column;align-items:center;padding:18px 16px 16px;background:linear-gradient(180deg,#fff,#f8fbfc)}
.ring-card-heading{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.ring-card-heading h4{margin:0 0 3px}.ring-card-heading small{display:block;color:var(--muted);font-size:11px;line-height:1.35}
.ring-side-badge{font-size:9px;font-weight:900;letter-spacing:.09em;color:#07517A;background:#eaf5f8;border:1px solid #d3e6ed;border-radius:999px;padding:5px 7px}
.ring-gamepad{position:relative;width:184px;height:184px;border-radius:50%;background:radial-gradient(circle at 50% 45%,#f8fbfc 0 27%,#dbe9ee 28% 57%,#c8dbe2 58% 100%);box-shadow:inset 0 2px 5px #fff,inset 0 -8px 16px #63839124,0 10px 22px #17313d16;margin:6px auto 10px;touch-action:none;user-select:none}
.ring-pad-button,.ring-pad-center{position:absolute!important;margin:0!important;display:grid!important;place-items:center!important;border:0!important;cursor:pointer!important;transition:transform .08s ease,box-shadow .08s ease,background .08s ease!important}
.ring-pad-button{width:58px!important;height:58px!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#edf4f6)!important;color:#07517A!important;font-size:24px!important;font-weight:900!important;box-shadow:0 4px 9px #17313d24,inset 0 1px 0 #fff!important;padding:0!important}
.ring-pad-button:hover{background:#fff!important;box-shadow:0 5px 12px #07517a31,0 0 0 3px #0a6b9f14!important;transform:translateY(-1px)!important}
.ring-pad-button:focus-visible,.ring-pad-center:focus-visible{outline:3px solid #54a6c8!important;outline-offset:2px}
.ring-pad-button.is-pressed,.ring-pad-button:active{transform:translateY(2px) scale(.96)!important;box-shadow:inset 0 3px 7px #17313d2b!important;background:#dff0f5!important}
.ring-pad-up{left:63px;top:8px}.ring-pad-down{left:63px;bottom:8px}.ring-pad-left{left:8px;top:63px}.ring-pad-right{right:8px;top:63px}
.ring-pad-center{left:61px;top:61px;width:62px!important;height:62px!important;border-radius:50%!important;background:#07517A!important;color:#fff!important;box-shadow:inset 0 2px 6px #ffffff2e,0 3px 8px #17313d32!important;padding:8px 4px!important;font-size:9px!important;line-height:1.05!important}
.ring-pad-center span{display:block}.ring-pad-center b{display:block;font-size:8px;font-variant-numeric:tabular-nums;margin-top:2px;white-space:nowrap}.ring-pad-center:hover{background:#0a638e!important;transform:none!important}.ring-pad-center:active{transform:scale(.96)!important}
.ring-pad-help{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 9px;color:#667b84;font-size:10px;margin-bottom:10px}.ring-pad-help span{white-space:nowrap}
.ring-advanced{width:100%;border-top:1px solid #e3edf1;padding-top:10px;margin-top:3px}.ring-advanced summary{cursor:pointer;color:#60737d;font-size:11px;font-weight:800;text-align:center}.ring-advanced label{margin-top:10px!important}
.ring-gamepad-status{margin:14px 0 4px;padding:10px 12px;border-radius:11px;background:#f1f7f9;color:#48616c;text-align:center;font-size:11px;min-height:16px}
@media(max-width:800px){.ring-gamepad-grid{grid-template-columns:1fr}.ring-gamepad-card{padding:16px 12px}.ring-gamepad{width:174px;height:174px}.ring-pad-up{left:58px}.ring-pad-down{left:58px}.ring-pad-left{top:58px}.ring-pad-right{top:58px}.ring-pad-center{left:56px;top:56px}}

/* v1.2.0 — UX simplificada: configuração + preview ao vivo */
.ux-generator{padding:28px}.generator-page-head{align-items:center}.generator-head-actions{display:flex;align-items:center;gap:10px}.usage-pill{padding:8px 11px;border-radius:999px;background:#f1f7f9;color:#54707c;font-size:12px;font-weight:800}.compact-action{padding:9px 12px}
.generator-workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:28px;align-items:start}.generator-config-panel{display:flex;flex-direction:column;gap:14px}.config-step{border:1px solid #e0ebef;border-radius:17px;padding:16px;background:#fbfdfe}.config-step input,.config-step select{margin-top:10px}.step-title{display:flex;align-items:center;gap:11px}.step-title>span{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#07517A;color:white;font-size:12px;font-weight:900;flex:0 0 auto}.step-title>div{display:flex;flex-direction:column;gap:2px}.step-title strong{color:#17313d;font-size:15px}.step-title small{color:#71858e;font-weight:500}
.font-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;margin:12px 0}.font-search{position:relative;margin:0}.font-search>span{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#71858e;font-size:18px;z-index:1}.font-search input{margin:0;padding:10px 12px 10px 34px}.favorite-filter{display:flex;align-items:center;gap:6px;margin:0;padding:9px 10px;border:1px solid #d7e3e8;border-radius:10px;background:#fff;color:#496570;font-size:12px;white-space:nowrap}.favorite-filter input{margin:0}.compact-font-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:390px;overflow:auto;padding:2px;scrollbar-width:thin}.font-preview-card{position:relative;cursor:pointer}.font-preview-card[hidden]{display:none}.font-preview-card:focus-visible{outline:3px solid #54a6c8;outline-offset:2px}.font-favorite{position:absolute!important;right:7px;top:7px;z-index:2;width:29px!important;height:29px!important;margin:0!important;padding:0!important;border-radius:50%!important;background:#ffffffeb!important;color:#9a7a13!important;border:1px solid #e4dfc9!important;font-size:17px!important;line-height:1!important}.font-favorite:hover{transform:none!important;background:#fff8d9!important}.font-preview-card.is-favorite .font-favorite{color:#c69400!important}.font-status-dot{font-size:10px;color:#176b4d;font-weight:900}.empty-font-state{padding:12px;border-radius:10px;background:#f5f8fa;color:#60737d;text-align:center;font-size:12px}
.technical-profile-details{border:1px solid #e0e9ed;border-radius:14px;background:#f9fbfc}.technical-profile-details summary{cursor:pointer;padding:13px 15px;color:#60737d;font-size:12px;font-weight:800}.technical-profile-body{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;padding:0 15px 15px;color:#60737d;font-size:12px}.technical-profile-body strong{grid-column:1/-1;color:#17313d}
.live-workbench{position:sticky;top:92px;display:flex;flex-direction:column;gap:14px}.live-preview-card{border:1px solid #cfe1e8;border-radius:20px;background:linear-gradient(180deg,#f9fdfe,#f2f8fa);padding:18px;box-shadow:0 12px 30px #07517a0c}.live-preview-head,.result-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.live-preview-head h2,.result-section-head h2{margin:3px 0 0}.live-preview-size,.result-section-head>span{font-size:12px;color:#60737d;font-weight:800;background:#fff;border:1px solid #dce8ed;border-radius:999px;padding:7px 9px;white-space:nowrap}.live-preview-frame{height:300px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:16px;background:radial-gradient(circle at 50% 42%,#fff,#edf6f9);border:1px solid #dbe8ed;margin:14px 0}.live-preview-canvas{width:94%;height:88%;display:flex;align-items:center;justify-content:center;color:#07517A}.live-preview-canvas svg{width:100%;height:100%;display:block;color:#07517A;filter:drop-shadow(0 8px 12px #07517a16)}.live-preview-canvas.is-empty:after{content:'Prévia indisponível';color:#71858e;font-size:13px}.live-preview-loader{position:absolute;right:10px;top:10px;z-index:2;padding:5px 8px;border-radius:999px;background:#ffffffdf;color:#60737d;font-size:10px;font-weight:800}.live-preview-loader[hidden]{display:none}.live-status-row{display:flex;flex-wrap:wrap;gap:7px}.live-status{padding:7px 9px;border-radius:999px;font-size:11px;font-weight:800;border:1px solid}.live-status.pending{background:#f4f7f8;color:#6f7f87;border-color:#dbe4e8}.live-status.ok{background:#edf9f1;color:#21643a;border-color:#cde7d6}.live-status.bad{background:#fff1f1;color:#8b2525;border-color:#efcdcd}.live-preview-message{margin-top:10px;color:#60737d;font-size:12px;line-height:1.45;min-height:34px}
.ring-control-panel{border:1px solid #dce8ed;border-radius:18px;background:#fff;padding:14px}.ring-adjust-toggle{display:flex;align-items:flex-start;gap:10px;margin:0;cursor:pointer}.ring-adjust-toggle input{margin:3px 0 0}.ring-adjust-toggle>span{display:flex;flex-direction:column;gap:2px}.ring-adjust-toggle small{color:#71858e;font-weight:500}.ux-ring-fields{border-top:1px solid #e8eff2;margin-top:13px;padding-top:13px}.ring-mode-row{display:grid;grid-template-columns:1fr 1.3fr;gap:12px;align-items:end}.field-label{display:block;color:#71858e;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;margin-bottom:6px}.ring-link-switch{margin:0;display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #d9e6eb;border-radius:11px;background:#f7fbfc;color:#31505f;font-size:12px}.ring-link-switch input[type=checkbox]{margin:0}.precision-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.precision-selector button{margin:0;padding:9px 7px;border-radius:9px;background:#f3f7f9;color:#526a75;border:1px solid #dbe6ea;font-size:11px}.precision-selector button:hover{transform:none;background:#edf5f8}.precision-selector button.active{background:#07517A;color:white;border-color:#07517A}.linked-ring-control{text-align:center;margin-top:15px;padding-top:12px;border-top:1px solid #edf2f4}.linked-ring-control[hidden],#individual-ring-controls[hidden]{display:none}.ring-control-heading{display:flex;flex-direction:column;gap:2px;margin-bottom:5px}.ring-control-heading strong{color:#17313d}.ring-control-heading small{color:#71858e;font-size:11px}.linked-gamepad{transform:scale(.92);margin-top:-1px;margin-bottom:-1px}.linked-direction-labels{display:flex;justify-content:center;gap:28px;color:#60737d;font-size:10px;font-weight:800;margin-top:-2px}.combined-advanced{margin-top:12px}.advanced-ring-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px}.advanced-ring-grid label{margin:7px 0 0;font-size:11px}.advanced-ring-grid input{padding:9px 10px;font-size:12px}.combined-advanced .small-button{margin:10px auto 0!important;display:flex}.ring-safety-note{margin-top:11px}.generate-cta-box{border-radius:18px;background:#07517A;padding:15px 16px;color:#fff;box-shadow:0 12px 28px #07517a24}.generate-cta-box>span{display:block;font-size:11px;color:#cfe5ef;margin-bottom:8px}.generate-cta-box button{margin:0;background:#fff;color:#07517A}.generate-cta-box button:hover{background:#eff8fb;color:#07517A}.generate-cta-box button:disabled{background:#dce8ed;color:#6e8087}

/* v1.2.0 — resultado com download antes dos detalhes técnicos */
.ux-result{max-width:1040px;margin-left:auto;margin-right:auto}.result-status{display:flex;align-items:center;gap:10px;margin:16px 0}.result-status strong{font-size:15px}.result-status span{font-size:12px;opacity:.9}.result-preview{margin-top:20px}.piece-viewer-box{height:400px;max-height:62vh;min-height:280px;width:100%;background:#f2f6fa;border-radius:16px;overflow:hidden;margin:14px 0;position:relative}.result-2d-preview{width:100%;height:220px;object-fit:contain;margin-top:14px}.compact-details summary{cursor:pointer;color:#60737d;font-size:12px;font-weight:800}.primary-downloads{margin-top:22px}.machine-icon{width:34px;height:34px;border-radius:10px;background:#edf6f9;color:#07517A;display:grid;place-items:center;font-size:20px;margin-bottom:4px}.primary-download-button{min-width:190px}.technical-result-details{margin-top:18px;border:1px solid #dce8ed;border-radius:17px;background:#fbfdfe}.technical-result-details>summary{cursor:pointer;padding:15px 17px;display:flex;flex-direction:column;gap:2px;color:#31505f;font-weight:850}.technical-result-details>summary small{color:#71858e;font-weight:500}.technical-result-body{padding:0 17px 17px}.technical-issues h3{font-size:15px;margin-top:15px}.compact-notice{font-size:12px}.ai-prompt-details{margin-top:13px}.ai-prompt-details summary{cursor:pointer;color:#60737d;font-weight:800;font-size:12px}.ai-prompt-details textarea{width:100%;min-height:320px;margin-top:10px}

/* v1.2.0 — navegação autenticada enxuta */
.primary-nav{display:flex;gap:8px!important;align-items:center;flex:1}.primary-nav a{padding:8px 10px!important;border-radius:9px}.primary-nav a:hover{background:#eef7fa}.public-nav{display:flex;gap:16px;align-items:center;flex:1}.account-menu{position:relative;margin-left:auto}.account-menu>summary{list-style:none}.account-menu>summary::-webkit-details-marker{display:none}.account-menu-summary{display:flex;align-items:center;gap:9px;cursor:pointer;padding:5px 7px;border-radius:12px}.account-menu[open] .account-menu-summary,.account-menu-summary:hover{background:#f0f7fa}.account-summary-text{display:flex;flex-direction:column;max-width:170px}.account-summary-text strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-summary-text small{font-size:10px;color:#71858e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-chevron{color:#71858e}.account-menu-panel{position:absolute;right:0;top:calc(100% + 8px);width:220px;background:#fff;border:1px solid #dce8ed;border-radius:14px;padding:8px;box-shadow:0 18px 45px #17313d24;z-index:30;display:flex;flex-direction:column}.account-menu-panel a,.account-menu-button{width:100%;display:block;text-align:left;padding:10px 11px!important;margin:0!important;border-radius:9px!important;background:transparent!important;color:#31505f!important;text-decoration:none;font:inherit;font-weight:750!important;border:0!important}.account-menu-panel a:hover,.account-menu-button:hover{background:#f0f7fa!important;transform:none!important}.danger-link{color:#8b2525!important}.account-menu-panel .logout-form{margin:0}.account-menu-panel .nav-install-button{border:0}

@media(max-width:980px){.generator-workspace{grid-template-columns:1fr}.live-workbench{position:static}.generator-config-panel{order:1}.live-workbench{order:2}.live-preview-frame{height:270px}.compact-font-grid{max-height:330px}.account-summary-text{display:none}}
@media(max-width:700px){.ux-generator{padding:18px}.generator-page-head{align-items:flex-start}.generator-head-actions{width:100%;justify-content:space-between}.font-tools{grid-template-columns:1fr auto}.font-tools .mini-badge{grid-column:1/-1;justify-self:start}.compact-font-grid{grid-template-columns:1fr 1fr}.ring-mode-row{grid-template-columns:1fr}.advanced-ring-grid{grid-template-columns:1fr 1fr}.live-preview-frame{height:230px}.live-status-row{gap:5px}.live-status{font-size:10px;padding:6px 7px}.primary-nav{gap:2px!important}.primary-nav a{font-size:12px;padding:7px!important}.account-menu-summary{padding:3px}.account-menu-panel{position:fixed;right:12px;top:68px;width:min(280px,calc(100vw - 24px))}.result-page-head{gap:12px}.manufacturing-downloads{padding:16px}.piece-viewer-box{height:320px}.technical-result-body{padding:0 12px 12px}}
@media(max-width:460px){.compact-font-grid{grid-template-columns:1fr}.font-preview-canvas{height:64px}.live-preview-frame{height:205px}.precision-selector button{font-size:10px;padding:8px 4px}.linked-gamepad{transform:scale(.86);margin:-8px auto}.advanced-ring-grid{grid-template-columns:1fr}.topbar-inner{gap:10px}.brand{font-size:18px}.primary-nav a[href="/gestao/"]{display:none}}

/* v1.3.3 — controle explícito de tamanho da fonte */
.size-control-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px;align-items:start;margin-top:10px}.size-control-grid>label,.font-size-field>label{margin:0;color:#31505f;font-size:12px}.font-size-field{min-width:0}.font-size-badge{display:inline-flex;margin-left:6px;padding:3px 7px;border-radius:999px;background:#edf7fa;color:#07517A;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.font-size-control{display:grid;grid-template-columns:44px minmax(72px,1fr) 44px;gap:6px;margin-top:10px}.font-size-control input{margin:0;text-align:center;font-size:18px;font-weight:900;color:#07517A;padding:10px 8px}.font-size-control button{margin:0;padding:9px 8px;border-radius:11px;background:#eef6f9;color:#07517A;border:1px solid #d1e4eb;font-size:22px;line-height:1}.font-size-control button:hover{transform:none;background:#dff0f6}.font-size-field>small{display:block;margin-top:7px;color:#71858e;font-size:10px;line-height:1.4;font-weight:500}@media(max-width:700px){.size-control-grid{grid-template-columns:1fr}}

/* v1.3.4 — composição dual */
.dual-mode-toggle{display:flex!important;align-items:center;gap:10px;margin:12px 0 10px!important;padding:12px 13px;border:1px solid #d8e8ee;border-radius:13px;background:#f6fbfd}.dual-mode-toggle input[type=checkbox]{margin:0;flex:0 0 auto}.dual-mode-toggle span{display:flex;flex-direction:column;gap:2px}.dual-mode-toggle span strong{color:#17313d}.dual-mode-toggle span small,.composition-help{color:#71858e;font-size:11px;font-weight:500}.dual-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dual-name-grid.single-mode{grid-template-columns:1fr}.dual-name-grid label,.side-symbol-controls label{margin:7px 0 0;font-size:12px;color:#31505f}.side-symbol-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.side-symbol-controls[hidden]{display:none}.composition-help{margin:10px 0 0;line-height:1.45}.composition-step select{margin-top:6px}@media(max-width:700px){.dual-name-grid,.side-symbol-controls{grid-template-columns:1fr}}


/* v1.3.5 — ajuste do símbolo + dimensões finais da peça */
.symbol-adjust-panel{margin-top:12px;border:1px solid #d8e8ee;border-radius:16px;background:#fbfdfe;padding:14px}.symbol-adjust-panel[hidden]{display:none}.symbol-adjust-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.symbol-adjust-head>div{display:flex;flex-direction:column;gap:2px}.symbol-adjust-head strong{color:#17313d;font-size:13px}.symbol-adjust-head small,.symbol-size-field>small,.symbol-position-field>small{color:#71858e;font-size:10px;line-height:1.4;font-weight:500}.symbol-reset-button{width:auto;margin:0;padding:7px 10px;border-radius:9px;background:#eef6f9;color:#07517A;border:1px solid #d1e4eb;font-size:10px}.symbol-reset-button:hover{transform:none;background:#dff0f6}.symbol-adjust-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.9fr);gap:16px;align-items:start}.symbol-size-field label,.symbol-position-field .field-label{margin:0;color:#31505f;font-size:11px;font-weight:800}.symbol-size-control{display:grid;grid-template-columns:40px minmax(74px,1fr) 40px;gap:6px;margin:8px 0 6px}.symbol-size-control input{margin:0;text-align:center;padding:9px 6px;font-weight:900;color:#07517A}.symbol-size-control button{margin:0;padding:8px 6px;border-radius:10px;background:#eef6f9;color:#07517A;border:1px solid #d1e4eb;font-size:20px;line-height:1}.symbol-size-control button:hover{transform:none;background:#dff0f6}.symbol-gamepad{position:relative;width:118px;height:118px;border-radius:50%;margin:8px auto;background:radial-gradient(circle at 50% 45%,#f8fbfc 0 26%,#dbe9ee 27% 58%,#c8dbe2 59% 100%);box-shadow:inset 0 2px 5px #fff,inset 0 -6px 12px #63839124,0 8px 18px #17313d16;touch-action:none;user-select:none}.symbol-pad{position:absolute;width:36px;height:36px;margin:0!important;padding:0!important;border-radius:10px!important;background:#fff!important;color:#07517A!important;border:1px solid #cbdfe7!important;box-shadow:0 2px 5px #17313d16;font-size:18px!important;line-height:1!important}.symbol-pad:hover,.symbol-pad.is-pressed{transform:none!important;background:#e2f2f7!important}.symbol-pad-up{left:41px;top:5px}.symbol-pad-down{left:41px;bottom:5px}.symbol-pad-left{left:5px;top:41px}.symbol-pad-right{right:5px;top:41px}.symbol-pad-center{left:41px;top:41px;border-radius:50%!important;font-size:11px!important}.symbol-position-readout{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:5px 0}.symbol-position-readout span{font-size:9px;color:#71858e}.symbol-position-readout strong{color:#07517A}.piece-dimension-panel{border:1px solid #cfe1e8;border-radius:18px;background:#fff;padding:15px 16px}.piece-dimension-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.piece-dimension-head>div{display:flex;flex-direction:column;gap:3px}.piece-dimension-head strong{color:#17313d}.piece-dimension-head .section-kicker{font-size:9px;font-weight:900;letter-spacing:.07em;color:#0a6b9f}.piece-dimension-panel>p{margin:9px 0 12px;color:#71858e;font-size:10px;line-height:1.45}.piece-size-reset{width:auto;margin:0;padding:7px 10px;border-radius:9px;background:#eef6f9;color:#07517A;border:1px solid #d1e4eb;font-size:10px}.piece-size-reset:hover{transform:none;background:#dff0f6}.piece-dimension-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.piece-dimension-control label{margin:0 0 6px;font-size:11px;color:#31505f}.piece-dimension-control small{display:block;margin-top:6px;color:#71858e;font-size:9px;line-height:1.35}.dimension-stepper{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;gap:5px}.dimension-stepper input{margin:0;padding:9px 6px;text-align:center;font-size:13px;font-weight:850;color:#07517A}.dimension-stepper button{margin:0;padding:7px 5px;border-radius:9px;background:#eef6f9;color:#07517A;border:1px solid #d1e4eb;font-size:19px;line-height:1}.dimension-stepper button:hover{transform:none;background:#dff0f6}@media(max-width:700px){.symbol-adjust-grid,.piece-dimension-grid{grid-template-columns:1fr}.symbol-gamepad{margin-left:0}.piece-dimension-head{flex-direction:column}.piece-size-reset{align-self:flex-start}}
.ring-free-toggle{display:flex;align-items:flex-start;gap:10px;margin:0 0 13px;padding:11px 12px;border:1px solid #f0d9a7;border-radius:12px;background:#fff9ec;cursor:pointer}.ring-free-toggle input{margin:3px 0 0}.ring-free-toggle>span{display:flex;flex-direction:column;gap:2px}.ring-free-toggle strong{color:#7a4d00}.ring-free-toggle small{color:#7b6a48;font-weight:500;line-height:1.35}

/* Name3D 2.0 — Hub e Fundição */
.page-shell{max-width:1240px;margin:0 auto}.hero-card,.panel,.module-card,.metric-card{background:#fff;border:1px solid #dbe4ec;border-radius:18px;box-shadow:0 10px 30px rgba(7,81,122,.06)}
.hero-card{padding:28px;margin:18px 0}.hero-card h1{margin:.15rem 0 .5rem;font-size:clamp(1.8rem,3vw,3rem)}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.12em;color:#07517a}
.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.module-card{padding:28px;display:flex;flex-direction:column;gap:12px;color:#123;text-decoration:none;min-height:180px}.module-card strong{font-size:1.35rem}.module-card b{margin-top:auto;color:#07517a}.module-card:hover{transform:translateY(-2px);box-shadow:0 16px 36px rgba(7,81,122,.12)}.module-card.disabled{opacity:.6}
.foundry-shell{max-width:1280px;margin:18px auto}.foundry-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}.foundry-actions{display:flex;gap:8px;flex-wrap:wrap}.button-link,.foundry-actions a,.mini-btn{display:inline-flex;align-items:center;justify-content:center;background:#07517a;color:#fff!important;padding:10px 14px;border-radius:10px;text-decoration:none;border:0;cursor:pointer;font-weight:700}.button-link.secondary,.mini-btn.secondary{background:#e8f1f6;color:#07517a!important}.mini-btn.danger{background:#8a2632}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.metric-card{padding:18px}.metric-card strong{display:block;font-size:1.65rem}.panel{padding:20px;margin:18px 0;overflow:auto}.panel h2,.panel h3{margin-top:0}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:10px;border-bottom:1px solid #e6edf2;text-align:left;vertical-align:top}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#e8f1f6;color:#07517a;font-size:.8rem;font-weight:700}.badge.blocker{background:#ffe5e5;color:#9d1f1f}.badge.warning{background:#fff4d6;color:#7d5b00}.badge.ok{background:#e1f6e7;color:#176b35}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700}.form-grid input,.form-grid select,.form-grid textarea,.panel input,.panel select,.panel textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #bdcad4;border-radius:9px;background:#fff}.form-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.stage-list{display:grid;gap:8px}.stage{display:grid;grid-template-columns:100px 1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid #e2e8ee;border-radius:10px}.artifact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.artifact-card{border:1px solid #dbe4ec;border-radius:12px;padding:14px}.viewer-box{height:min(68vh,680px);min-height:420px;background:#edf3f7;border-radius:16px;overflow:hidden;position:relative}.viewer-box canvas{display:block;width:100%;height:100%}.muted{color:#607487}.danger-text{color:#9d1f1f}.success-text{color:#176b35}.foundry-nav{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.foundry-nav a{padding:8px 10px;border-radius:8px;background:#edf4f8;text-decoration:none;color:#07517a;font-weight:700}@media(max-width:700px){.stage{grid-template-columns:1fr}.foundry-actions{width:100%}.foundry-actions a{flex:1}.data-table{font-size:.9rem}}

/* Name3D v2.50.149 — agent workspace */
.workspace-notice{display:flex;gap:12px;align-items:center;margin:14px 0;padding:12px 16px;border:1px solid #e7b85c;border-radius:10px;background:#fff8e6;color:#5d4300}.workspace-notice span{color:#765d22}.workspace-notice strong{white-space:nowrap}
.workspace-strip{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:18px 0;padding:18px 20px;border:1px solid #cfe4eb;border-radius:18px;background:linear-gradient(120deg,#eff9fb,#f7fbfc)}.workspace-strip>div:first-child{display:grid;gap:4px}.workspace-strip strong{color:#17313d;font-size:1.05rem}.workspace-strip small{color:#607487;line-height:1.4}.workspace-links{display:flex;gap:8px;flex-wrap:wrap}.workspace-metrics{margin-top:0}.metric-card small{display:block;color:#607487;margin-top:5px;font-size:.78rem}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:8px}.section-heading h2{margin:.2rem 0 0}.artifact-pills{display:flex;gap:5px;flex-wrap:wrap}.artifact-pills .badge{font-size:.68rem;padding:3px 6px}.artifact-pills .visual-badge{background:#f0e8ff;color:#5b328c}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions .mini-btn{font-size:.75rem;padding:7px 9px}@media(max-width:700px){.workspace-strip{align-items:stretch;flex-direction:column}.workspace-links .mini-btn{flex:1}.section-heading{align-items:stretch;flex-direction:column}.row-actions{display:grid}.row-actions .mini-btn{width:100%}}

/* v2.0.1 — Nomes Personalizados: geração interativa em lotes */
.batch-shell{max-width:1180px;margin-inline:auto}.batch-page-head{margin-bottom:20px}.batch-shell button{width:auto}.batch-global-panel,.batch-entry-panel,.batch-list-panel,.batch-item-editor,.batch-final-panel{border:1px solid #dbe8ed;border-radius:18px;background:#f9fcfd}.batch-global-panel,.batch-entry-panel{padding:18px;margin-top:14px}.batch-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.batch-section-heading>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}.batch-section-heading>div small{grid-column:2;color:var(--muted);font-weight:500;margin-top:2px;line-height:1.4}.batch-section-heading.compact{margin-bottom:10px}.batch-step{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:#07517a;color:#fff;font-weight:900;font-size:12px;grid-row:1/3}.batch-small-button{margin:0;padding:9px 12px;background:#e9f3f7;color:#07517a;border:1px solid #d1e4eb;font-size:12px}.batch-small-button:hover{background:#dff0f6;transform:none}.batch-global-grid{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:14px}.batch-global-grid label{margin:0;font-size:12px;color:#31505f}.batch-global-grid small{display:block;margin-top:6px;font-size:10px;color:var(--muted);font-weight:500;line-height:1.4}.batch-stepper{display:grid;grid-template-columns:40px 1fr 40px;gap:6px;margin-top:7px}.batch-stepper input{margin:0;text-align:center;font-weight:900;color:#07517a}.batch-stepper button{margin:0;padding:8px;background:#eef6f9;color:#07517a;border:1px solid #d1e4eb;font-size:20px}.batch-entry-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.batch-entry-row input{margin:0;font-size:18px;padding:15px 16px}.batch-entry-row button{margin:0;padding-inline:22px}.batch-count{white-space:nowrap;font-weight:900;color:#07517a;background:#e8f4f8;border-radius:999px;padding:7px 11px;font-size:12px}.batch-limit-note{margin:8px 0 0;color:var(--muted);font-size:11px}.batch-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:16px;align-items:start;margin-top:16px}.batch-list-panel{padding:18px;min-height:390px}.batch-empty-state{min-height:260px;border:1px dashed #c8dce4;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;color:#60737d;padding:24px}.batch-empty-state strong{color:#31505f}.batch-empty-state span{max-width:430px;font-size:12px;line-height:1.5}.batch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}.batch-piece-card{margin:0!important;padding:0!important;text-align:left;display:block!important;overflow:hidden;background:#fff!important;color:#17313d!important;border:1px solid #d6e4ea!important;border-radius:15px!important;box-shadow:0 6px 18px #17313d0b;min-height:190px}.batch-piece-card:hover{transform:translateY(-1px)!important;border-color:#80afc3!important}.batch-piece-card.selected{border:2px solid #0a6b9f!important;box-shadow:0 0 0 3px #0a6b9f16}.batch-piece-preview{height:125px;display:grid;place-items:center;background:linear-gradient(180deg,#fff,#f1f7f9);padding:10px;overflow:hidden}.batch-piece-preview svg{display:block;max-width:100%;max-height:100%;width:100%;height:100%}.batch-loader,.batch-preview-fail{font-size:11px;color:#71858e;font-weight:800}.batch-piece-meta{display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:10px 12px;border-top:1px solid #edf2f4}.batch-piece-meta strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.batch-piece-meta small{grid-column:1;color:#71858e;font-size:10px}.batch-status{grid-column:2;grid-row:1/3;align-self:center;border-radius:999px;padding:4px 6px;font-size:8px;font-style:normal;font-weight:900;letter-spacing:.04em}.batch-status.ok{background:#e2f5e8;color:#176b4d}.batch-status.warning{background:#fff3d6;color:#835900}.batch-status.blocked{background:#ffe5e5;color:#8b2525}.batch-item-editor{padding:17px;position:sticky;top:88px;background:#fff}.batch-item-editor[hidden]{display:none}.batch-editor-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.batch-editor-head>div{display:flex;flex-direction:column}.batch-editor-head span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#0a6b9f}.batch-editor-head strong{font-size:20px;color:#17313d}.batch-editor-head button{margin:0;padding:3px 8px;background:#eef5f8;color:#60737d;font-size:18px}.batch-item-editor>p{font-size:10px;color:var(--muted);line-height:1.45;margin:8px 0 12px}.batch-item-editor>label,.batch-editor-grid label{font-size:11px;color:#31505f;margin:8px 0}.batch-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.batch-toggle{display:flex!important;align-items:flex-start;gap:8px;border:1px solid #dce8ed;padding:10px;border-radius:11px;background:#f8fbfc}.batch-toggle input{margin:2px 0 0}.batch-toggle span{display:flex;flex-direction:column}.batch-toggle small{color:var(--muted);font-weight:500;font-size:9px}.batch-toggle.warning-toggle{background:#fff9ec;border-color:#f0d9a7}.batch-editor-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.batch-editor-actions button{margin:0;padding:9px 8px;font-size:10px}.batch-editor-actions .secondary-action{background:#eaf3f7;color:#07517a}.batch-editor-actions .danger-action{background:#fff0f0;color:#8b2525;border:1px solid #efcccc}.batch-final-panel{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:16px;padding:16px 18px;background:#edf7fa}.batch-final-panel>div{display:flex;flex-direction:column;gap:3px}.batch-final-panel strong{color:#17313d}.batch-final-panel small{color:#60737d;font-size:10px;line-height:1.45;max-width:650px}.batch-final-panel button{margin:0;white-space:nowrap}.batch-right-ring[hidden]{display:none}@media(max-width:900px){.batch-global-grid,.batch-workspace{grid-template-columns:1fr}.batch-item-editor{position:static}.batch-final-panel{align-items:stretch;flex-direction:column}.batch-final-panel button{width:100%}}@media(max-width:560px){.batch-entry-row,.batch-editor-grid,.batch-editor-actions{grid-template-columns:1fr}.batch-entry-row button{width:100%}.batch-section-heading{flex-direction:column}.batch-global-grid{grid-template-columns:1fr}.batch-grid{grid-template-columns:1fr 1fr}.batch-piece-preview{height:105px}}

/* v2.1 — Editor Interativo de letras/argolas/símbolos */
.interactive-editor-panel{border:1px solid #dce8ed;border-radius:18px;background:#fff;padding:14px 16px;display:grid;gap:12px}.interactive-editor-toggle{display:flex;gap:10px;align-items:flex-start;cursor:pointer}.interactive-editor-toggle input{margin-top:4px}.interactive-editor-toggle span{display:grid;gap:2px}.interactive-editor-toggle small{color:var(--muted);line-height:1.35}.interactive-editor-tools{display:grid;gap:10px;padding-top:10px;border-top:1px solid #edf2f4}.interactive-editor-tool-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.interactive-editor-tool-row label{display:flex;gap:6px;align-items:center;font-size:12px;font-weight:800;color:#3d5965}.interactive-editor-tool-row select{width:auto;min-width:90px;padding:8px 10px}.interactive-editor-tool-row button{width:auto;padding:8px 11px;margin:0;font-size:12px}.interactive-editor-readout{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#f7fbfc;border:1px solid #e0ebef;border-radius:12px;padding:9px 11px;font-size:12px}.interactive-editor-readout strong{color:#07517a}.interactive-editor-hint{font-size:11px;color:#6b818b;line-height:1.45}.live-preview-frame.interactive-active{min-height:430px;background:#fbfdfe}.interactive-layout-svg{width:100%;height:100%;min-height:420px;display:block;touch-action:none;user-select:none;cursor:default}.interactive-editor-background{pointer-events:all}.interactive-grid-line{fill:none;stroke:#9eb7c2;stroke-width:.02;opacity:.42}.interactive-guide-line{stroke:#0a6b9f;stroke-width:.035;stroke-dasharray:.25 .18;opacity:.65;pointer-events:none;vector-effect:non-scaling-stroke}.interactive-final-ghost{fill:#0a6b9f;opacity:.10;pointer-events:none}.interactive-editable-element{cursor:grab;outline:none}.interactive-editable-element:active{cursor:grabbing}.interactive-editable-element path{fill:#17313d;stroke:transparent;stroke-width:.06;vector-effect:non-scaling-stroke;transition:fill .12s,stroke .12s,opacity .12s}.interactive-editable-element.kind-ring path{fill:#07517a}.interactive-editable-element.kind-symbol path{fill:#7b4a93}.interactive-editable-element:hover path{fill:#0a6b9f;opacity:.9}.interactive-editable-element.is-selected path{fill:#0a6b9f;stroke:#f59d17;stroke-width:.11}.interactive-editor-selection-badge{display:inline-flex;align-items:center;gap:5px;background:#eef7fa;color:#07517a;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}.interactive-warning{border-left:3px solid #d49a23;background:#fff8e9;padding:8px 10px;border-radius:8px;color:#77520d;font-size:11px;line-height:1.4}.batch-interactive-shell{margin-top:14px;border:1px solid #dce8ed;border-radius:16px;background:#fbfdfe;padding:12px}.batch-interactive-canvas{min-height:330px;border:1px solid #dce8ed;border-radius:13px;overflow:hidden;background:#fff}.batch-interactive-canvas .interactive-layout-svg{min-height:330px}.batch-interactive-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}.batch-interactive-toolbar label{display:flex;gap:5px;align-items:center;font-size:11px;font-weight:800}.batch-interactive-toolbar select{width:auto;padding:7px 9px}.batch-interactive-toolbar button{width:auto;margin:0;padding:7px 9px;font-size:11px}
@media(max-width:800px){.interactive-editor-tool-row{align-items:stretch}.interactive-editor-tool-row label{width:100%;justify-content:space-between}.interactive-editor-readout{align-items:flex-start;flex-direction:column}.interactive-layout-svg{min-height:340px}.live-preview-frame.interactive-active{min-height:350px}}
.interactive-marquee{fill:rgba(10,107,159,.08);stroke:#0a6b9f;stroke-width:.045;stroke-dasharray:.18 .12;vector-effect:non-scaling-stroke;pointer-events:none}

/* Name3D v2.2 — Modelos Personalizados */
.custom-products-shell{display:grid;gap:22px}.custom-step{display:grid;gap:14px;padding:18px;border:1px solid var(--border,#dde3ea);border-radius:18px;background:var(--surface,#fff)}
.custom-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.custom-product-card{min-height:100px;border:1px solid #d8dee7;border-radius:16px;background:#fff;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:inherit}.custom-product-card:hover,.custom-product-card.active{border-color:#111827;box-shadow:0 8px 22px rgba(15,23,42,.08);transform:translateY(-1px)}.custom-product-icon{font-size:27px;line-height:1}.custom-product-card strong{font-size:.9rem;text-align:center}
.custom-products-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:20px;align-items:start}.custom-products-config{display:grid;gap:18px}.custom-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.custom-field-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.custom-field-grid label,.custom-special-fields label{display:grid;gap:6px;font-weight:650}.custom-field-grid input,.custom-field-grid select,.custom-special-fields input,.custom-special-fields select{width:100%}.custom-special-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px;border-radius:14px;background:#f8fafc}.custom-hole-toggle{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:14px;background:#f8fafc}.custom-hole-toggle span{display:grid;gap:3px}.custom-hole-toggle small,.muted{color:#64748b;font-weight:400}.custom-advanced summary{cursor:pointer;font-weight:700}
.custom-preview-panel{position:sticky;top:18px;display:grid;gap:12px;padding:18px;border:1px solid #d8dee7;border-radius:20px;background:#fff;box-shadow:0 14px 35px rgba(15,23,42,.06)}.custom-preview-head{display:grid;gap:3px}.custom-preview-head strong{font-size:1.2rem}.custom-preview-head>span:last-child{color:#64748b}.custom-preview-canvas{min-height:360px;border-radius:16px;background:linear-gradient(145deg,#f8fafc,#eef2f7);display:grid;place-items:center;overflow:hidden;padding:18px}.custom-preview-canvas svg{width:100%;height:100%;max-height:430px;color:#111827}.preview-placeholder{color:#64748b;text-align:center}.custom-preview-status{padding:10px 12px;border-radius:12px;background:#f1f5f9;font-weight:700}.custom-preview-status.ready{background:#ecfdf5;color:#166534}.custom-preview-status.warning{background:#fffbeb;color:#92400e}.custom-preview-status.blocked{background:#fef2f2;color:#991b1b}.custom-preview-status.pending{background:#eff6ff;color:#1d4ed8}.custom-preview-warnings{display:grid;gap:6px}.custom-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:.8rem;color:#64748b}.custom-legend span{display:flex;align-items:center;gap:5px}.custom-legend i{width:14px;height:4px;border-radius:2px;display:inline-block}.legend-cut{background:#111827}.legend-engrave{background:#0f766e}.legend-relief{background:#f59e0b}.custom-generate-button{width:100%;justify-content:center;text-align:center}.custom-result-svg{min-height:380px;display:grid;place-items:center;background:#f8fafc;border-radius:16px;padding:20px}.custom-result-svg img{max-width:100%;max-height:440px}.custom-result-downloads{display:flex;flex-wrap:wrap;gap:10px}
@media(max-width:1000px){.custom-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-products-layout{grid-template-columns:1fr}.custom-preview-panel{position:static}.custom-field-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.custom-product-grid,.custom-field-grid,.custom-field-grid.compact,.custom-special-fields{grid-template-columns:1fr}.custom-preview-canvas{min-height:280px}}

/* v2.2.1 — visual prata 3D e argolinhas interativas nos Modelos Personalizados */
.custom-ring-editor{display:grid;gap:10px;margin-top:12px;padding:12px;border:1px solid #dbe5eb;border-radius:16px;background:#fbfdfe}.ring-mouse-note{display:grid;gap:3px;padding:9px 10px;border-radius:10px;background:#eef6fa;color:#496570}.ring-mouse-note strong{color:#07517a}.ring-mouse-note span{font-size:12px;line-height:1.4}.ring-grid-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:10px}.ring-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.button-link.mini{padding:7px 10px;font-size:12px;min-height:auto}.custom-view-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#eef3f6;border-radius:12px}.custom-view-switch button{border:0;border-radius:9px;padding:9px 10px;background:transparent;color:#506772;font-weight:800;cursor:pointer}.custom-view-switch button.active{background:white;color:#07517a;box-shadow:0 2px 9px rgba(23,49,61,.10)}.custom-preview-stage{position:relative;min-height:360px;border-radius:16px;overflow:hidden;background:#f2f6fa}.custom-preview-3d{height:390px;min-height:360px;display:grid;place-items:center;background:#f2f6fa}.custom-preview-3d canvas,.custom-result-3d canvas{width:100%!important;height:100%!important;display:block}.custom-preview-canvas{min-height:360px;background:linear-gradient(145deg,#f7fafc,#edf2f6);padding:18px}.custom-preview-canvas svg{filter:drop-shadow(0 9px 11px rgba(43,57,67,.20))}.custom-preview-canvas svg #BODY path{fill:#cbd2dc!important;stroke:#aeb7c2!important}.custom-preview-canvas svg [data-ring-handle]{filter:none}.custom-3d-toolbar,.custom-result-viewer-toolbar{display:flex;gap:8px;flex-wrap:wrap}.custom-result-3d{height:440px;border:1px solid #dce8ed;border-radius:18px;background:#f2f6fa;overflow:hidden;display:grid;place-items:center}.custom-result-viewer-toolbar{margin:10px 0}.custom-result-2d-details{margin-top:12px}.custom-result-2d-details summary{cursor:pointer;color:#07517a;font-weight:800}.custom-result-svg img{filter:drop-shadow(0 9px 11px rgba(43,57,67,.18))}.custom-result-svg{background:linear-gradient(145deg,#f7fafc,#edf2f6)}
@media(max-width:620px){.custom-view-switch{grid-template-columns:1fr}.custom-preview-stage,.custom-preview-3d,.custom-preview-canvas{min-height:300px}.custom-preview-3d{height:320px}.custom-result-3d{height:340px}.ring-editor-actions{display:grid;grid-template-columns:1fr}.ring-editor-actions .button-link{justify-content:center}}

/* v2.3.0 — Editor Visual de Modelos (UX familiar, medidas físicas em mm) */
.model-editor-shell{padding:20px;max-width:none;margin-left:calc(50% - 50vw + 14px);margin-right:calc(50% - 50vw + 14px);border-radius:22px}
.model-editor-page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:4px 6px 18px}.model-editor-page-head h1{font-size:32px;margin:10px 0 6px}.model-editor-page-head .lead{max-width:860px;margin-bottom:0}
.model-editor-topbar{min-height:52px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 10px;border:1px solid #dce8ed;border-radius:14px 14px 0 0;background:#fff;box-shadow:0 5px 14px #17313d0a;position:sticky;top:68px;z-index:8}
.model-editor-toolgroup{display:flex;align-items:center;gap:5px;padding-right:7px;margin-right:2px;border-right:1px solid #e4edf1}.model-editor-toolgroup:last-of-type{border-right:0}.editor-icon-button{width:auto!important;margin:0!important;min-height:34px;padding:7px 10px!important;border-radius:8px!important;background:#fff!important;color:#294a59!important;border:1px solid transparent!important;font-size:13px!important;font-weight:750!important}.editor-icon-button:hover:not(:disabled){background:#eef6f9!important;border-color:#cfe2ea!important;transform:none!important}.editor-icon-button.compact{min-width:34px;padding:6px 8px!important;font-size:16px!important}.editor-icon-button span{font-size:12px}.model-editor-view-switch{margin-left:auto;border-right:0;padding-right:0}.model-editor-view-switch button{width:auto;margin:0;padding:8px 12px;border-radius:8px;background:#eef5f8;color:#31505f;font-size:12px}.model-editor-view-switch button.active{background:#07517a;color:white}.model-editor-save-state{min-width:92px;text-align:right;font-size:11px;color:#6b7d85;font-weight:700}
.model-editor-workspace{display:grid;grid-template-columns:235px minmax(560px,1fr) 310px;min-height:720px;border:1px solid #dce8ed;border-top:0;border-radius:0 0 16px 16px;overflow:hidden;background:#f5f8fa}.model-editor-leftbar,.model-editor-inspector{background:#fff;min-width:0;overflow:auto;max-height:calc(100vh - 138px);position:sticky;top:122px;align-self:start}.model-editor-leftbar{border-right:1px solid #dfe9ed}.model-editor-inspector{border-left:1px solid #dfe9ed}.editor-side-section{padding:14px;border-bottom:1px solid #e5edf1}.editor-side-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.editor-side-title strong{font-size:13px;color:#294a59}.editor-side-title>span{font-size:11px;color:#7a8d95}.text-button{width:auto!important;margin:0!important;padding:0!important;background:transparent!important;color:#0a6b9f!important;font-size:11px!important;border-radius:0!important}.text-button:hover{transform:none!important;text-decoration:underline}
.model-library-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.model-library-grid.collapsed{display:none}.model-library-card{width:100%;min-height:70px;margin:0!important;padding:8px!important;border-radius:10px!important;background:#f7fafb!important;color:#355664!important;border:1px solid #dce7eb!important;display:flex!important;flex-direction:column;gap:4px!important;align-items:center!important;justify-content:center!important}.model-library-card:hover{transform:none!important;background:#eef7fa!important}.model-library-card.active{background:#e8f4f8!important;border-color:#5d9db9!important;box-shadow:0 0 0 2px #0a6b9f10}.model-library-card>span{font-size:23px;color:#07517a;line-height:1}.model-library-card small{font-size:10px;line-height:1.15;text-align:center;font-weight:800}
.model-editor-layers{display:flex;flex-direction:column;gap:3px}.layer-empty{padding:13px;border:1px dashed #cedde3;border-radius:9px;color:#71858e;font-size:11px;line-height:1.45}.model-layer-row{display:grid;grid-template-columns:minmax(0,1fr) 26px 26px 30px 30px;align-items:center;border-radius:8px;border:1px solid transparent}.model-layer-row:hover{background:#f5f9fb}.model-layer-row.selected{background:#eaf5f9;border-color:#bad8e4}.model-layer-row.locked{opacity:.78}.model-layer-row.hidden-layer .layer-select{opacity:.5}.layer-select{margin:0!important;width:100%!important;padding:6px 7px!important;border-radius:8px!important;background:transparent!important;color:#294a59!important;display:flex!important;justify-content:flex-start!important;gap:7px!important;text-align:left!important}.layer-select:hover{transform:none!important;background:transparent!important}.layer-kind{width:22px;height:22px;display:grid;place-items:center;border-radius:6px;background:#eaf3f6;color:#07517a;font-size:11px;font-weight:900;flex:0 0 auto}.layer-label{display:flex;flex-direction:column;min-width:0}.layer-label strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-label small{font-size:9px;color:#7b8d95;text-transform:uppercase}.layer-action{margin:0!important;width:28px!important;height:28px!important;padding:0!important;border-radius:6px!important;background:transparent!important;color:#60737d!important;font-size:12px!important}.layer-action:hover{transform:none!important;background:#e8f2f6!important}.editor-help{font-size:11px;color:#6f8189;line-height:1.45;margin:0 0 9px}.draft-actions{display:flex;gap:6px}.draft-actions .button-link{flex:1;padding:7px 8px!important;font-size:10px!important}
.model-editor-center{min-width:0;background:#eef2f4;padding:12px;display:flex;flex-direction:column}.model-editor-canvas-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 6px 10px}.model-editor-canvas-head>div:first-child{display:flex;flex-direction:column}.model-editor-canvas-head strong{font-size:16px;color:#294a59}.model-editor-size-badge{font-size:11px;color:#4e6874;background:#fff;border:1px solid #d8e5ea;border-radius:999px;padding:6px 10px;font-weight:800}.model-editor-stage{position:relative;flex:1;min-height:560px;background:#dfe5e8;border:1px solid #d4dfe4;border-radius:10px;overflow:hidden;cursor:default}.model-editor-stage.panning,.model-editor-stage.dragging{cursor:grabbing}.model-editor-stage.drag-syncing{cursor:progress}.model-editor-stage.dragging [data-editor-drag-source="1"],.model-editor-stage.drag-syncing [data-editor-drag-source="1"]{opacity:.08!important}.model-editor-canvas,.model-editor-3d{position:absolute;inset:24px 0 0 24px;width:calc(100% - 24px);height:calc(100% - 24px);min-height:0;background:#fdfdfd;display:grid;place-items:center;overflow:hidden}.model-editor-canvas svg{width:100%;height:100%;display:block;touch-action:none;user-select:none;-webkit-user-select:none}.model-editor-canvas svg [data-component-id]{cursor:grab!important}.model-editor-canvas svg [data-component-locked="1"]{cursor:not-allowed!important}.model-editor-stage.dragging .model-editor-canvas svg [data-component-id]{cursor:grabbing!important}.model-editor-canvas svg #CLIENT_DRAG_GHOST{filter:drop-shadow(0 2px 3px rgba(2,132,199,.20))}.model-editor-3d canvas{width:100%!important;height:100%!important}.model-editor-ruler{position:absolute;z-index:3;background:#f7fafb;color:#71858e;font-size:8px;pointer-events:none;border-color:#d3dfe4}.model-editor-ruler span{position:absolute;white-space:nowrap}.ruler-x{left:24px;right:0;top:0;height:24px;border-bottom:1px solid #d3dfe4}.ruler-x span{top:8px;transform:translateX(-50%);border-left:1px solid #aabcc4;padding-left:2px}.ruler-y{left:0;top:24px;bottom:0;width:24px;border-right:1px solid #d3dfe4}.ruler-y span{left:2px;transform:translateY(-50%) rotate(-90deg);transform-origin:left top;border-top:1px solid #aabcc4;padding-top:2px}.model-editor-guides{position:absolute;inset:24px 0 0 24px;pointer-events:none}.model-editor-bottombar{min-height:42px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 4px 0}.canvas-zoom-controls{display:flex;align-items:center;gap:3px}.editor-zoom-value{width:auto!important;margin:0!important;padding:6px 8px!important;min-width:58px;border:0!important;background:transparent!important;color:#45616d!important;font-size:11px!important}.editor-zoom-value:hover{transform:none!important;background:#e5eef2!important}.editor-inline-control{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;font-size:11px!important;color:#566e78!important;font-weight:700!important}.editor-inline-control input[type=checkbox]{margin:0;width:auto}.editor-inline-control select{width:auto;margin:0;padding:6px 8px;font-size:11px;border-radius:7px}.model-editor-coordinate{margin-left:auto;font-variant-numeric:tabular-nums;font-size:10px;color:#6f8189}.custom-preview-status{margin-top:8px}.custom-preview-warnings{max-height:125px;overflow:auto}.custom-preview-warnings .warning,.custom-preview-warnings .error{margin:6px 0;padding:8px 10px;font-size:11px}.custom-legend{margin-top:7px}.legend-selection{display:inline-block;width:12px;height:12px;border:2px solid #0284c7;background:#0284c710}
.inspector-selection{background:#fbfdfe}.inspector-empty{padding:18px 8px;color:#71858e;font-size:11px;line-height:1.5;text-align:center}.inspector-object-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.inspector-object-head>div:first-child{display:flex;flex-direction:column;min-width:0}.inspector-object-head span{font-size:9px;color:#7a8d95;text-transform:uppercase;letter-spacing:.06em}.inspector-object-head strong{font-size:13px;color:#294a59;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inspector-object-actions{display:flex;gap:2px}.inspector-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.inspector-grid label{position:relative;margin:0;font-size:10px;color:#60737d}.inspector-grid label>span{position:absolute;right:7px;top:29px;font-size:9px;color:#8b9aa1;pointer-events:none}.inspector-grid input,.inspector-grid select{margin-top:4px;padding:8px 24px 8px 9px;font-size:12px;border-radius:8px}.inspector-rotation{grid-column:1/-1}.inspector-check{margin-top:8px!important}.inspector-align-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:9px}.inspector-align-grid button{margin:0!important;padding:7px!important;background:#f3f7f9!important;color:#45616d!important;border:1px solid #dbe6ea!important;border-radius:7px!important}.inspector-align-grid button:hover{transform:none!important;background:#e7f1f5!important}.button-link.full{width:100%;margin-top:9px}.inspector-details{padding:0}.inspector-details>summary{cursor:pointer;padding:13px 14px;font-size:12px;font-weight:850;color:#294a59;list-style:none}.inspector-details>summary::-webkit-details-marker{display:none}.inspector-details>summary::after{content:'⌄';float:right;color:#809198}.inspector-details[open]>summary::after{content:'⌃'}.inspector-fields{padding:0 14px 14px}.inspector-fields>label{font-size:11px;margin:9px 0}.inspector-fields input,.inspector-fields select{margin-top:4px;padding:9px 10px;font-size:12px;border-radius:8px}.custom-special-fields{display:grid;grid-template-columns:1fr;gap:6px}.custom-special-fields label{font-size:11px;margin:7px 0}.custom-hole-toggle{display:flex!important;gap:8px!important;align-items:flex-start!important;margin:12px 0 7px!important;padding:9px;border:1px solid #dce8ed;border-radius:9px;background:#f8fbfc}.custom-hole-toggle input{margin:2px 0 0!important}.custom-hole-toggle span{display:flex;flex-direction:column}.custom-hole-toggle strong{font-size:11px}.custom-hole-toggle small{font-size:9px;color:#75878f;line-height:1.35}.custom-advanced{margin-top:10px;border-top:1px solid #e4edf1;padding-top:7px}.custom-advanced summary{font-size:10px;color:#60737d;cursor:pointer}.inspector-export{position:sticky;bottom:0;background:#fff;box-shadow:0 -6px 16px #17313d0a}.editor-export-state{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.editor-export-state span{font-size:10px;color:#71858e}.editor-export-state strong{font-size:10px;color:#8a5b00;text-align:right}.editor-export-state strong.ready{color:#176b4d}.editor-export-state strong.blocked{color:#8b2525}.custom-generate-button{width:100%;margin:0!important;padding:11px 12px!important;font-size:11px!important}.inspector-export>small{display:block;color:#7a8d95;font-size:9px;line-height:1.4;margin-top:6px}
@media(max-width:1180px){.model-editor-workspace{grid-template-columns:205px minmax(470px,1fr) 285px}.model-editor-shell{margin-left:0;margin-right:0}.editor-icon-button span{display:none}.model-editor-save-state{display:none}}
@media(max-width:980px){.model-editor-workspace{grid-template-columns:180px minmax(430px,1fr)}.model-editor-inspector{grid-column:1/-1;position:static;max-height:none;border-left:0;border-top:1px solid #dfe9ed;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inspector-export{position:static}.model-editor-leftbar{top:122px}.model-editor-topbar{top:68px}}
@media(max-width:760px){.model-editor-shell{padding:10px;border-radius:14px}.model-editor-page-head{flex-direction:column}.model-editor-workspace{display:flex;flex-direction:column}.model-editor-leftbar,.model-editor-inspector{position:static;max-height:none;border:0}.model-editor-leftbar{order:2}.model-editor-center{order:1;min-height:620px}.model-editor-inspector{order:3;display:block}.model-library-grid{grid-template-columns:repeat(5,1fr)}.model-library-card small{display:none}.model-editor-stage{min-height:460px}.model-editor-align-tools{display:none}.model-editor-view-switch{margin-left:0}.model-editor-topbar{position:static}.model-editor-coordinate{width:100%;margin-left:0}.ruler-x,.ruler-y{display:none}.model-editor-canvas,.model-editor-3d{inset:0;width:100%;height:100%}}

.inspector-order-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.inspector-order-grid .button-link{width:100%;padding:7px 5px!important;font-size:10px!important}

/* Name3D v2.4.0 — Editor UX Pro */
.model-editor-runtime-state{margin-left:auto;display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:10px;color:#60737d;font-weight:750}.model-editor-runtime-state>span:first-child{padding:4px 7px;border-radius:999px;background:#edf4f7;color:#3d5965}.model-editor-runtime-state .model-editor-save-state{min-width:0;text-align:left}.model-editor-stage[data-interaction="DRAGGING"],.model-editor-stage[data-interaction="RESIZING"],.model-editor-stage[data-interaction="ROTATING"]{cursor:grabbing}.model-editor-stage[data-interaction="SYNCING"]{cursor:default}.model-editor-stage.resizing [data-editor-transform-source="1"],.model-editor-stage.rotating [data-editor-transform-source="1"],.model-editor-stage.drag-syncing [data-editor-transform-source="1"]{opacity:.08!important}.model-editor-canvas svg #CLIENT_TRANSFORM_GHOST{filter:drop-shadow(0 2px 3px rgba(2,132,199,.18))}.model-editor-measure{position:absolute;z-index:9;pointer-events:none;padding:5px 8px;border-radius:7px;background:rgba(26,43,52,.92);color:#fff;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;box-shadow:0 5px 15px rgba(15,23,42,.16);white-space:nowrap}.model-editor-head-states{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.fabrication-state-badge{font-size:10px;font-weight:850;border-radius:999px;padding:6px 9px;background:#e8f5ed;color:#17613a;border:1px solid #c5e5d1}.fabrication-state-badge[data-state="warning"]{background:#fff6df;color:#845800;border-color:#eed99a}.fabrication-state-badge[data-state="blocking"]{background:#fff0f0;color:#9b2424;border-color:#efc4c4}.fabrication-state-badge[data-state="syncing"]{background:#eef5f8;color:#496774;border-color:#d4e3e9}.dfm-issue{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:6px 0;padding:9px 10px;border:1px solid #dbe6ea;border-radius:9px;background:#fff;font-size:11px}.dfm-issue>div{display:flex;flex-direction:column;gap:2px;min-width:0}.dfm-issue strong{font-size:10px;text-transform:uppercase;letter-spacing:.04em}.dfm-issue span{line-height:1.35}.dfm-issue small{color:#667d87;font-variant-numeric:tabular-nums}.dfm-issue.warning{border-color:#ecd69c;background:#fffaf0}.dfm-issue.warning strong{color:#946200}.dfm-issue.blocking{border-color:#efbcbc;background:#fff5f5}.dfm-issue.blocking strong{color:#ad2828}.dfm-issue.info{background:#f6fafc}.dfm-select{flex:0 0 auto!important;width:auto!important;margin:0!important;padding:6px 8px!important;border-radius:7px!important;background:#edf5f8!important;color:#315665!important;font-size:10px!important}.dfm-select:hover{transform:none!important;background:#deedf3!important}.attention-pulse{animation:name3dAttention .45s ease-in-out 2}@keyframes name3dAttention{50%{transform:translateX(3px);box-shadow:0 0 0 2px rgba(220,38,38,.10)}}.draft-recovery-prompt{margin-top:8px;padding:9px;border-radius:9px;border:1px solid #c8dce5;background:#f4f9fb;display:flex;flex-direction:column;gap:5px;font-size:10px;color:#526a74}.draft-recovery-prompt[hidden]{display:none}.draft-recovery-prompt strong{color:#294a59}.draft-recovery-prompt>div{display:flex;gap:5px}.draft-recovery-prompt .button-link{margin:0!important;padding:6px 7px!important;font-size:9px!important}.legend-safe{display:inline-block;width:12px;height:12px;border:1px dashed #0e7490;background:rgba(14,116,144,.04)}#EDITOR_SAFE_ZONE{transition:opacity .12s ease}.model-editor-stage.is-syncing::after{content:'Atualizando fabricação…';position:absolute;right:12px;bottom:12px;z-index:8;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.88);border:1px solid #d7e4e9;color:#536b75;font-size:9px;font-weight:800;pointer-events:none}.model-editor-stage[data-interaction="DRAGGING"]::after,.model-editor-stage[data-interaction="RESIZING"]::after,.model-editor-stage[data-interaction="ROTATING"]::after{display:none}
@media(max-width:1180px){.model-editor-runtime-state>span:first-child{display:none}.model-editor-head-states{max-width:55%}}
@media(max-width:760px){.model-editor-head-states{max-width:100%;justify-content:flex-start}.fabrication-state-badge{order:2}.model-editor-measure{font-size:11px;padding:6px 9px}.model-editor-bottombar{gap:7px}.model-editor-bottombar .editor-inline-control{min-height:36px}.model-editor-canvas svg{touch-action:none}.dfm-issue{flex-direction:column}.dfm-select{align-self:flex-start!important}}
/* Hidden preview layers must not intercept pointer events while the other preview is active. */
.model-editor-canvas[hidden],.model-editor-3d[hidden]{display:none!important}
/* Name3D v2.6 — Canvas Pro library */
.editor-insert-library{display:grid;gap:10px}
.editor-library-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.editor-library-item,.editor-ring-library button{border:1px solid var(--border,#d7dee8);background:var(--surface,#fff);border-radius:10px;min-height:58px;padding:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;color:inherit}
.editor-library-item:hover,.editor-ring-library button:hover{border-color:#0284c7;box-shadow:0 0 0 2px rgba(2,132,199,.08)}
.editor-library-item>span{font-size:20px;line-height:1}.editor-library-item small,.editor-ring-library small{font-size:10px;line-height:1.1}
.editor-ring-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.editor-ring-library button{min-height:46px;font-size:17px}
.compact-title{margin-top:2px}
@media(max-width:900px){.editor-library-actions{grid-template-columns:repeat(5,minmax(0,1fr))}.editor-ring-library{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:620px){.editor-library-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-ring-library{grid-template-columns:repeat(4,minmax(0,1fr))}}

.foundry-flow-hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}.foundry-flow-hint span{padding:7px 10px;border:1px solid var(--border,#d7dee8);border-radius:999px;background:var(--surface,#fff)}

.foundry-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.editor-library-item[draggable="true"]{user-select:none}.editor-library-item[draggable="true"]:active{cursor:grabbing}

/* v2.50.163 — console de execução humana sobre o registry MCP vivo */
.capability-executor{margin:18px 0;padding:20px;border:1px solid #bfe0e7;border-radius:18px;background:linear-gradient(135deg,#f3fbfc,#fff 68%);box-shadow:0 10px 28px rgba(7,81,122,.06)}.capability-executor-lead{max-width:930px;color:#607487;line-height:1.5}.capability-executor-form{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(280px,1.2fr);gap:12px;align-items:start}.capability-executor-form>label{display:grid;gap:6px;font-size:.74rem;font-weight:850;color:#496774}.capability-executor-form select,.capability-executor-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbdde3;border-radius:10px;background:#fff;padding:10px 11px;color:#17313d;font:inherit}.capability-executor-form textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.76rem;resize:vertical}.capability-contract-preview{grid-column:1/-1;display:grid;grid-template-columns:minmax(210px,.55fr) minmax(300px,1.45fr);gap:12px;padding:12px;border:1px solid #dbe8ed;border-radius:12px;background:#fff}.capability-contract-preview>div{display:grid;align-content:start;gap:5px}.capability-contract-preview strong{overflow-wrap:anywhere;color:#17313d}.capability-contract-preview small{color:#607487}.capability-contract-preview pre,.capability-result pre{margin:0;max-height:260px;overflow:auto;padding:11px;border-radius:9px;background:#11232c;color:#d7f2f6;font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap}.capability-confirm{grid-column:1/-1!important;display:flex!important;align-items:center;gap:8px;color:#7a4e0b!important}.capability-confirm input{accent-color:#0a6b9f}.capability-result{margin:18px 0;padding:18px;border:1px solid #bfe0e7;border-radius:16px;background:#f7fcfd}.capability-result.is-error{border-color:#efb8b8;background:#fff8f8}.capability-result h2{margin:0}.capability-result pre{max-height:420px}.capability-use-button{margin-left:auto;cursor:pointer}.capability-item-meta{align-items:center}@media(max-width:780px){.capability-executor-form,.capability-contract-preview{grid-template-columns:1fr}.capability-contract-preview{grid-column:auto}.capability-confirm{grid-column:auto!important}}
.capability-context-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:16px 18px;border:1px solid #cfe4eb;border-radius:16px;background:linear-gradient(120deg,#f5fbfc,#fff 70%)}.capability-context-bar>div{display:grid;gap:4px}.capability-context-bar strong{color:#17313d}.capability-context-bar small{max-width:760px;color:#607487;line-height:1.45}.capability-context-bar label{display:grid;gap:5px;min-width:min(340px,100%);font-size:.72rem;font-weight:850;color:#496774}.capability-context-bar select{padding:10px 11px;border:1px solid #cbdde3;border-radius:10px;background:#fff;color:#17313d;font:inherit}.capability-mode-switch{grid-column:1/-1;display:flex;gap:6px;padding:4px;border:1px solid #dbe8ed;border-radius:11px;background:#f4f9fa}.capability-mode{border:0;border-radius:8px;padding:8px 11px;background:transparent;color:#496774;font:inherit;font-size:.76rem;font-weight:850;cursor:pointer}.capability-mode.active{background:#07517a;color:#fff}.capability-guided-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #dbe8ed;border-radius:12px;background:#fbfdfe}.capability-guided-fields[hidden],.capability-json-field[hidden]{display:none}.capability-field{display:grid;gap:5px!important;font-size:.74rem!important;color:#496774}.capability-field span{font-weight:850}.capability-field input,.capability-field select,.capability-field textarea{margin:0}.capability-field small{font-size:.68rem;color:#607487;font-weight:500;line-height:1.35}.capability-checkbox{width:18px!important;height:18px}.capability-json-field{grid-column:1/-1}.capability-history{background:#fbfdfe}.capability-history-list{display:grid;gap:7px}.capability-history-row{display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1.4fr);align-items:center;gap:9px;padding:9px 11px;border:1px solid #e0e9ed;border-radius:10px;background:#fff}.capability-history-row code{overflow-wrap:anywhere;color:#0a6b9f;font-size:.73rem}.capability-history-row small{color:#607487;font-size:.72rem}@media(max-width:780px){.capability-context-bar{align-items:stretch;flex-direction:column}.capability-context-bar label{min-width:0}.capability-guided-fields{grid-template-columns:1fr}.capability-history-row{grid-template-columns:1fr auto}}

/* v2.50.158 — Capability Center: painel humano alinhado ao registry do agente */
.operator-console{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:22px 0;padding:20px 22px;border:1px solid #bfe0e7;border-radius:18px;background:linear-gradient(120deg,#f0fafb,#ffffff 72%);box-shadow:0 8px 24px rgba(7,81,122,.05)}.operator-console-copy{min-width:0}.operator-console-copy h2{margin:4px 0 6px;font-size:1.25rem;color:#17313d}.operator-console-copy p{max-width:760px;margin:0;color:#607487;line-height:1.5}.operator-console-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto}.capabilities-lead{max-width:760px;color:#607487;line-height:1.55}.capability-runtime-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0;padding:12px;border:1px solid #dbe7ec;border-radius:16px;background:#fbfdfe}.capability-runtime-bar>div{display:flex;flex-direction:column;gap:4px;padding:9px 11px;border-radius:10px;background:#f2f8fa}.capability-runtime-bar span{font-size:.67rem;letter-spacing:.08em;text-transform:uppercase;color:#6a7f88;font-weight:850}.capability-runtime-bar strong,.capability-runtime-bar code{font-size:.86rem;color:#17313d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capability-principles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:16px 0}.capability-principles article{display:flex;gap:10px;padding:14px;border:1px solid #dbe7ec;border-radius:14px;background:#fff}.capability-principle-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:10px;background:#e8f5f8;color:#07517a;font-size:.72rem;font-weight:900}.capability-principles strong{color:#294a59}.capability-principles p{margin:4px 0 0;color:#607487;font-size:.8rem;line-height:1.4}.capability-groups,.capability-catalog-panel{margin:18px 0;padding:20px;border:1px solid #dbe7ec;border-radius:18px;background:#fbfdfe}.capability-group-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.capability-group-card{display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid #dce8ed;border-radius:12px;background:#fff;text-decoration:none;color:#294a59}.capability-group-card:hover{border-color:#86bfd0;box-shadow:0 7px 18px rgba(7,81,122,.07);transform:translateY(-1px)}.capability-group-card span{font-size:.75rem;color:#6a7f88}.capability-search-label{width:min(360px,100%);margin:0;font-size:.72rem;color:#6a7f88}.capability-search-label input{margin-top:5px;padding:10px 12px}.capability-group{margin-top:19px}.capability-group[hidden]{display:none}.capability-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #e2edf1}.capability-group-heading h3{margin:0;color:#294a59;font-size:1rem}.capability-group-heading span{font-size:.72rem;color:#6a7f88}.capability-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.capability-item{padding:12px 13px;border:1px solid #e0e9ed;border-radius:12px;background:#fff}.capability-item[hidden]{display:none}.capability-item-head{display:flex;flex-direction:column;gap:3px}.capability-item-head strong{color:#294a59;font-size:.87rem}.capability-item-head code{color:#0a6b9f;font-size:.7rem;overflow-wrap:anywhere}.capability-item p{margin:7px 0;color:#607487;font-size:.78rem;line-height:1.4}.capability-item-meta{display:flex;gap:5px;flex-wrap:wrap}.capability-badge{padding:4px 7px;border-radius:999px;background:#e8f5ed;color:#176b4d;font-size:.64rem;font-weight:850}.capability-badge.neutral{background:#eef5f8;color:#496774}.capability-badge.action{background:#eaf4ff;color:#07517a}.capability-badge.danger{background:#fff0f0;color:#9b2424}.capability-empty{padding:22px;text-align:center;color:#607487}.project-console{margin-top:20px}@media(max-width:900px){.capability-runtime-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.capability-principles{grid-template-columns:1fr}.capability-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capability-list{grid-template-columns:1fr}.operator-console{align-items:flex-start;flex-direction:column}.operator-console-actions{justify-content:flex-start}}@media(max-width:620px){.capability-runtime-bar,.capability-group-grid{grid-template-columns:1fr}.capability-catalog-panel,.capability-groups{padding:14px}.section-heading{align-items:flex-start;flex-direction:column}}

/* v2.50.155 — Workspace de Engenharia: operação humana + agente */
.platform-nav{align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid #dbe7ec;border-radius:14px;background:#f8fbfc}.platform-nav-label{font-size:.72rem;font-weight:900;letter-spacing:.1em;color:#294a59;text-transform:uppercase;white-space:nowrap}.platform-nav-links{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.platform-nav-links a{padding:7px 9px;border-radius:8px;background:transparent;font-size:.78rem}.platform-nav-links a:hover{background:#e5f2f6}.platform-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:18px 0;padding:28px 30px;border:1px solid #cfe4eb;border-radius:22px;background:radial-gradient(circle at 88% 16%,#dff5f7 0,#eff9fb 28%,#fff 70%);box-shadow:0 14px 36px rgba(7,81,122,.07)}.platform-hero h1{max-width:720px;margin:.2rem 0 .65rem;font-size:clamp(2rem,4vw,3.45rem);line-height:1.02;color:#17313d}.platform-hero p:not(.eyebrow){max-width:720px;margin:0;color:#526a74;line-height:1.55}.platform-hero-actions{display:flex;flex-direction:column;gap:8px;min-width:170px}.platform-hero-actions .mini-btn{width:100%;box-sizing:border-box}.tool-center{margin:24px 0}.tool-center-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.tool-card{display:flex;flex-direction:column;gap:11px;min-height:220px;padding:18px;border:1px solid #dbe6ea;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(23,49,61,.045)}.tool-card:hover,.tool-palette-card:hover{border-color:#9fc9d7;box-shadow:0 12px 28px rgba(7,81,122,.09);transform:translateY(-1px)}.tool-card-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eaf5f8;color:#07517a;font-size:1.15rem;font-weight:900}.tool-card-kicker{display:block;font-size:.68rem;letter-spacing:.1em;font-weight:900;color:#0a6b9f}.tool-card h3{margin:.25rem 0 0;color:#17313d}.tool-card p,.tool-palette-card p{margin:6px 0 0;color:#607487;font-size:.88rem;line-height:1.45}.tool-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:auto;align-items:center}.tool-card-actions .mini-btn{font-size:.78rem;padding:8px 10px}.tool-status-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}.tool-status{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #dbe8ed;border-radius:999px;background:#f7fbfc;color:#496774;font-size:.7rem;font-weight:800}.tool-status i{width:6px;height:6px;border-radius:50%;background:#2f9b68;box-shadow:0 0 0 3px #dff3e8}.workspace-tool-palette{margin:20px 0;padding:20px;border:1px solid #dbe7ec;border-radius:18px;background:#fbfdfe}.tool-palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.tool-palette-card{display:flex;flex-direction:column;gap:7px;min-height:165px;padding:15px;border:1px solid #e0e9ed;border-radius:14px;background:#fff;transition:.16s ease}.tool-palette-card strong{font-size:1rem;color:#294a59}.tool-palette-card .tool-card-actions{margin-top:auto}.tool-palette-agent{background:linear-gradient(135deg,#f5fbfc,#fff)}.tool-palette-agent .tool-status-row{margin-top:auto}@media(max-width:980px){.tool-center-grid,.tool-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-hero{align-items:flex-start;flex-direction:column}.platform-hero-actions{width:100%;flex-direction:row;flex-wrap:wrap}.platform-hero-actions .mini-btn{width:auto;flex:1}}@media(max-width:700px){.platform-nav{align-items:flex-start;flex-direction:column}.platform-nav-links{justify-content:flex-start}.tool-center-grid,.tool-palette-grid{grid-template-columns:1fr}.platform-hero{padding:22px}.platform-hero-actions{flex-direction:column}.platform-hero-actions .mini-btn{width:100%}}

/* Name3D v2.7.0 — Free Design Editor */
.editor-library-compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.editor-library-compact .editor-library-item{min-height:50px;padding:6px}
.editor-library-compact .editor-library-item>span{font-size:18px}
#editor-prop-operation-wrap select{margin-top:5px}
.model-editor-stage[data-viewport-clamped="1"]::after{content:"";position:absolute;inset:24px 0 0 24px;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(14,116,144,.05)}
@media(max-width:900px){.editor-library-compact{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:620px){.editor-library-compact{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Name3D v2.8.0 — Cavidade para Resina */
.legend-resin{background:#c83b50}.inspector-resin{margin-top:10px;padding:12px;border:1px solid #fecdd3;border-radius:12px;background:#fff7f8}.inspector-resin-title{display:grid;gap:2px;margin-bottom:9px}.inspector-resin-title small{color:#64748b}.inspector-resin-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.inspector-resin-metrics span{display:grid;gap:2px;padding:8px;border-radius:9px;background:#fff}.inspector-resin-metrics strong{font-size:.9rem}.custom-preview-canvas #RESIN_POCKET path{mix-blend-mode:multiply}

/* Name3D v2.50.168 — Capability Workbench: todas as capacidades operáveis pelo usuário */
.capability-recipes{margin:18px 0;padding:20px;border:1px solid #dbe7ec;border-radius:18px;background:linear-gradient(135deg,#fbfdfe,#f4fafb)}
.capability-recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.capability-recipe{display:flex;align-items:flex-start;gap:10px;min-height:82px;padding:13px;text-align:left;border:1px solid #dce8ed;border-radius:13px;background:#fff;color:#294a59;cursor:pointer;transition:.16s ease}
.capability-recipe:hover,.capability-recipe:focus-visible{border-color:#6eafbf;box-shadow:0 8px 20px rgba(7,81,122,.09);transform:translateY(-1px);outline:none}
.capability-recipe-icon{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:9px;background:#e8f5f8;color:#07517a;font-weight:900}
.capability-recipe span:last-child{display:grid;gap:4px}.capability-recipe strong{font-size:.86rem}.capability-recipe small{color:#607487;font-size:.72rem;line-height:1.35}
.capability-catalog-note{display:block;max-width:720px;margin-top:5px;color:#607487;font-size:.76rem;font-weight:500;line-height:1.4}
.capability-catalog-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 4px;padding:5px;border:1px solid #dbe7ec;border-radius:11px;background:#f3f8fa}
.capability-filter{border:0;border-radius:8px;padding:8px 11px;background:transparent;color:#496774;font:inherit;font-size:.72rem;font-weight:850;cursor:pointer}.capability-filter span{opacity:.7}.capability-filter.active{background:#07517a;color:#fff}
.capability-object-field{grid-column:1/-1;display:grid;gap:8px;padding:10px;border:1px solid #d5e5ea;border-radius:11px;background:#f7fbfc}.capability-object-field legend{padding:0 5px;color:#294a59;font-size:.74rem;font-weight:850}.capability-object-hint{color:#607487;font-size:.68rem;line-height:1.35}.capability-object-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:6px}.capability-object-fields .capability-object-field{grid-column:1/-1}.capability-field input[readonly]{background:#f1f6f8;color:#607487;cursor:not-allowed}
@media(max-width:900px){.capability-recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.capability-object-fields{grid-template-columns:1fr}}
@media(max-width:620px){.capability-recipe-grid{grid-template-columns:1fr}}

/* Name3D v2.9 — ChatGPT collaborative Studio */
.studio-collab-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 14px;padding:11px 13px;border:1px solid #dbe6ef;border-radius:12px;background:linear-gradient(135deg,#f9fcff,#f3f8fb)}
.studio-collab-bar>div:first-child{display:flex;flex-direction:column;gap:2px}.studio-collab-bar strong{font-size:.9rem}.studio-collab-bar small{color:#667085}.studio-collab-actions{display:flex;gap:8px;flex-wrap:wrap}.studio-collab-bar [data-kind="ok"]{color:#147a4b}.studio-collab-bar [data-kind="warn"]{color:#a15c00}.studio-collab-bar [data-kind="error"]{color:#b42318}@media(max-width:720px){.studio-collab-bar{align-items:flex-start;flex-direction:column}.studio-collab-actions{width:100%}}

/* Name3D v2.50.172 — cockpit de continuidade humano + IA */
.capability-runtime-summary{display:grid;grid-template-columns:repeat(3,minmax(0,.42fr)) minmax(260px,1.5fr);gap:10px;margin:10px 0 18px}.capability-runtime-summary>div{display:grid;gap:3px;padding:11px 13px;border:1px solid #dbe7ec;border-radius:12px;background:#fff}.capability-runtime-summary strong{color:#17313d;font-size:1rem}.capability-runtime-summary span{color:#607487;font-size:.72rem;line-height:1.35}.capability-runtime-summary-copy{background:linear-gradient(120deg,#eef8fa,#fff)!important}.capability-context-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;grid-column:1/-1}.capability-context-state{margin-right:auto;color:#607487;font-size:.72rem;font-weight:750}.capability-context-actions [hidden]{display:none}.capability-partnership-note{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:14px 16px;border:1px solid #cfe4eb;border-radius:16px;background:linear-gradient(120deg,#f4fbfc,#fff 72%)}.capability-partnership-note>div:first-child{display:flex;gap:10px;align-items:flex-start}.capability-partnership-note strong{color:#294a59}.capability-partnership-note p{margin:4px 0 0;color:#607487;font-size:.78rem;line-height:1.4}.capability-partnership-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.capability-partnership-actions small{color:#147a4b;font-size:.7rem}.capability-handoff-copy{white-space:pre-wrap}
@media(max-width:900px){.capability-runtime-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.capability-runtime-summary-copy{grid-column:1/-1}.capability-partnership-note{align-items:flex-start;flex-direction:column}.capability-partnership-actions{justify-content:flex-start}}
@media(max-width:620px){.capability-runtime-summary{grid-template-columns:1fr 1fr}.capability-runtime-summary-copy{grid-column:1/-1}.capability-context-actions{align-items:stretch;flex-direction:column}.capability-context-state{margin-right:0}.capability-context-actions .mini-btn{width:100%;text-align:center}}
.capability-operational-cockpit{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:16px 0;padding:15px 17px;border:1px solid #bfe0e7;border-radius:16px;background:linear-gradient(120deg,#eef9fb,#fff 72%)}.capability-operational-cockpit>div:first-child{display:grid;gap:4px}.capability-operational-cockpit strong{color:#17313d}.capability-operational-cockpit p{max-width:780px;margin:0;color:#607487;font-size:.78rem;line-height:1.45}.capability-cockpit-status{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.capability-cockpit-status>span{padding:6px 8px;border:1px solid #dbe8ed;border-radius:999px;background:#fff;color:#496774;font-size:.68rem;font-weight:800;white-space:nowrap}
@media(max-width:900px){.capability-operational-cockpit{align-items:flex-start;flex-direction:column}.capability-cockpit-status{justify-content:flex-start}}

/* v2.50.174 — make the UV/PBR runtime state explicit in the human cockpit. */
.capability-material-status{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 18px;padding:13px 16px;border:1px solid #dbe7ec;border-radius:16px;background:#fff}.capability-material-status>div:first-child{display:flex;gap:10px;align-items:flex-start}.capability-material-status strong{color:#294a59}.capability-material-status p{margin:4px 0 0;color:#607487;font-size:.78rem;line-height:1.4}.capability-material-state{display:flex;align-items:flex-end;flex-direction:column;gap:4px;text-align:right}.capability-material-state small{color:#607487;font-size:.7rem}.capability-material-status.is-enabled{border-color:#bfe0cf;background:linear-gradient(120deg,#f3fbf6,#fff)}

/* Name3D v2.50.179 — platform launchpad: human and agent share the live MCP surface. */
.platform-runtime-panel,.platform-launchpad,.platform-featured-tools{margin:20px 0;padding:20px;border:1px solid #dbe7ec;border-radius:18px;background:#fbfdfe}
.platform-panel-lead{max-width:820px;margin:5px 0 0;color:#607487;font-size:.82rem;line-height:1.45}
.platform-runtime-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}
.platform-runtime-grid>div{display:grid;gap:4px;padding:11px 12px;border:1px solid #dbe7ec;border-radius:12px;background:#fff}
.platform-runtime-grid span{font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;color:#6a7f88;font-weight:850}
.platform-runtime-grid strong,.platform-runtime-grid code{color:#17313d;font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.platform-runtime-fingerprint{grid-column:span 2}
.platform-launchpad{background:linear-gradient(135deg,#f8fcfd,#f1f9fa)}
.platform-launchpad-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.platform-launch-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;min-height:72px;padding:11px 12px;border:1px solid #dce8ed;border-radius:13px;background:#fff;color:#294a59;text-decoration:none;transition:.16s ease}
.platform-launch-card:hover,.platform-launch-card:focus-visible{border-color:#6eafbf;box-shadow:0 8px 20px rgba(7,81,122,.09);transform:translateY(-1px);outline:none}
.platform-launch-card span:nth-child(2){display:grid;gap:4px}.platform-launch-card strong{font-size:.82rem}.platform-launch-card small{color:#607487;font-size:.69rem;line-height:1.3}.platform-launch-card>b{color:#0a6b9f;font-size:1rem}
.platform-launch-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e8f5f8;color:#07517a;font-weight:900}
.platform-featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.platform-featured-card{display:flex;flex-direction:column;gap:7px;min-height:165px;padding:14px;border:1px solid #e0e9ed;border-radius:13px;background:#fff}
.platform-featured-card>div{display:grid;gap:4px}.platform-featured-card strong{color:#294a59;font-size:.9rem}.platform-featured-card code{color:#0a6b9f;font-size:.68rem;overflow-wrap:anywhere}.platform-featured-card p{margin:0;color:#607487;font-size:.75rem;line-height:1.4}.platform-featured-card .mini-btn{margin-top:auto;align-self:flex-start;font-size:.73rem;padding:7px 9px}
@media(max-width:1050px){.platform-launchpad-grid,.platform-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-runtime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.platform-runtime-fingerprint{grid-column:span 2}}
@media(max-width:620px){.platform-runtime-panel,.platform-launchpad,.platform-featured-tools{padding:14px}.platform-launchpad-grid,.platform-featured-grid,.platform-runtime-grid{grid-template-columns:1fr}.platform-runtime-fingerprint{grid-column:auto}.platform-launch-card{min-height:64px}}

/* v2.50.185 — project workspace exposes the complete live MCP registry. */
.workspace-live-tools{margin:20px 0;padding:20px;border:1px solid #dbe7ec;border-radius:18px;background:linear-gradient(135deg,#fbfdfe,#f5fafb)}
.workspace-live-tools .platform-panel-lead{max-width:820px}
.workspace-live-tools-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.workspace-tool-search{display:grid;gap:5px;max-width:420px;margin:12px 0;font-size:.72rem;font-weight:850;color:#496774}
.workspace-tool-search input{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbdde3;border-radius:10px;background:#fff;color:#17313d;font:inherit}
.workspace-live-tool-groups{display:grid;gap:9px;margin-top:12px}
.workspace-live-tool-group{border:1px solid #dbe7ec;border-radius:13px;background:#fff;overflow:hidden}
.workspace-live-tool-group[hidden]{display:none}
.workspace-live-tool-group summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;list-style:none}
.workspace-live-tool-group summary::-webkit-details-marker{display:none}
.workspace-live-tool-group summary>span{display:grid;gap:4px}.workspace-live-tool-group summary strong{color:#294a59;font-size:.9rem}.workspace-live-tool-group summary small{color:#607487;font-size:.72rem}.workspace-live-tool-group summary>b{color:#0a6b9f;transition:transform .16s ease}.workspace-live-tool-group[open] summary>b{transform:rotate(180deg)}
.workspace-live-tool-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 10px 10px}
.workspace-live-tool{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:11px;border:1px solid #e0e9ed;border-radius:11px;background:#fbfdfe}
.workspace-live-tool[hidden]{display:none}.workspace-live-tool>div:first-child{min-width:0}.workspace-live-tool strong{display:block;color:#294a59;font-size:.8rem}.workspace-live-tool code{display:block;margin-top:3px;color:#0a6b9f;font-size:.67rem;overflow-wrap:anywhere}.workspace-live-tool p{margin:6px 0 0;color:#607487;font-size:.72rem;line-height:1.35}.workspace-live-tool-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;flex:0 0 auto}.workspace-live-tool-actions .mini-btn{font-size:.68rem;padding:7px 8px}
@media(max-width:900px){.workspace-live-tool-list{grid-template-columns:1fr}.workspace-live-tools-meta{justify-content:flex-start}}
@media(max-width:620px){.workspace-live-tools{padding:14px}.workspace-live-tool{flex-direction:column}.workspace-live-tool-actions{justify-content:flex-start}}
.foundry-shell .project-context-cockpit{margin:20px 0;padding:20px;border:1px solid #cfe1e7;border-radius:18px;background:linear-gradient(135deg,#f8fcfd,#eef7fa);box-shadow:0 8px 24px rgba(23,49,61,.045)}
.foundry-shell .project-context-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.foundry-shell .project-context-head h2{margin:4px 0 5px;color:#17313d;font-size:1.2rem}.foundry-shell .project-context-head p{max-width:800px;margin:0;color:#607487;font-size:.82rem;line-height:1.5}
.foundry-shell .project-context-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:15px}.foundry-shell .project-context-grid>div{display:grid;gap:4px;min-width:0;padding:12px;border:1px solid #dce8ed;border-radius:12px;background:#fff}.foundry-shell .project-context-grid span{font-size:.65rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#6a7f88}.foundry-shell .project-context-grid strong{color:#294a59;font-size:.82rem}.foundry-shell .project-context-grid code,.foundry-shell .project-context-grid small{overflow-wrap:anywhere;color:#607487;font-size:.67rem}.foundry-shell .project-context-feedback{min-height:1em;margin:10px 0 0;color:#176b4d;font-size:.74rem}
@media(max-width:900px){.foundry-shell .project-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.foundry-shell .project-context-cockpit{padding:14px}.foundry-shell .project-context-head{flex-direction:column}.foundry-shell .project-context-grid{grid-template-columns:1fr}}

/* Modelos 3D CAD — cockpit profissional, escopado para nao afetar Nomes Personalizados. */
.foundry-shell .cad-mode-console,.foundry-shell .cad-workflow{margin:20px 0;padding:20px;border:1px solid #d3e4e9;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(23,49,61,.045)}
.foundry-shell .cad-mode-console{background:linear-gradient(135deg,#f5fbfc,#fff 62%)}
.foundry-shell .cad-mode-heading,.foundry-shell .cad-workflow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.foundry-shell .cad-mode-heading h2,.foundry-shell .cad-workflow-head h2{margin:4px 0 5px;color:#17313d;font-size:1.28rem}
.foundry-shell .cad-mode-heading p{max-width:740px;margin:0;color:#607487;font-size:.8rem;line-height:1.45}
.foundry-shell .cad-mode-current{display:grid;gap:3px;min-width:240px;padding:11px 13px;border:1px solid #bcdde6;border-radius:12px;background:#fff}
.foundry-shell .cad-mode-current span,.foundry-shell .cad-mode-next span{font-size:.64rem;letter-spacing:.08em;text-transform:uppercase;color:#6a7f88;font-weight:850}
.foundry-shell .cad-mode-current strong{color:#07517a;font-size:.95rem}.foundry-shell .cad-mode-current small{color:#607487;font-size:.7rem;line-height:1.35}
.foundry-shell .cad-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px}
.foundry-shell .cad-mode-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:14px;border:1px solid #dbe7ec;border-radius:14px;background:#fff;color:#294a59;text-decoration:none;transition:.16s ease}
.foundry-shell .cad-mode-card:hover,.foundry-shell .cad-mode-card:focus-visible{border-color:#6eafbf;box-shadow:0 8px 20px rgba(7,81,122,.08);transform:translateY(-1px);outline:none}
.foundry-shell .cad-mode-card.is-active{border-color:#0a78a5;background:linear-gradient(135deg,#e9f7fa,#fff);box-shadow:inset 0 0 0 1px rgba(10,120,165,.12)}
.foundry-shell .cad-mode-card>span:nth-child(2){display:grid;gap:4px}.foundry-shell .cad-mode-card strong{font-size:.88rem}.foundry-shell .cad-mode-card small{color:#607487;font-size:.7rem;line-height:1.35}.foundry-shell .cad-mode-card>b{color:#0a6b9f;font-size:.62rem;letter-spacing:.07em}
.foundry-shell .cad-mode-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e8f5f8;color:#07517a;font-weight:900}
.foundry-shell .cad-mode-next{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:13px;padding-top:12px;border-top:1px solid #e1ecef}
.foundry-shell .cad-workflow{background:#fbfdfe}.foundry-shell .cad-workflow ol{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:15px 0 0;padding:0;list-style:none}
.foundry-shell .cad-workflow li{position:relative;display:grid;gap:4px;min-height:92px;padding:11px;border:1px solid #dce8ed;border-radius:12px;background:#fff}.foundry-shell .cad-workflow li:not(:last-child)::after{content:'→';position:absolute;right:-8px;top:38%;z-index:1;color:#7da5b2;font-weight:900}.foundry-shell .cad-workflow li>span{font-size:.62rem;color:#0a6b9f;font-weight:900;letter-spacing:.08em}.foundry-shell .cad-workflow li strong{color:#294a59;font-size:.78rem}.foundry-shell .cad-workflow li small{color:#607487;font-size:.67rem;line-height:1.35}
@media(max-width:1050px){.foundry-shell .cad-workflow ol{grid-template-columns:repeat(3,minmax(0,1fr))}.foundry-shell .cad-workflow li::after{display:none}}
@media(max-width:780px){.foundry-shell .cad-mode-heading,.foundry-shell .cad-workflow-head{flex-direction:column}.foundry-shell .cad-mode-current{min-width:0;width:100%;box-sizing:border-box}.foundry-shell .cad-mode-grid{grid-template-columns:1fr}.foundry-shell .cad-mode-next{align-items:stretch;flex-direction:column}.foundry-shell .cad-workflow ol{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.foundry-shell .cad-mode-console,.foundry-shell .cad-workflow{padding:14px}.foundry-shell .cad-workflow ol{grid-template-columns:1fr}}

/* Name3D CAD Editor — isolated from Nomes Personalizados. */
.foundry-shell.cad-editor-page{max-width:none;padding:0 18px 22px;color:#263844}
.foundry-shell .cad-editor-commandbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 12px;padding:10px 12px;border:1px solid #cfdce2;border-radius:12px;background:#f8fbfc;box-shadow:0 4px 14px rgba(9,31,43,.05)}
.foundry-shell .cad-editor-identity,.foundry-shell .cad-editor-command-actions{display:flex;align-items:center;gap:10px}.foundry-shell .cad-editor-identity>div{display:grid;gap:2px}.foundry-shell .cad-editor-identity span{font-size:.61rem;font-weight:900;letter-spacing:.09em;color:#68808b}.foundry-shell .cad-editor-identity strong{font-size:.92rem;color:#172d37}.foundry-shell .cad-editor-back{display:grid;place-items:center;width:31px;height:31px;border:1px solid #cbd9df;border-radius:8px;background:#fff;color:#315564;text-decoration:none;font-weight:900}
.foundry-shell .cad-editor-state{min-width:96px;padding:7px 9px;border:1px solid #cddce2;border-radius:8px;background:#fff;text-align:center;font-size:.62rem;font-weight:900;letter-spacing:.06em;color:#526b76}.foundry-shell .cad-editor-state[data-state=dirty]{border-color:#e8c27e;background:#fff9ed;color:#946110}.foundry-shell .cad-editor-state[data-state=working],.foundry-shell .cad-editor-state[data-state=previewing]{border-color:#87bfd0;background:#eef9fc;color:#075f83}.foundry-shell .cad-editor-state[data-state=preview_ready],.foundry-shell .cad-editor-state[data-state=clean]{border-color:#9dd5b3;background:#effaf3;color:#176b45}.foundry-shell .cad-editor-state[data-state=error]{border-color:#e7a3a3;background:#fff2f2;color:#a52b2b}
.foundry-shell .cad-editor-workbench{display:grid;grid-template-columns:240px minmax(420px,1fr) 310px;min-height:690px;border:1px solid #cbd9df;border-radius:13px;overflow:hidden;background:#eef3f5;box-shadow:0 14px 34px rgba(11,35,46,.1)}
.foundry-shell .cad-editor-sidebar{display:flex;min-width:0;flex-direction:column;background:#f7fafb}.foundry-shell .cad-editor-outliner{border-right:1px solid #cbd9df}.foundry-shell .cad-editor-inspector{border-left:1px solid #cbd9df}.foundry-shell .cad-editor-pane-head{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:0 12px;border-bottom:1px solid #d8e3e7;background:#edf3f5}.foundry-shell .cad-editor-pane-head>span{font-size:.65rem;font-weight:900;letter-spacing:.09em;color:#4b6875}.foundry-shell .cad-editor-pane-head button{width:23px;height:23px;border:1px solid #cbd9df;border-radius:6px;background:#fff;color:#52717e}.foundry-shell .cad-editor-pane-head b{font-size:.59rem;color:#0b6b90;letter-spacing:.06em}
.foundry-shell .cad-scene-tree{display:grid;padding:8px}.foundry-shell .cad-scene-tree button{display:grid;grid-template-columns:27px 1fr;align-items:center;gap:8px;width:100%;padding:8px;border:1px solid transparent;border-radius:8px;background:transparent;text-align:left;color:#294652;cursor:pointer}.foundry-shell .cad-scene-tree button:hover,.foundry-shell .cad-scene-tree button.is-selected{border-color:#b9d8e2;background:#eaf5f8}.foundry-shell .cad-scene-tree button>span{display:grid;gap:2px;min-width:0}.foundry-shell .cad-scene-tree strong{overflow:hidden;text-overflow:ellipsis;font-size:.75rem;white-space:nowrap}.foundry-shell .cad-scene-tree small{color:#718690;font-size:.61rem}.foundry-shell .cad-tree-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:6px;background:#dcebef;color:#246278;font-size:.68rem;font-style:normal;font-weight:900}
.foundry-shell .cad-editor-pane-section{padding:11px;border-top:1px solid #d8e3e7}.foundry-shell .cad-editor-pane-section>span{display:block;margin-bottom:8px;font-size:.59rem;font-weight:900;letter-spacing:.08em;color:#68808b}.foundry-shell .cad-revision-list{display:grid;gap:4px}.foundry-shell .cad-revision-list a{display:grid;grid-template-columns:32px 1fr;gap:7px;padding:7px;border:1px solid transparent;border-radius:7px;color:#395763;text-decoration:none}.foundry-shell .cad-revision-list a:hover,.foundry-shell .cad-revision-list a.is-current{border-color:#c5dce4;background:#fff}.foundry-shell .cad-revision-list b{font-size:.7rem;color:#0b6b90}.foundry-shell .cad-revision-list a>span{display:flex;justify-content:space-between;gap:5px;font-size:.65rem}.foundry-shell .cad-revision-list small{color:#80929a}.foundry-shell .cad-agent-context{margin-top:auto;background:#edf7f9}.foundry-shell .cad-agent-context p{margin:0;color:#57717d;font-size:.66rem;line-height:1.45}
.foundry-shell .cad-feature-selection{max-height:245px;overflow:auto}.foundry-shell .cad-selection-note,.foundry-shell .cad-selection-empty{margin:0 0 8px;color:#718790;font-size:.59rem;line-height:1.35}.foundry-shell #cad-feature-nodes{display:grid;gap:4px}.foundry-shell .cad-feature-node{display:grid;gap:2px;padding:7px;border:1px solid transparent;border-radius:7px;background:#fff;color:#395763;text-align:left;cursor:pointer}.foundry-shell .cad-feature-node:hover,.foundry-shell .cad-feature-node.is-selected{border-color:#66a9bf;background:#eaf8fb;box-shadow:inset 3px 0 #0b789b}.foundry-shell .cad-feature-node b{font-size:.64rem}.foundry-shell .cad-feature-node small{color:#80929a;font-size:.56rem}.foundry-shell .cad-feature-node[aria-pressed=true] b{color:#075f83}
.foundry-shell .cad-history-open{width:100%;margin:8px 0 0;padding:7px 8px;border:1px solid #c5dce4;border-radius:7px;background:#fff;color:#315d6e;font:inherit;font-size:.63rem;font-weight:850;cursor:pointer}.foundry-shell .cad-draft-history{display:grid;gap:4px;max-height:220px;margin-top:7px;overflow:auto}.foundry-shell .cad-draft-history[hidden]{display:none}.foundry-shell .cad-draft-history button{display:grid;gap:2px;width:100%;padding:7px 8px;border:1px solid #d5e2e7;border-radius:7px;background:#fff;color:#385663;text-align:left;cursor:pointer}.foundry-shell .cad-draft-history button:hover,.foundry-shell .cad-draft-history button.is-current{border-color:#69aabe;background:#eaf6f9}.foundry-shell .cad-draft-history strong{font-size:.64rem}.foundry-shell .cad-draft-history small{color:#718690;font-size:.56rem}
.foundry-shell .cad-editor-center{display:grid;grid-template-rows:auto minmax(520px,1fr) auto;min-width:0;background:#11171d}.foundry-shell .cad-viewport-toolbar{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:43px;padding:0 8px;border-bottom:1px solid #33434c;background:#1d2930}.foundry-shell .cad-toolbar-group{display:flex;gap:3px}.foundry-shell .cad-toolbar-group button{padding:6px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#bac9d0;font:inherit;font-size:.62rem;font-weight:800;cursor:pointer}.foundry-shell .cad-toolbar-group button:hover,.foundry-shell .cad-toolbar-group button.is-active,.foundry-shell .cad-toolbar-group button[aria-pressed=true]{border-color:#45616d;background:#2e424b;color:#fff}.foundry-shell .cad-toolbar-group button:disabled{opacity:.35;cursor:not-allowed}.foundry-shell .cad-representation-switch{padding:3px;border:1px solid #3b4e57;border-radius:7px}.foundry-shell .cad-editor-viewport{position:relative;min-height:520px;overflow:hidden}.foundry-shell .cad-editor-viewport canvas{display:block;width:100%;height:100%;outline:none}.foundry-shell .cad-viewport-empty{position:absolute;inset:0;z-index:0;display:grid;place-content:center;gap:5px;text-align:center;color:#8297a0;pointer-events:none}.foundry-shell .cad-viewport-empty[hidden]{display:none}.foundry-shell .cad-viewport-empty strong{color:#aebfc6;font-size:.9rem}.foundry-shell .cad-viewport-empty span{font-size:.7rem}.foundry-shell .cad-axis-label{position:absolute;z-index:2;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;font-size:.58rem;font-weight:900;color:#fff;pointer-events:none}.foundry-shell .cad-axis-x{bottom:10px;left:10px;background:#ba4141}.foundry-shell .cad-axis-y{bottom:10px;left:34px;background:#38885c}.foundry-shell .cad-axis-z{bottom:10px;left:58px;background:#397db1}.foundry-shell .cad-preview-watermark{position:absolute;right:12px;top:12px;padding:6px 8px;border:1px solid rgba(255,193,81,.45);border-radius:6px;background:rgba(41,31,10,.72);color:#ffd47f;font-size:.6rem;font-weight:900;letter-spacing:.08em;pointer-events:none}.foundry-shell .cad-viewport-statusbar{display:grid;grid-template-columns:1fr auto auto;gap:14px;min-height:33px;align-items:center;padding:0 10px;border-top:1px solid #33434c;background:#1b262c;color:#9eb0b8;font-size:.61rem}.foundry-shell .cad-viewport-statusbar [data-kind=error]{color:#ff9292}.foundry-shell .cad-viewport-statusbar [data-kind=success]{color:#7cdaa2}
.foundry-shell .cad-editor-inspector form{min-height:0;overflow:auto}.foundry-shell .cad-inspector-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}.foundry-shell .cad-inspector-fields label{display:grid;align-content:start;gap:4px;min-width:0}.foundry-shell .cad-inspector-fields label>span{font-size:.61rem;font-weight:850;color:#54707c}.foundry-shell .cad-inspector-fields input,.foundry-shell .cad-inspector-fields select,.foundry-shell .cad-inspector-fields textarea{box-sizing:border-box;width:100%;min-width:0;padding:7px 8px;border:1px solid #c9d9df;border-radius:7px;background:#fff;color:#203a45;font:inherit;font-size:.7rem}.foundry-shell .cad-inspector-fields input[type=checkbox]{width:17px;height:17px}.foundry-shell .cad-inspector-fields small{color:#788d96;font-size:.57rem;line-height:1.35}.foundry-shell .cad-inspector-advanced{grid-column:1/-1}.foundry-shell .cad-inspector-advanced textarea{min-height:200px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.61rem;line-height:1.4;resize:vertical}.foundry-shell .cad-preview-contract{margin-top:auto}.foundry-shell .cad-preview-contract dl{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.foundry-shell .cad-preview-contract dl>div{display:grid;gap:2px;padding:7px;border-radius:7px;background:#fff}.foundry-shell .cad-preview-contract dt{font-size:.55rem;color:#788d96}.foundry-shell .cad-preview-contract dd{margin:0;font-size:.64rem;font-weight:800;color:#385663}
@media(max-width:1100px){.foundry-shell .cad-editor-workbench{grid-template-columns:200px minmax(380px,1fr) 270px}.foundry-shell .cad-viewport-statusbar{grid-template-columns:1fr}.foundry-shell .cad-viewport-statusbar span:not(:first-child){display:none}}
@media(max-width:850px){.foundry-shell .cad-editor-workbench{grid-template-columns:1fr}.foundry-shell .cad-editor-outliner,.foundry-shell .cad-editor-inspector{border:0;border-bottom:1px solid #cbd9df}.foundry-shell .cad-editor-outliner{display:none}.foundry-shell .cad-editor-center{order:1}.foundry-shell .cad-editor-inspector{order:2}.foundry-shell .cad-editor-commandbar{align-items:flex-start;flex-direction:column}.foundry-shell .cad-editor-command-actions{width:100%;flex-wrap:wrap}.foundry-shell .cad-inspector-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.foundry-shell.cad-editor-page{padding:0 8px 15px}.foundry-shell .cad-editor-center{grid-template-rows:auto minmax(420px,1fr) auto}.foundry-shell .cad-editor-viewport{min-height:420px}.foundry-shell .cad-viewport-toolbar{align-items:flex-start;flex-direction:column;padding:7px}.foundry-shell .cad-inspector-fields{grid-template-columns:1fr}.foundry-shell .cad-inspector-advanced{grid-column:auto}}

/* v2.50.255 — compact project library and explicit human/agent handoff. */
.cad-projects-page{max-width:1380px}.cad-library-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:18px 0;padding:28px 30px;border:1px solid #cfe3e8;border-radius:22px;background:linear-gradient(120deg,#f4fbfc,#fff 72%);box-shadow:0 12px 30px rgba(23,49,61,.06)}.cad-library-hero h1{margin:.2rem 0 .55rem;color:#17313d;font-size:clamp(2rem,4vw,3.2rem);line-height:1}.cad-library-hero p{max-width:680px;margin:0;color:#607487;line-height:1.55}.cad-library-hero-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.cad-library-count{display:grid;gap:1px;padding:10px 13px;border:1px solid #d6e7eb;border-radius:12px;background:#fff;text-align:center}.cad-library-count strong{color:#07517a;font-size:1.35rem}.cad-library-count small{color:#718790;font-size:.68rem}.cad-library-toolbar{display:flex;align-items:end;gap:12px;margin:18px 0}.cad-library-search,.cad-library-filter{display:grid;gap:5px;color:#496774;font-size:.7rem;font-weight:850}.cad-library-search{flex:1;max-width:520px}.cad-library-search input,.cad-library-filter select{box-sizing:border-box;min-height:40px;padding:9px 11px;border:1px solid #c9dce2;border-radius:10px;background:#fff;color:#203a45;font:inherit}.cad-library-filter select{min-width:150px}.cad-library-result{margin-left:auto;padding:10px 0;color:#718790;font-size:.72rem;font-weight:800}.cad-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cad-project-card{display:flex;min-height:225px;flex-direction:column;gap:13px;padding:18px;border:1px solid #d9e6ea;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(23,49,61,.045);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.cad-project-card:hover{border-color:#86bdca;box-shadow:0 14px 30px rgba(7,81,122,.1);transform:translateY(-2px)}.cad-project-card[hidden]{display:none}.cad-project-card-top,.cad-project-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.cad-project-code{color:#0a6b9f;font-size:.68rem;font-weight:900;letter-spacing:.1em}.cad-project-card-main{min-height:52px}.cad-project-card-main h2{margin:0;color:#17313d;font-size:1.12rem}.cad-project-card-main p{margin:5px 0 0;color:#718790;font-size:.78rem}.cad-project-card-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:auto}.cad-project-card-meta>div{display:grid;gap:3px;padding:9px;border-radius:10px;background:#f5fafb}.cad-project-card-meta span{color:#78909a;font-size:.62rem}.cad-project-card-meta strong{color:#315968;font-size:.76rem}.cad-project-card-actions{justify-content:flex-start}.cad-project-view-link{margin-left:auto;color:#0a6b9f;font-size:.75rem;font-weight:850;text-decoration:none}.cad-library-empty{display:grid;justify-items:start;gap:8px;grid-column:1/-1;padding:34px;border:1px dashed #bad4dc;border-radius:16px;background:#fbfdfe;color:#607487}.cad-library-empty strong{color:#294a59}.cad-library-filter-empty{margin:14px 0}.cad-library-filter-empty[hidden]{display:none}.cad-project-detail .cad-version-rail{margin:20px 0;padding:19px 20px;border:1px solid #d3e5ea;border-radius:18px;background:#fbfdfe}.cad-version-rail-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.cad-version-rail-head h2{margin:4px 0;color:#294a59;font-size:1.2rem}.cad-version-rail-list{display:flex;gap:8px;margin-top:14px;overflow:auto;padding-bottom:2px}.cad-version-rail-list>a{display:grid;min-width:132px;gap:3px;padding:10px 11px;border:1px solid #d9e7eb;border-radius:11px;background:#fff;color:#395763;text-decoration:none}.cad-version-rail-list>a:hover,.cad-version-rail-list>a.is-current{border-color:#5da5b7;background:#eef9fb;box-shadow:inset 0 0 0 1px rgba(10,120,165,.12)}.cad-version-rail-list strong{color:#0a6b9f}.cad-version-rail-list span{font-size:.66rem;font-weight:800}.cad-version-rail-list small{color:#80939a;font-size:.6rem}.cad-editor-agentbar{display:flex;align-items:center;gap:16px;margin:0 0 12px;padding:12px 15px;border:1px solid #cde2e7;border-radius:14px;background:linear-gradient(110deg,#eef9fa,#fff)}.cad-editor-agentbar>div:first-child{display:grid;gap:3px;flex:1}.cad-editor-agentbar strong{color:#294a59;font-size:.82rem}.cad-editor-agentbar small{color:#607487;font-size:.68rem}.cad-editor-agent-actions{display:flex;gap:7px;flex-wrap:wrap}.cad-editor-agentbar p{min-width:180px;margin:0;color:#176b4d;font-size:.68rem}.cad-editor-agentbar p:empty{display:none}
@media(max-width:980px){.cad-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cad-library-hero{align-items:flex-start;flex-direction:column}.cad-library-hero-actions{justify-content:flex-start}.cad-editor-agentbar{align-items:flex-start;flex-direction:column}.cad-editor-agent-actions{width:100%}}
@media(max-width:640px){.cad-project-grid{grid-template-columns:1fr}.cad-library-toolbar{align-items:stretch;flex-direction:column}.cad-library-search{max-width:none}.cad-library-result{margin-left:0}.cad-version-rail-head{align-items:flex-start;flex-direction:column}.cad-library-hero{padding:22px}.cad-editor-agent-actions .mini-btn{flex:1}.cad-project-card-meta{grid-template-columns:repeat(3,minmax(0,1fr))}}
.foundry-shell .cad-evidence-open{width:100%;margin-top:9px;padding:7px 8px;border:1px solid #c5dce4;border-radius:7px;background:#fff;color:#315d6e;font:inherit;font-size:.63rem;font-weight:850;cursor:pointer}.foundry-shell .cad-evidence-panel{margin-top:7px;max-height:230px;overflow:auto;border:1px solid #d5e2e7;border-radius:7px;background:#11232c}.foundry-shell .cad-evidence-panel[hidden]{display:none}.foundry-shell .cad-evidence-panel pre{margin:0;padding:8px;color:#d7f2f6;font:10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.foundry-shell .cad-topology-summary{margin:8px 0 5px;color:#607780;font-size:.58rem}.foundry-shell .cad-topology-entities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;max-height:170px;overflow:auto}.foundry-shell .cad-topology-entity{display:grid;gap:1px;padding:5px;border:1px solid #d7e3e7;border-radius:5px;background:#f8fbfc;color:#365865;text-align:left;cursor:pointer}.foundry-shell .cad-topology-entity:hover,.foundry-shell .cad-topology-entity.is-selected{border-color:#0b789b;background:#e7f6fa;box-shadow:inset 2px 0 #0b789b}.foundry-shell .cad-topology-entity b{font-size:.56rem;text-transform:uppercase}.foundry-shell .cad-topology-entity small{color:#7b8e95;font-size:.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.foundry-shell .cad-topology-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px;padding-top:7px;border-top:1px solid #e2ebee}.foundry-shell .cad-topology-actions label{display:grid;gap:2px;color:#647b83;font-size:.53rem}.foundry-shell .cad-topology-actions select,.foundry-shell .cad-topology-actions input{min-width:0;padding:5px;border:1px solid #cbdde2;border-radius:5px;background:#fff;color:#365865;font-size:.58rem}.foundry-shell .cad-topology-actions button{grid-column:1/-1}
