/* LASRAFTO Serviços — folha de estilo única do site */
:root {
  --navy: #13263b;
  --navy-2: #1d3854;
  --teal: #0e7c86;
  --teal-2: #0a646c;
  --teal-soft: #e3f2f3;
  --amber: #c9771a;
  --amber-soft: #fbefdf;
  --green: #2f7d4a;
  --green-soft: #e3f3e8;
  --red: #b53a3a;
  --red-soft: #f9e3e3;
  --blue: #2f62a8;
  --blue-soft: #e4ecf8;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eef1f3;
  --border: #dde2e6;
  --text: #17212b;
  --muted: #5b6874;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 38, 59, .06), 0 8px 24px rgba(19, 38, 59, .06);
  --max: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-2); }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Cabeçalho ---------- */
.topbar { background: var(--navy); color: #c9d5e0; font-size: .85rem; }
.topbar .container { display: flex; gap: 18px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .container { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img.logo { height: 44px; width: auto; }
.brand img.ufsm { height: 34px; width: auto; opacity: .75; border-left: 1px solid var(--border); padding-left: 14px; }
nav.main { margin-left: auto; display: flex; align-items: center; gap: 2px; }
nav.main a, nav.main button.drop {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .94rem;
  padding: 9px 12px; border-radius: 9px; background: none; border: 0; font-family: inherit; cursor: pointer;
}
nav.main a:hover, nav.main button.drop:hover, nav.main a.active { background: var(--surface-2); }
nav.main .group { position: relative; }
nav.main .menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
}
/* "ponte" invisível entre o botão e o menu: o mouse atravessa o espaço sem o menu fechar */
nav.main .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
nav.main .group:hover .menu, nav.main .group:focus-within .menu, nav.main .group.open .menu { display: block; }
nav.main .menu a { display: block; font-weight: 500; }
nav.main .cta { background: var(--teal); color: #fff; margin-left: 8px; }
nav.main .cta:hover { background: var(--teal-2); color: #fff; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; }

@media (max-width: 980px) {
  .brand img.ufsm { display: none; }
  .burger { display: block; }
  nav.main {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px; max-height: calc(100vh - 72px); overflow: auto;
  }
  nav.main.open { display: flex; }
  nav.main .menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  nav.main button.drop { text-align: left; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; cursor: default; }
  nav.main .cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem var(--font); padding: 12px 20px; border-radius: 11px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, transform .05s;
  background: var(--teal); color: #fff;
}
.btn:hover { background: var(--teal-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); }
.btn.light:hover { background: #e9eef2; }
.btn.danger { background: var(--red); }
.btn.sm { padding: 7px 12px; font-size: .88rem; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Seções ---------- */
section { padding: 72px 0; }
section.tight { padding: 44px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-head { margin-bottom: 36px; }
.section-head.center .lead { margin: 0 auto; }

.page-hero { background: var(--navy); color: #dbe5ee; padding: 56px 0 48px; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { max-width: 760px; font-size: 1.1rem; margin: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #9fb2c4; }
.crumbs a { color: #cfe0ee; }

/* Hero da página inicial */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url(../img/hero.jpg) center/cover no-repeat; opacity: .32;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19,38,59,.96) 30%, rgba(19,38,59,.55)); }
.hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: 1.2rem; color: #d3dee8; max-width: 640px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.hero .badges span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 5px 12px; border-radius: 99px; font-size: .88rem; }

/* ---------- Grades e cartões ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card .icon { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.card.link { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; display: block; }
.card.link:hover { transform: translateY(-3px); border-color: var(--teal); }
.card .more { font-weight: 600; color: var(--teal); }
.price { font-family: var(--font-title); font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-family: var(--font-title); font-size: 2rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .92rem; }

ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230e7c86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
ul.cross li::before { background-color: var(--red-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23b53a3a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.note { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.note.info { border-color: var(--teal); background: var(--teal-soft); }
.note.danger { border-color: var(--red); background: var(--red-soft); }

/* Tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.hl td { background: var(--teal-soft); font-weight: 600; }

/* Abas */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs button {
  font: 600 .95rem var(--font); background: none; border: 0; padding: 10px 14px; cursor: pointer;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--teal); }
.tabpanel[hidden] { display: none; }

/* Seletor segmentado */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button { font: 600 .9rem var(--font); border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 16px; color: var(--muted); }

/* Formulários */
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form .row.r3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form .row, .form .row.r3 { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .9rem; color: var(--navy); display: block; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
textarea { min-height: 96px; resize: vertical; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 20px; margin: 0; background: var(--surface); }
legend { font-weight: 700; color: var(--navy); padding: 0 8px; }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.radio-cards label {
  display: block; border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; margin: 0; font-weight: 500; background: #fff;
}
.radio-cards input { width: auto; margin-right: 8px; }
.radio-cards label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.radio-cards b { color: var(--navy); }
.sample-row { display: grid; grid-template-columns: 40px 1.2fr 1fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.sample-row .n { font-weight: 700; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .sample-row { grid-template-columns: 30px 1fr 40px; } .sample-row .hide-sm { display: none; } }
.iconbtn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.iconbtn:hover { color: var(--red); border-color: var(--red); }

/* Status das solicitações */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-solicitada { background: var(--blue-soft); color: var(--blue); }
.st-recebida, .st-aprovada { background: var(--surface-2); color: var(--navy-2); }
.st-fila { background: var(--amber-soft); color: var(--amber); }
.st-em_analise { background: #fff1d6; color: #9a5a00; }
.st-em_analise::before { animation: pulse 1.2s infinite; }
.st-concluida { background: var(--green-soft); color: var(--green); }
.st-entregue { background: var(--teal-soft); color: var(--teal-2); }
.st-cancelada { background: var(--red-soft); color: var(--red); }
@keyframes pulse { 50% { opacity: .25; } }

.timeline { display: flex; gap: 0; margin: 14px 0 6px; }
.timeline .t { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); position: relative; padding-top: 22px; }
.timeline .t::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--border); z-index: 1; }
.timeline .t::after { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--border); }
.timeline .t:first-child::after { display: none; }
.timeline .t.done { color: var(--navy); font-weight: 600; }
.timeline .t.done::before, .timeline .t.done::after { background: var(--teal); }
.timeline .t.now::before { box-shadow: 0 0 0 4px var(--teal-soft); }

.req { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; margin-bottom: 14px; }
.req header { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.req code { font-weight: 700; color: var(--navy); font-size: 1rem; }
.req .samples { font-size: .9rem; color: var(--muted); }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow);
  transition: transform .25s; z-index: 200; max-width: calc(100% - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }

.demo-banner { background: var(--amber-soft); color: #6b4300; font-size: .88rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f0d9b5; }

/* ---------- Rodapé ---------- */
footer.site { background: var(--navy); color: #b8c6d3; padding: 56px 0 24px; font-size: .95rem; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
footer.site a { color: #dbe6ef; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site .logo-w { height: 48px; width: auto; margin-bottom: 14px; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

.cta-band { background: linear-gradient(120deg, var(--teal-2), var(--navy-2)); color: #e3f0f2; border-radius: 20px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }

.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); background: var(--surface-2); }
.people { columns: 2; column-gap: 32px; }
.people li { break-inside: avoid; }
@media (max-width: 640px) { .people { columns: 1; } }
.hidden { display: none !important; }

/* ---------- Botão vazado sobre fundo escuro (hero) ---------- */
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.on-dark:hover, .btn.on-dark:focus-visible { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn.on-dark:active { background: rgba(255,255,255,.2); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.linkbtn:hover { color: var(--teal-2); }

/* ---------- Caixas de seleção ---------- */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); margin: 0 0 10px; cursor: pointer; font-size: .95rem; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check span { display: block; position: relative; padding-left: 30px; }
.check span::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  border: 1.5px solid #b9c3cc; border-radius: 6px; background: #fff center/14px no-repeat; transition: background-color .12s, border-color .12s;
}
.check input:checked + span::before {
  background-color: var(--teal); border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:focus-visible + span::before { outline: 2px solid var(--teal); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { margin: 0; cursor: pointer; font-weight: 500; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { display: inline-block; padding: 7px 14px; border: 1px solid var(--border); border-radius: 99px; background: #fff; font-size: .9rem; color: var(--muted); transition: all .12s; }
.chip-check input:checked + span { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-2); font-weight: 600; }
.chip-check input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Seletor de arquivo ---------- */
.file-pick { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px; border: 1px dashed #b9c3cc; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.file-pick:hover { border-color: var(--teal); background: var(--teal-soft); }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick input:focus-visible ~ .file-btn { outline: 2px solid var(--teal); outline-offset: 2px; }
.file-btn { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; padding: 9px 14px; border-radius: 9px; white-space: nowrap; }
.file-nome { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Amostras ---------- */
.amostra-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--bg); }
.amostra-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--navy); }
.amostra-grid { display: grid; grid-template-columns: 230px 1fr; gap: 18px; }
@media (max-width: 720px) { .amostra-grid { grid-template-columns: 1fr; } }
.estrutura-box { display: grid; gap: 8px; align-content: start; }
.estrutura-preview {
  height: 180px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; padding: 6px;
  display: grid; place-items: center; overflow: hidden; transition: border-color .15s;
}
.estrutura-preview:hover { border-color: var(--teal); }
.estrutura-preview svg { width: 100%; height: 100%; }
.estrutura-preview .vazio { color: var(--muted); font-weight: 600; font-size: .9rem; line-height: 1.8; }
.estrutura-box input { font-family: Consolas, monospace; font-size: .85rem; }

/* ---------- Janela do editor ---------- */
dialog.modal { border: 0; border-radius: 18px; padding: 22px; width: min(1100px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(19,38,59,.35); }
dialog.modal::backdrop { background: rgba(19,38,59,.55); backdrop-filter: blur(2px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.jsme-box { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: min(560px, 62vh); }
.jsme-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.smiles-linha { display: flex; gap: 8px; margin-top: 10px; }
.smiles-linha input { font-family: Consolas, monospace; font-size: .9rem; }
.smiles-linha .btn { white-space: nowrap; flex: none; }

.termo .check { margin-bottom: 12px; }
.envio { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
