/* Portal do Cliente ConectAtende - padrão visual Conect (base do ConectCP). Tokens primeiro: troque a marca aqui. */
:root {
  color-scheme: light;
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f7f8fa; --linha: #e3e5e9; --linha-2: #eef0f3;
  --txt: #0f1113; --txt-2: #4a4e55; --txt-3: #757a83;
  --marca: #2a78d6; --marca-forte: #1c5cab; --marca-suave: #e6effb; --marca-txt: #ffffff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --div-neg: #3987e5; --div-mid: #c9c8c2; --div-pos: #e34948;
  --st-good: #0ca30c; --st-warn: #fab219; --st-serious: #ec835a; --st-crit: #d03b3b; --st-info: #2a78d6;
  --good-bg: #e7f6e7; --good-txt: #0a6b0a; --warn-bg: #fff4d6; --warn-txt: #7a5200; --serious-bg: #fde9e0; --serious-txt: #8f3a14;
  --crit-bg: #fbe5e5; --crit-txt: #a11f1f; --info-bg: #e6effb; --info-txt: #1c5cab; --neutro-bg: #eef0f3; --neutro-txt: #4a4e55;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sombra-2: 0 12px 32px rgba(16, 24, 40, .18);
  --raio: 12px; --raio-sm: 8px;
  --lat: 248px;
  --fonte: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111315; --surface: #1a1c1f; --surface-2: #202327; --linha: #2c3036; --linha-2: #24272c;
  --txt: #f0efec; --txt-2: #c3c2b7; --txt-3: #8f9198;
  --marca: #3987e5; --marca-forte: #6da7ec; --marca-suave: #17283d; --marca-txt: #ffffff;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --div-neg: #3987e5; --div-mid: #5b5b56; --div-pos: #e66767;
  --good-bg: #13301a; --good-txt: #7ddc7d; --warn-bg: #3a2e0d; --warn-txt: #ffd36b; --serious-bg: #3b2015; --serious-txt: #f5a786;
  --crit-bg: #3d1717; --crit-txt: #ff9a9a; --info-bg: #17283d; --info-txt: #86b6ef; --neutro-bg: #26292e; --neutro-txt: #c3c2b7;
  --sombra: 0 1px 2px rgba(0, 0, 0, .4); --sombra-2: 0 16px 40px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--fonte); color: var(--txt); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body.travado { overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--marca); }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--txt-3); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }

/* ---------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--linha); background: var(--surface); color: var(--txt); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--txt-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn-pri { background: var(--marca); border-color: var(--marca); color: var(--marca-txt); }
.btn-pri:hover { background: var(--marca-forte); border-color: var(--marca-forte); }
.btn-perigo { background: var(--st-crit); border-color: var(--st-crit); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--txt-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--linha); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-bloco { width: 100%; }
.btn-ic { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--txt-2); flex: none; }
.btn-ic:hover { background: var(--surface-2); color: var(--txt); }
.btn-ic.perigo:hover { color: var(--st-crit); background: var(--crit-bg); }
.btn-link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; padding: 0; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: gira .7s linear infinite; }
.spin.lg { width: 28px; height: 28px; border-width: 3px; color: var(--marca); }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- pílulas e badges */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; }
.pill-good { background: var(--good-bg); color: var(--good-txt); }
.pill-warn { background: var(--warn-bg); color: var(--warn-txt); }
.pill-serious { background: var(--serious-bg); color: var(--serious-txt); }
.pill-crit { background: var(--crit-bg); color: var(--crit-txt); }
.pill-info { background: var(--info-bg); color: var(--info-txt); }
.pill-neutro { background: var(--neutro-bg); color: var(--neutro-txt); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--st-crit); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.txt-crit { color: var(--crit-txt); font-weight: 700; }

/* ---------------------------------------------------------------- login */
.pg-login { background: var(--surface); }
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-arte { background: linear-gradient(150deg, #0d2747 0%, #133a6b 55%, #1c5cab 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; overflow: hidden; }
.login-arte::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.login-arte h1 { font-size: clamp(28px, 3.2vw, 42px); max-width: 15ch; }
.login-arte p { max-width: 46ch; color: #cfe0f6; font-size: 16px; margin: 0; }
.login-fluxo { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: f; }
.login-fluxo li { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13.5px; }
.login-fluxo .ic { width: 16px; height: 16px; }
.marca { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.marca .ic { width: 28px; height: 28px; color: var(--marca); }
.login-arte .marca .ic { color: #86b6ef; }
.marca b { font-weight: 800; }
.login-form { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.login-form form { width: min(420px, 100%); padding: 32px; display: grid; gap: 14px; }
.login-form h2 { font-size: 26px; }
.login-form .muted { margin: -6px 0 4px; }
.marca-mob { display: none; }
.versao { text-align: center; font-size: 12px; margin: 0 !important; }
.senha { position: relative; display: block; }
.senha input { padding-right: 46px; }
.senha .btn-ic { position: absolute; right: 2px; top: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--txt-2); }
.check input { width: 18px; height: 18px; accent-color: var(--marca); }
.check-destaque { align-items: flex-start; padding: 12px; border: 1px solid var(--linha); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.check-destaque input { flex: none; margin-top: 2px; }
.check-destaque span { display: grid; gap: 2px; }
.check-destaque b { color: var(--txt); }
.check-destaque:has(input:checked) { border-color: var(--marca); }

/* cabeçalho de página */
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pg-tit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pg-tit h1 { font-size: 24px; }
.pg-tit p { margin: 2px 0 0; font-size: 14px; }
.pg-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--marca-suave); color: var(--marca); display: grid; place-items: center; flex: none; }
.pg-ic .ic { width: 24px; height: 24px; }
.pg-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linha); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--txt-2); font-size: 14px; }
.chip .ic { width: 16px; height: 16px; }
.chip b { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: 12.5px; }
.chip.on { background: var(--txt); color: var(--surface); border-color: var(--txt); }
.chip.on b { background: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .chip.on b { background: rgba(0, 0, 0, .15); }
.busca { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--surface); flex: 1; min-width: 200px; max-width: 420px; color: var(--txt-3); }
.busca input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--txt); height: 100%; }
.lista { display: grid; gap: 10px; }
/* ------------------------------------------------------------------ splash padrão Conect (igual ao ConectFinance) */
#splash {
  --sp-ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(520px 420px at 50% 42%, rgba(92,70,255,.26), transparent 70%), linear-gradient(160deg, #050a1c, #0a1030 55%, #070b20);
  color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: opacity .5s ease, visibility .5s, transform .5s var(--sp-ease);
  --sp-c1: #6ea8ff; --sp-c2: #2f62ff; --sp-v1: #c4a6ff; --sp-v2: #7c4dff;
}
:root[data-theme="light"] #splash { --sp-c1: #1746e0; --sp-c2: #0a1f96; --sp-v1: #8a3ffc; --sp-v2: #5a26f0;
  background: radial-gradient(520px 420px at 50% 42%, rgba(92,70,255,.12), transparent 70%), linear-gradient(160deg, #ffffff, #f1f4fc); color: #0f1b2d; }
:root[data-theme="light"] .splash-logo { filter: drop-shadow(0 8px 18px rgba(60,50,220,.22)); }
:root[data-theme="light"] .splash-name em { background-image: linear-gradient(95deg, #1746e0, #6a2cf0); }
:root[data-theme="light"] .splash-by { color: #5d6c86; }
:root[data-theme="light"] .splash-bar { background: rgba(16,30,54,.1); }
#splash.hide { opacity: 0; visibility: hidden; transform: scale(1.03); }
.splash-inner { display: flex; flex-direction: column; align-items: center; }
.splash-logo { width: 168px; height: auto; margin-bottom: 26px; overflow: visible; filter: drop-shadow(0 0 22px rgba(112,92,255,.55)); }
.splash-logo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: splash-draw .75s var(--sp-ease) forwards; }
.splash-logo .d2 { animation-delay: .3s; }
.splash-logo .d3 { animation-delay: .42s; }
.splash-logo .d4 { animation-delay: .5s; }
.splash-name { font-size: 30px; font-weight: 700; letter-spacing: -.025em; opacity: 0; animation: splash-rise .6s var(--sp-ease) .7s forwards; }
.splash-name em { font-style: normal; background: linear-gradient(95deg, #9ec2ff, #c4a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-by { margin-top: 6px; color: #a3aed0; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: 0; animation: splash-rise .6s var(--sp-ease) .85s forwards; }
.splash-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 30px; }
.splash-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #4f86ff, #a57bff); width: 0; animation: splash-fill 1.5s ease-in-out forwards; }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-fill { to { width: 100%; } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo path { stroke-dashoffset: 0; animation: none; }
  .splash-name, .splash-by { opacity: 1; animation: none; }
}
/* ================================================================ portal */
body { background: var(--bg); }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); background: var(--txt); color: var(--surface); padding: 11px 16px; border-radius: 10px; opacity: 0; transition: .2s; z-index: 300; max-width: calc(100vw - 32px); font-size: 14px; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.logo { width: 34px; height: auto; color: var(--marca); flex: none; }
.login-arte .logo { color: #86b6ef; }
.marca span { font-weight: 500; }
.login-form form.card { box-shadow: var(--sombra-2); border-radius: 16px; }
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--txt-2); }
.campo input, .campo textarea, .campo select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--linha); border-radius: 10px; background: var(--surface); font-size: 16px; outline: none; }
.campo textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.campo input:focus, .campo textarea:focus { border-color: var(--marca); box-shadow: 0 0 0 3px var(--marca-suave); }
.campo input[readonly] { background: var(--surface-2); color: var(--txt-2); }
.codigo { letter-spacing: .5em; text-align: center; font-size: 24px !important; font-weight: 800; }
.aviso { padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-txt); font-size: 14px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-arte { display: none; }
  .marca-mob { display: flex; margin-bottom: 8px; }
  .login-form form { padding: 24px; }
}

.topo-portal { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--surface); border-bottom: 1px solid var(--linha); }
.topo-portal .marca { text-decoration: none; color: var(--txt); font-size: 18px; }
.topo-dir { display: flex; align-items: center; gap: 8px; min-width: 0; }
.usuario { display: flex; align-items: center; gap: 10px; min-width: 0; }
.usuario div { display: grid; min-width: 0; }
.usuario b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usuario small { font-size: 12px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--marca-suave); color: var(--marca-forte); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
#conteudo { max-width: 1100px; margin: 0 auto; padding: 22px 24px 80px; }
@media (max-width: 640px) {
  .topo-portal { padding: 8px 14px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .topo-portal .marca span { display: none; }
  .usuario b { max-width: 46vw; }
  #conteudo { padding: 14px 14px 80px; }
}

.pg-tit .btn-ic { text-decoration: none; }
@media (max-width: 640px) {
  .pg-head { flex-wrap: nowrap; align-items: center; gap: 10px; }
  .pg-tit { flex: 1; min-width: 0; gap: 8px; }
  .pg-tit > div { min-width: 0; }
  .pg-tit h1 { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pg-tit p { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pg-ic { width: 38px; height: 38px; }
  .pg-acoes .btn { width: 44px; height: 44px; padding: 0; }
  .pg-acoes .btn > span { display: none; }
  .filtros { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .busca { max-width: none; height: 46px; }
  .busca input { font-size: 16px; }
}
.faixa-info, .faixa-alerta { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }
.faixa-info { background: var(--info-bg); color: var(--info-txt); }
.faixa-alerta { background: var(--serious-bg); color: var(--serious-txt); font-weight: 600; }
.vazio { text-align: center; color: var(--txt-3); padding: 48px 16px; }
.vazio b { color: var(--txt); }

.card-sol { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); text-decoration: none; color: var(--txt); transition: border-color .12s; }
.card-sol:hover { border-color: var(--marca); }
.sol-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sol-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sol-num { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--marca); }
.card-sol h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sol-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; color: var(--txt-3); font-size: 13px; }
.sol-chev { color: var(--txt-3); }

.form-card { padding: 22px; display: grid; gap: 16px; max-width: 760px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linha); background: var(--surface); font-weight: 600; color: var(--txt-2); cursor: pointer; }
.seg button.on { background: var(--txt); border-color: var(--txt); color: var(--surface); }
.anexos-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.anexos-acoes .btn { cursor: pointer; }
.nota { font-size: 13.5px; color: var(--txt-2); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.form-acoes { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) { .form-card { padding: 16px; } .form-acoes .btn { flex: 1; } }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; padding: 0; border: 1px solid var(--linha); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(15, 17, 19, .72); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(10, 12, 16, .9); display: none; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox.show { display: grid; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

.etapas { list-style: none; margin: 0 0 16px; padding: 14px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio); }
.etapas li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--txt-3); position: relative; }
.etapas li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--linha); }
.etapas li.ok:not(:last-child)::after { background: var(--st-good); }
.etapas i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: var(--surface-2); border: 2px solid var(--linha); }
.etapas li.ok { color: var(--good-txt); }
.etapas li.ok i { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.etapas li.atual { color: var(--marca-forte); font-weight: 700; }
.etapas li.atual i { background: var(--marca); border-color: var(--marca); color: #fff; box-shadow: 0 0 0 4px var(--marca-suave); }
.etapa-fim { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.etapa-fim.crit { background: var(--crit-bg); color: var(--crit-txt); }
@media (max-width: 480px) { .etapas { padding: 12px 8px; } .etapas li { font-size: 11.5px; } }

.det-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.det-main, .det-lado { padding: 20px; }
.det-main h2, .det-lado h2 { font-size: 16px; margin-bottom: 10px; }
.pre { white-space: pre-wrap; line-height: 1.55; margin: 0; }
.solucao { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--good-bg); color: var(--good-txt); }
.solucao.crit { background: var(--crit-bg); color: var(--crit-txt); }
.solucao p { margin: 4px 0 0; color: var(--txt); }
.det-lado dl { margin: 0; display: grid; gap: 2px; }
.det-lado dt { font-size: 12px; color: var(--txt-3); margin-top: 8px; }
.det-lado dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .det-grid { grid-template-columns: 1fr; } .det-lado { order: -1; } }

.conversa { display: grid; gap: 10px; }
.msg { display: flex; }
.msg.eu { justify-content: flex-end; }
.msg-bolha { max-width: min(82%, 560px); padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--linha); }
.msg.eu .msg-bolha { background: var(--marca-suave); border-color: transparent; }
.msg-autor { font-size: 12px; font-weight: 700; color: var(--txt-2); margin-bottom: 3px; }
.msg-bolha p { margin: 0; white-space: pre-wrap; line-height: 1.5; }
.msg-bolha time { display: block; margin-top: 5px; font-size: 11px; color: var(--txt-3); text-align: right; }
.msg-sis { text-align: center; font-size: 12.5px; color: var(--txt-2); }
.msg-sis span { display: inline-block; background: var(--surface-2); border: 1px solid var(--linha); border-radius: 999px; padding: 4px 12px; }
.msg-sis small { display: block; margin-top: 3px; color: var(--txt-3); font-size: 11px; }
.resposta { margin-top: 16px; border: 1px solid var(--linha); border-radius: 12px; padding: 10px; }
.resposta:focus-within { border-color: var(--marca); box-shadow: 0 0 0 3px var(--marca-suave); }
.resposta textarea { width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; font-size: 16px; line-height: 1.5; }
.resposta-acoes { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--linha-2); padding-top: 8px; margin-top: 4px; }
.resposta-acoes .btn-pri { margin-left: auto; }
.resposta-acoes label { cursor: pointer; }
/* ---------------- tipo da solicitação e prioridade com cores */
.tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tipo-op { --c: #4a4e55; --bg: #eef0f3; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; padding: 12px; border: 1.5px solid var(--linha); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
.tipo-op .tipo-ic { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--c); }
.tipo-op b { font-size: 14px; color: var(--txt); }
.tipo-op small { font-size: 12px; color: var(--txt-3); line-height: 1.3; }
.tipo-op:hover { border-color: var(--c); }
.tipo-op.on { border-color: var(--c); background: var(--bg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.tipo-op.on .tipo-ic { background: var(--c); color: #fff; }
.tipo-melhoria { --c: #2a78d6; --bg: #e6effb; }
.tipo-nova_funcao { --c: #7a3fe0; --bg: #f0e9fd; }
.tipo-correcao { --c: #d03b3b; --bg: #fbe5e5; }
.tipo-ajuste { --c: #0f8a6a; --bg: #e2f5ef; }
.tipo-duvida { --c: #b26a00; --bg: #fff1d6; }
.tipo-outro { --c: #4a4e55; --bg: #eef0f3; }
.tipo-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--bg); color: var(--c); white-space: nowrap; }
.tipo-tag .ic { width: 14px; height: 14px; }
@media (max-width: 760px) { .tipos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tipo-op { padding: 10px; } .tipo-op small { display: none; } .tipo-op .tipo-ic { grid-row: auto; width: 32px; height: 32px; } }

.prios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prio-op { --c: #757a83; --bg: #eef0f3; display: grid; gap: 2px; justify-items: start; text-align: left; padding: 10px 12px 10px 14px; border: 1.5px solid var(--linha); border-left: 5px solid var(--c); border-radius: 12px; background: var(--surface); cursor: pointer; }
.prio-op i { display: none; }
.prio-op b { font-size: 14px; color: var(--c); }
.prio-op small { font-size: 12px; color: var(--txt-3); line-height: 1.3; }
.prio-op:hover { border-color: var(--c); }
.prio-op.on { background: var(--bg); border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent); }
.prio-baixa { --c: #1baf7a; --bg: #e2f5ef; }
.prio-normal { --c: #2a78d6; --bg: #e6effb; }
.prio-alta { --c: #e07a1f; --bg: #fdeedd; }
.prio-urgente { --c: #d03b3b; --bg: #fbe5e5; }
.prio { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--c); white-space: nowrap; }
.prio i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
@media (max-width: 640px) { .prios { grid-template-columns: 1fr 1fr; } }

/* arrastando imagem sobre a tela */
body.soltando::after { content: "Solte as imagens aqui"; position: fixed; inset: 12px; z-index: 500; display: grid; place-items: center; border: 3px dashed var(--marca); border-radius: 16px; background: rgba(230, 239, 251, .85); color: var(--marca-forte); font-size: 20px; font-weight: 800; pointer-events: none; }

.aviso.erro { background: var(--crit-bg); color: var(--crit-txt); }
.aviso.ok { background: var(--good-bg); color: var(--good-txt); }

