/* Murmur — central de suporte. Mesma identidade da extensão (íris #6D5DFC). */
:root {
  --iris: #6150f2;
  --iris-2: #6d5dfc;
  --iris-deep: #4430d4;
  --iris-soft: #ecebff;
  --ink: #151826;
  --paper: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --line: #e1e4ee;
  --muted: #5d6380;
  --ok: #1f9e7f;
  --ok-soft: #dcf5ec;
  --warn: #a8670c;
  --warn-soft: #fdf0d9;
  --danger: #d23f48;
  --danger-soft: #fbe6e7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 45, .05), 0 8px 24px -12px rgba(20, 22, 45, .12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--iris); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--iris-2) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 760px; }

/* ───────── marca */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 720; font-size: 18px; letter-spacing: -.01em; }
.brand small { font-weight: 500; color: var(--muted); font-size: 14px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--iris-2); color: #fff; display: grid; place-items: center; flex: none; }
.brand .mark svg { width: 20px; height: 20px; }
.brand.big { font-size: 22px; margin-bottom: 18px; }
.brand.big .mark { width: 40px; height: 40px; border-radius: 11px; }
.brand.big .mark svg { width: 24px; height: 24px; }

/* ───────── botões e formulários */
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 620; font-size: 15px; cursor: pointer; text-decoration: none;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.btn:hover, button:hover { background: var(--surface-2); }
.btn.primary, button.primary { background: var(--iris-2); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--iris); }
.btn.light { background: #fff; color: var(--iris); border-color: transparent; }
.btn.light:hover { background: var(--iris-soft); }
.btn.sm { padding: 6px 12px; font-size: 13.5px; }
.btn.wide, button.wide { width: 100%; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
button.link { border: 0; background: none; padding: 0; color: var(--iris); font-weight: 600; }
button[disabled] { opacity: .55; cursor: not-allowed; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.field > span { font-weight: 620; font-size: 14.5px; }
.field em { font-style: normal; font-weight: 450; color: var(--muted); }
.field small, .hint { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0; }
input, select, textarea {
  font: inherit; color: inherit; width: 100%; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--iris-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--iris-2) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--iris-2); }
.chk { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: 14.5px; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .row3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 11px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 560; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--danger-soft); color: var(--danger); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.copybox { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 8px 8px 8px 14px; }
.copybox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 14px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ───────── status */
.st { display: inline-block; font-size: 12.5px; font-weight: 680; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.st-open { background: var(--warn-soft); color: var(--warn); }
.st-answered { background: var(--ok-soft); color: var(--ok); }
.st-closed { background: var(--surface-2); color: var(--muted); }

/* ═════════ público */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.anchors { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.anchors a { color: var(--muted); text-decoration: none; font-weight: 560; font-size: 14.5px; padding: 7px 11px; border-radius: 8px; white-space: nowrap; }
.anchors a:hover { color: var(--ink); background: var(--surface-2); }
.lang { margin-left: auto; }
.lang select { width: auto; padding: 6px 30px 6px 10px; font-size: 14px; background-color: var(--surface); }
@media (max-width: 820px) { .anchors { display: none; } }

.hero {
  color: #fff;
  background:
    radial-gradient(800px 420px at 100% -20%, #8f82ff 0%, transparent 65%),
    radial-gradient(700px 400px at -10% 120%, var(--iris-deep) 0%, transparent 65%),
    var(--iris);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 44px; } }
.hero h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 16px; font-weight: 780; letter-spacing: -.032em; }
.hero p { margin: 0 0 18px; font-size: 19px; color: rgba(255, 255, 255, .88); max-width: 52ch; }
.server-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -28px rgba(18, 10, 70, .7); }
.server-card .label { display: block; font-weight: 680; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.server-url { display: flex; align-items: center; gap: 10px; background: var(--iris-soft); border-radius: 12px; padding: 12px 12px 12px 16px; }
.server-url code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 680 18px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--iris-deep); }
.server-card p { margin: 12px 2px 0; color: var(--muted); font-size: 14.5px; }

.band { padding: 64px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: 30px; margin: 0 0 24px; font-weight: 740; }
.band > .wrap > .muted { margin: -14px 0 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--iris-soft); color: var(--iris); font-weight: 760; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); }

.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
.how-item { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.how-item .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--iris-soft); color: var(--iris); display: grid; place-items: center; }
.how-item .ic svg { width: 22px; height: 22px; }
.how-item h3 { margin: 2px 0 4px; font-size: 18px; }
.how-item p { margin: 0; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 640; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 18px 18px; color: #333a52; }

.types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.types legend { font-weight: 620; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.types label { position: relative; }
.types input { position: absolute; opacity: 0; }
.types span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 580; font-size: 14.5px; cursor: pointer; }
.types input:checked + span { background: var(--iris-soft); border-color: var(--iris-2); color: var(--iris-deep); }
.types input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--iris-2) 55%, transparent); outline-offset: 2px; }

.page { padding-top: 40px; padding-bottom: 56px; }
.sent { display: flex; gap: 16px; align-items: flex-start; background: var(--ok-soft); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.sent-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--ok); color: #fff; display: grid; place-items: center; }
.sent-icon svg { width: 22px; height: 22px; }
.sent h1 { font-size: 22px; margin: 2px 0 6px; }
.sent p { margin: 0 0 12px; color: #2a4d43; }
.sent .copybox { background: #fff; }
.sent > div:last-child { flex: 1; min-width: 0; }
.ticket header { margin-bottom: 18px; }
.ticket header > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ticket .code { font: 700 13px ui-monospace, Menlo, monospace; color: var(--muted); background: var(--surface-2); padding: 3px 8px; border-radius: 6px; }
.ticket .kind { font-size: 13px; color: var(--muted); font-weight: 600; }
.ticket h1 { font-size: 26px; margin: 12px 0 0; }
.thread { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.msg.team { background: var(--iris-soft); border-color: transparent; }
.msg .who { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; color: var(--muted); }
.msg .who b { color: var(--ink); }
.msg.team .who b { color: var(--iris-deep); }
.msg .body { overflow-wrap: anywhere; }
.note { background: var(--surface-2); padding: 14px 16px; border-radius: 12px; color: var(--muted); }
.back { margin-top: 24px; }
.back a { text-decoration: none; font-weight: 600; }
.empty-state { text-align: center; padding: 48px 0; }
.empty-state h1 { font-size: 24px; }
.prose h1 { font-size: 36px; margin: 0 0 6px; }
.prose h2 { font-size: 21px; margin: 30px 0 8px; }
.prose p, .prose li { color: #333a52; }
.prose .lead { font-size: 18.5px; color: var(--ink); margin-top: 22px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.site-foot { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover, .site-foot a[aria-current] { color: var(--ink); }
.site-foot .langs { margin-left: auto; }

/* ═════════ administrador */
body.adm { background: #f3f4f8; }
.adm-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.adm-head nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.adm-head nav a { color: var(--muted); text-decoration: none; font-weight: 580; font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.adm-head nav a:hover, .adm-head nav a.on { background: var(--surface-2); color: var(--ink); }
.adm-head .count { background: var(--iris-2); color: #fff; font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 99px; line-height: 19px; }
.adm-head .who { display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.adm-head .who a { text-decoration: none; font-weight: 580; }
.adm-head .who form { margin: 0; }
.adm-main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; }
.adm-main.narrow { max-width: 560px; padding-top: 7vh; }
.adm-main .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-main h1 { font-size: 26px; margin: 0; }
.adm-main .card h2 { font-size: 17px; margin: 0 0 4px; }
.setup h1 { margin-bottom: 6px; }
.setup h2 { font-size: 17px; margin: 10px 0 0; }
.setup > .muted { margin: 0 0 20px; }
.adm-foot { max-width: 1120px; margin: 0 auto; padding: 0 24px 28px; display: flex; gap: 14px; font-size: 13.5px; color: var(--muted); }
.adm-foot a { color: var(--muted); }
.adm-foot span { margin-left: auto; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.stack-cards { display: flex; flex-direction: column; gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.tile:hover { border-color: var(--iris-2); }
.tile span { display: block; color: var(--muted); font-size: 13.5px; font-weight: 580; }
.tile b { display: block; font-size: 30px; font-weight: 760; letter-spacing: -.02em; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 7px 13px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill { font-size: 12px; background: var(--surface-2); color: var(--muted); padding: 0 7px; border-radius: 99px; }
.tabs a.on .pill { background: rgba(255, 255, 255, .2); color: #fff; }
.adm-main .head .tabs { margin: 0; }
.search { display: flex; gap: 8px; }
.search input { min-width: 300px; }
@media (max-width: 760px) { .search input { min-width: 0; } }
.card.list { padding: 0; overflow: hidden; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.row-item:first-child { border-top: 0; }
a.row-item:hover { background: #fafafe; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .grow b { display: block; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item .grow small { display: block; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-item time { font-size: 13px; color: var(--muted); white-space: nowrap; min-width: 128px; text-align: right; }
.row-item form { margin: 0; }
.row-item.dim { opacity: .6; }
.row-item .pos { width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.ticket-row.unread .grow b { font-weight: 760; }
.new { font-size: 11px; font-weight: 700; color: #fff; background: var(--iris-2); padding: 1px 7px; border-radius: 99px; vertical-align: 2px; margin-left: 4px; }
.type { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: nowrap; min-width: 84px; text-align: center; }
.type-question { background: var(--iris-soft); color: var(--iris-deep); }
.type-problem { background: var(--danger-soft); color: var(--danger); }
.type-suggestion { background: var(--warn-soft); color: var(--warn); }
.type-praise { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 32px; margin: 0; }
.side dl { margin: 12px 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.side dt { color: var(--muted); }
.side dd { margin: 0; overflow-wrap: anywhere; }
.side .stack, .side form { margin: 0 0 10px; }
.pad-top { padding-top: 28px; }
@media (max-width: 760px) { .row-item time { display: none; } .type { min-width: 0; } }
