
:root {
  /* ---- Cor: ancorada no kale da Zendesk, com neutros de tom frio ---- */
  --kale-900: #012226;
  --kale:     #03363d;
  --kale-700: #0a4b53;

  --ink:       #1e2b2e;
  --ink-soft:  #5c6b6d;
  --ink-faint: #8a9799;

  --bg:        #eff2f1;
  --surface:   #ffffff;
  --surface-2: #f7f9f8;
  --line:      #dde4e2;
  --line-soft: #e9eeec;

  --brand:      #1c6fb0;
  --brand-deep: #14507f;
  --brand-tint: #e9f3fb;
  --accent:      #78a300;
  --accent-deep: #648900;

  --st-new:    #1c6fb0;
  --st-open:   #cc3340;
  --st-wait:   #ad5e18;
  --st-hold:   #5d3f8e;
  --st-done:   #038153;
  --st-closed: #68737d;

  /* ---- Escala de raio ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --radius: var(--r-sm); /* compat com estilos antigos */

  /* ---- Sombras em camadas ---- */
  --shadow-1: 0 1px 2px rgba(3,54,61,.06), 0 1px 1px rgba(3,54,61,.04);
  --shadow-2: 0 2px 4px rgba(3,54,61,.05), 0 8px 24px -10px rgba(3,54,61,.16);
  --shadow-3: 0 18px 48px -16px rgba(1,34,38,.45);
  --shadow: var(--shadow-1); /* compat */

  /* ---- Tipografia ---- */
  --font-display: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-underline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* Regra do sistema: tudo que é dado da máquina é mono.
   Tudo que é linguagem humana é sans. */
.mono, .list-item-id, .pill, .msg-meta, .scw-head-sub,
.list-item-meta, .kbd, .row-label {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---------- Navegação ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px; min-height: 62px;
  background: var(--kale);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  letter-spacing: -0.02em;
}
.nav-brand .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  display: inline-block; box-shadow: 0 0 0 4px rgba(120,163,0,.18);
}
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; font-weight: 400;
  padding: 7px 12px; border-radius: var(--r-sm);
  transition: background .15s ease, color .15s ease; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.10); color: #fff; }
.nav-links a.is-active { background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }
.nav-links a.cta {
  background: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.nav-links a.cta:hover { background: var(--accent-deep); }
.nav-user {
  font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.52);
  margin-right: 6px; white-space: nowrap;
}

/* ---------- Estrutura ---------- */
.wrap { max-width: 820px; margin: 0 auto; padding: 44px 24px 110px; }
.wrap-narrow { max-width: 580px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 24px; margin: 0 0 5px; }
.page-head p { font-size: 14px; color: var(--ink-soft); margin: 0; max-width: 58ch; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 20px; font-size: 13px; text-decoration: none; color: var(--ink-soft);
  transition: color .15s ease, gap .15s ease;
}
.back-link:hover { color: var(--brand); gap: 9px; }
.muted { color: var(--ink-soft); }
.empty {
  color: var(--ink-soft); text-align: center; padding: 52px 24px; font-size: 14px;
}
.empty strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--kale-900);
  background-image:
    radial-gradient(900px 380px at 50% -20%, rgba(120,163,0,.20), transparent 68%),
    radial-gradient(700px 320px at 88% 120%, rgba(28,111,176,.24), transparent 70%),
    radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px;
  color: #fff; padding: 78px 24px 84px; text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.48); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 42px); margin: 0 0 12px; color: #fff;
  font-weight: 600; letter-spacing: -0.035em;
}
.hero p { font-size: 15px; color: rgba(255,255,255,.68); margin: 0 auto 30px; max-width: 46ch; }

.hero-search { position: relative; max-width: 560px; margin: 0 auto; }
.hero-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); pointer-events: none;
}
.hero-search input {
  width: 100%; padding: 15px 16px 15px 46px;
  border: 1px solid transparent; border-radius: var(--r);
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; box-shadow: var(--shadow-3);
  transition: box-shadow .18s ease;
}
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input:focus {
  outline: none;
  box-shadow: var(--shadow-3), 0 0 0 3px rgba(120,163,0,.45);
}

.hero-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero-chip {
  font-family: var(--font-mono); font-size: 12px; text-decoration: none;
  color: rgba(255,255,255,.72); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-pill);
  padding: 5px 13px; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hero-chip:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.24); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  text-decoration: none; padding: 10px 20px; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-deep); box-shadow: none; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Formulários ---------- */
.field { margin-bottom: 18px; }
.field label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  display: block; margin-bottom: 7px; letter-spacing: .01em;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 14px; background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field-hint { font-size: 12px; color: var(--ink-faint); margin: 6px 0 0; }

/* Campo dependente escondido pelo atributo hidden. A regra explícita evita
   que qualquer display: block herdado sobreponha o padrão do navegador. */
.field[hidden] { display: none; }

.choice {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px;
}
.choice label {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 13px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 14px 6px 11px; background: #fff;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.choice label:hover { border-color: var(--ink-faint); }
.choice label:has(input:checked) {
  border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); font-weight: 500;
}
.choice input { accent-color: var(--brand); margin: 0; }

/* ---------- Superfícies ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1);
}
.card-pad { padding: 32px 34px; }
.card + .card { margin-top: 22px; }
.toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.toolbar-end { justify-content: flex-end; }
.toolbar input {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 13px; background: #fff; color: var(--ink);
}
.toolbar input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

/* ---------- Listas ---------- */
.list { overflow: hidden; padding: 0; }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s ease;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-2); }
.list-item-title {
  display: block; font-family: var(--font-display); font-size: 16px;
  font-weight: 600; color: var(--ink); letter-spacing: -0.015em;
}
.list-item-sub { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
.list-item-meta {
  display: block; font-size: 12px; color: var(--ink-faint); margin-top: 5px;
  letter-spacing: .01em;
}
.list-item-id {
  display: inline-block; font-size: 12px; color: var(--ink-faint);
  font-weight: 500; margin-bottom: 3px;
}
.list-item-go {
  color: var(--ink-faint); font-size: 15px; flex-shrink: 0;
  transition: transform .18s ease, color .18s ease;
}
.list-item:hover .list-item-go { transform: translateX(3px); color: var(--accent); }

/* ---------- Busca ---------- */
.search-bar {
  position: relative; display: flex; gap: 10px; align-items: center;
  margin-bottom: 22px;
}
.search-bar svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-faint); pointer-events: none;
}
.search-bar input {
  flex: 1; padding: 12px 14px 12px 42px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.search-bar input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.search-snippet em {
  font-style: normal; font-weight: 600; color: var(--ink);
  background: rgba(120,163,0,.18); border-radius: 2px; padding: 0 2px;
}

/* ---------- Pílulas de status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
  border: 1px solid transparent;
}
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.pill-neutral { background: #eef1f0; color: var(--st-closed); border-color: #e2e7e5; }
.pill-info    { background: var(--brand-tint); color: var(--st-new);  border-color: #cfe4f5; }
.pill-open    { background: #fdf0f1; color: var(--st-open);   border-color: #f6d3d6; }
.pill-wait    { background: #fdf5ea; color: var(--st-wait);   border-color: #f2ddc0; }
.pill-hold    { background: #f4f1fc; color: var(--st-hold);   border-color: #e0d8f3; }
.pill-done    { background: #ebf7f2; color: var(--st-done);   border-color: #c9e8da; }
.pill-brand   { background: var(--brand-tint); color: var(--brand); border-color: #cfe4f5; }
.pill-accent  { background: rgba(120,163,0,.14); color: var(--accent-deep); border-color: rgba(120,163,0,.3); }

/* ---------- Avatares ---------- */
.avatar {
  flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em;
}
.avatar-sm { width: 30px; height: 30px; font-size: 11px; }
.avatar-md { width: 36px; height: 36px; font-size: 12px; }
.avatar-lg { width: 54px; height: 54px; font-size: 17px; }
.avatar-brand  { background: var(--kale); color: #fff; }
.avatar-accent { background: var(--accent); color: #fff; }

/* ---------- Conversa ---------- */
.thread {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.msg { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 18px; }
.msg:last-child { margin-bottom: 0; }
.msg-in { justify-content: flex-start; }
.msg-out { justify-content: flex-end; }
.msg-body { max-width: 76%; }
.msg-meta {
  font-size: 11px; color: var(--ink-faint); margin-bottom: 5px;
  letter-spacing: .01em;
}
.msg-out .msg-meta { text-align: right; }
.msg-bubble {
  padding: 11px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.msg-in .msg-bubble {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-top-left-radius: var(--r-xs); box-shadow: var(--shadow-1);
}
.msg-out .msg-bubble {
  background: var(--brand); color: #fff; border-top-right-radius: var(--r-xs);
}
.tag-internal {
  display: inline-block; background: #fdf5ea; color: var(--st-wait);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r-xs); margin-left: 6px;
}

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--ink-soft); font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 10px 0 11px; margin-bottom: -1px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab.is-active { border-bottom-color: var(--accent); color: var(--ink); font-weight: 600; }

/* ---------- Linhas de detalhe ---------- */
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: none; }
.row-label {
  font-size: 11px; color: var(--ink-faint); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.row-value { font-size: 14px; color: var(--ink); text-align: right; }

/* ---------- Avisos ---------- */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 15px; border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.55;
  margin-bottom: 20px; border: 1px solid transparent;
}
.alert::before { font-family: var(--font-mono); font-weight: 600; flex-shrink: 0; }
.alert-error { background: #fdf0f1; color: #a5252f; border-color: #f2c8cc; }
.alert-error::before { content: "!"; }
.alert-ok { background: #ebf7f2; color: #026b45; border-color: #bfe4d3; }
.alert-ok::before { content: "\2713"; }

/* ---------- Corpo do artigo ---------- */
.article-head { padding: 34px 38px 26px; border-bottom: 1px solid var(--line-soft); }
.article-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep); margin: 0 0 12px;
}
.article-head h1 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 12px; }
.article-meta {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
}
.article-body { padding: 30px 38px 40px; font-size: 15.5px; line-height: 1.75; }
.article-body h2 {
  font-size: 17px; margin: 34px 0 12px; padding-left: 13px;
  border-left: 3px solid var(--accent); letter-spacing: -0.015em;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 16px; color: #2c3a3c; }
.article-body ol { counter-reset: step; list-style: none; padding: 0; margin: 0 0 18px; }
.article-body ol > li {
  counter-increment: step; position: relative;
  padding: 0 0 14px 40px; color: #2c3a3c;
}
.article-body ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint);
  width: 26px; height: 22px; border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
}
.article-body ul { padding-left: 20px; margin: 0 0 18px; }
.article-body h3 {
  font-size: 15px; margin: 26px 0 10px; letter-spacing: -0.01em;
}
.article-body h4 {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  margin: 24px 0 8px;
}
.article-body a { text-decoration: underline; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--brand-deep); }
.article-body li { margin-bottom: 6px; }
.article-body li > ul, .article-body li > ol { margin: 8px 0 0; }
.article-body ul ul { list-style: circle; }

/* Tabela larga rola sozinha no celular, sem esticar a página. */
.prose-tabela {
  overflow-x: auto; margin: 0 0 20px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  -webkit-overflow-scrolling: touch;
}
.article-body table {
  border-collapse: collapse; width: 100%; font-size: 14px;
  background: var(--surface);
}
.article-body th, .article-body td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.article-body th {
  background: var(--surface-2); font-weight: 600; font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap;
}
.article-body tr:last-child td { border-bottom: none; }

.article-body img {
  max-width: 100%; height: auto; display: block;
  margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-sm);
}
.article-body figure { margin: 22px 0; }
.article-body figure img { margin: 0 0 8px; }
.article-body figcaption {
  font-size: 12.5px; color: var(--ink-faint); text-align: center;
}
.prose-video {
  position: relative; padding-top: 56.25%; margin: 22px 0;
  border-radius: var(--r-sm); overflow: hidden; background: var(--ink);
}
.prose-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.article-body blockquote {
  margin: 20px 0; padding: 14px 18px;
  background: var(--surface-2); border-left: 3px solid var(--line);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-soft); font-style: normal;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr {
  border: none; border-top: 1px solid var(--line); margin: 30px 0;
}
.article-body pre {
  background: var(--kale-900); color: #e6eeec; padding: 16px 18px;
  border-radius: var(--r-sm); overflow-x: auto; font-size: 13px;
  line-height: 1.6; margin: 0 0 18px;
}
.article-body pre code {
  background: none; border: none; padding: 0; color: inherit; font-size: inherit;
}
.article-body dt { font-weight: 600; margin-top: 12px; }
.article-body dd { margin: 4px 0 0 18px; color: var(--ink-soft); }
.article-body code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: var(--r-xs); color: var(--kale-700);
}
.article-body strong { font-weight: 600; color: var(--ink); }

/* ---------- Autenticação ---------- */
.auth-bg {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px;
  background: var(--kale-900);
  background-image:
    radial-gradient(760px 420px at 50% -10%, rgba(120,163,0,.20), transparent 68%),
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.auth-card {
  width: 400px; max-width: 100%;
  border-radius: var(--r-lg); border-color: rgba(255,255,255,.10);
  box-shadow: var(--shadow-3);
}
.auth-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  color: var(--kale); padding: 28px 34px 0;
}
.auth-brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.auth-body { padding: 24px 34px 36px; }
.auth-body h1 { font-size: 25px; margin: 0 0 6px; }
.auth-body > p { font-size: 14px; color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- Widget Sunshine ---------- */
.scw-launcher { position: fixed; left: 20px; bottom: 20px; z-index: 9999; }
.scw-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--kale);
  color: #fff; font-size: 21px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(1,34,38,.38);
  transition: transform .18s ease, background .15s ease;
}
.scw-toggle:hover { background: var(--kale-700); transform: translateY(-2px); }
.scw-panel {
  display: none; position: fixed; left: 20px; bottom: 88px; z-index: 9999;
  width: 376px; max-width: calc(100vw - 40px); height: 570px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); overflow: hidden;
  flex-direction: column; font-family: var(--font-body);
}
.scw-head {
  background: var(--kale); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.scw-head-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.scw-head-sub { font-size: 11px; color: rgba(255,255,255,.58); }
.scw-head .pill { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.2); }
.scw-body { flex: 1; padding: 22px; overflow-y: auto; }
.scw-thread { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); }
.scw-compose { padding: 11px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #fff; }
.scw-compose input {
  flex: 1; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-family: inherit; font-size: 13px;
}
.scw-compose input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.scw-compose button {
  background: var(--brand); color: #fff; border: none; border-radius: var(--r-pill);
  padding: 0 18px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.scw-compose button:hover { background: var(--brand-deep); }
.scw-input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 13px; box-sizing: border-box; resize: vertical;
}
.scw-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.scw-err { color: var(--st-open); font-size: 12px; margin-top: 10px; }
.scw-note { text-align: center; color: var(--st-open); font-size: 12px; margin: 8px 0; font-family: var(--font-mono); }
.status-err { color: var(--st-open); }
.status-ok  { color: var(--st-done); }

.scw-carousel { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 8px; }
.scw-card {
  min-width: 178px; max-width: 196px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 13px; box-shadow: var(--shadow-1);
}
.scw-card-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); margin-bottom: 5px; }
.scw-card-desc { font-size: 11.5px; color: var(--ink-soft); line-height: 1.45; }
.scw-card button {
  width: 100%; background: #fff; color: var(--brand); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; margin-top: 10px; font-family: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.scw-card button:hover { background: var(--brand-tint); border-color: var(--brand); }

/* ---------- Responsivo ---------- */
@media (max-width: 760px) {
  .nav { flex-direction: column; align-items: stretch; padding: 12px 18px; gap: 10px; position: static; }
  .nav-links { justify-content: flex-start; }
  .nav-user { width: 100%; margin: 0; }
  .wrap { padding: 30px 18px 84px; }
  .hero { padding: 54px 18px 60px; }
  .card-pad { padding: 24px 20px; }
  .article-head { padding: 26px 22px 20px; }
  .article-head h1 { font-size: 25px; }
  .article-body { padding: 24px 22px 30px; }
  .list-item { padding: 16px; }
  .msg-body { max-width: 86%; }
  .row { flex-direction: column; gap: 3px; }
  .row-value { text-align: left; }
  .scw-panel { width: calc(100vw - 32px); left: 16px; height: 72vh; }
  .scw-launcher { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---------- Molduras do Web Widget ---------- */
/* Molduras aplicadas aos iframes do Zendesk. !important porque o
   próprio widget escreve estilo inline nesses elementos. */
.zd-frame-launcher {
  border-radius: 50% !important;
  box-shadow: 0 6px 20px rgba(1,34,38,.30) !important;
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease !important;
}
.zd-frame-launcher:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 10px 28px rgba(1,34,38,.40) !important;
}
.zd-frame-window {
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 48px -16px rgba(1,34,38,.45) !important;
}
.zd-enter { animation: zd-pop .3s cubic-bezier(.2,.8,.3,1) both; }
@keyframes zd-pop {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* Dois launchers flutuantes brigam por atenção. Quando o messenger
   abre, o widget custom da Sunshine (à esquerda) sai de cena. */
.scw-launcher { transition: opacity .18s ease, transform .18s ease; }
body.zd-messenger-open .scw-launcher {
  opacity: 0; transform: translateY(10px); pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .zd-enter { animation: none; }
  .zd-frame-launcher, .zd-frame-launcher:hover {
    transition: none !important; transform: none !important;
  }
}

