:root {
  --bg: #0e1014; --panel: #121419; --card: #171a21; --line: #252a34; --input: #0f1116;
  --text: #e6e8ee; --muted: #8b92a1; --accent: #00A859; --accent-2: #008A49;
  /* verde da marca IgrejaGO; botões um tom mais escuro para o texto branco ficar legível */
  --btn: #00874A; --btn-hover: #00703D; --sel: #183026; --sel-2: #142a20;
  --ok: #3ccf7a; --warn: #f2b33d; --err: #ff5a5a; --radius: 10px;
  --side-w: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text);
       font-size: 14.5px; -webkit-font-smoothing: antialiased; }
a { color: #3fd08c; text-decoration: none; }  /* verde da marca, mais claro para ler bem no fundo escuro */
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14.5px; margin: 0 0 8px; font-weight: 600; }
p.sub { margin: 0 0 22px; color: var(--muted); }
.ico { flex-shrink: 0; vertical-align: middle; }
button .ico, .btn .ico { margin: -2px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--err); }
.ok { color: var(--ok); }
.hidden { display: none !important; }

/* layout */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side-w); flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line);
        position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; transition: width .18s; z-index: 40; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 10px 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-full { height: 30px; width: auto; display: block; }
.brand-sym { height: 30px; width: 30px; display: none; }
.side-collapsed .brand-sym { display: block; }
.icon-btn { background: transparent; border: 0; color: #c3c8d3; padding: 6px; border-radius: 7px; display: inline-flex;
            align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: #1f232c; color: #fff; text-decoration: none; }
.nav { flex: 1; overflow-y: auto; padding: 4px 10px 10px; scrollbar-width: thin; scrollbar-color: #2a2f3a transparent; }
.nav-group { margin: 18px 0 6px; padding: 0 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
             text-transform: uppercase; color: #6b7280; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 7px 10px; margin: 1px 0; border-radius: 7px;
            color: #d5d9e1; font-size: 13.5px; position: relative; white-space: nowrap; }
.nav-item .ico { color: #fff; opacity: .78; }
.nav-item:hover { background: #1c2028; color: #fff; text-decoration: none; }
.nav-item:hover .ico { opacity: 1; }
.nav-item.active { background: #1e2536; color: #fff; font-weight: 550; }
.nav-item.active .ico { opacity: 1; }
.nav-item.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-bottom { border-top: 1px solid var(--line); padding: 10px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px 6px 2px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #2a3350; color: #fff; display: inline-flex; align-items: center;
          justify-content: center; font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.user-info b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info span { font-size: 11.5px; color: var(--muted); }
/* menu recolhido */
.side-collapsed { --side-w: 64px; }
.side-collapsed .side .lbl { display: none; }
.side-collapsed .side-top { flex-direction: column; gap: 8px; padding: 14px 0 6px; }
.side-collapsed .nav { padding: 4px 8px; }
.side-collapsed .nav-item { justify-content: center; padding: 9px 0; }
.side-collapsed .nav-group { margin: 10px 8px; height: 1px; background: var(--line); padding: 0; }
.side-collapsed .user-card { justify-content: center; padding: 8px 0 2px; }
.side-collapsed .jobs-tray { display: none; }
.main { flex: 1; min-width: 0; padding: 30px 36px 60px; }
.page { max-width: 1200px; }
.menu-btn { display: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
/* abas das configurações */
.subnav { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px 0 22px; overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); font-size: 13.5px;
            border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.on { color: #fff; border-bottom-color: var(--accent); }

/* cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 160px; }
.stack > * + * { margin-top: 12px; }
.between { justify-content: space-between; }
.stat { font-size: 28px; font-weight: 700; }

/* forms */
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea, button, .btn {
  font: inherit; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); padding: 10px 12px; }
input, select, textarea { width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 42px; width: 56px; }
input[type=range] { padding: 0; }
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid #00a85966; border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; cursor: pointer; margin: 0; }
button, .btn { background: var(--btn); border-color: var(--btn); color: #fff; cursor: pointer; font-weight: 600;
               display: inline-flex; align-items: center; gap: 6px; justify-content: center; white-space: nowrap; }
button:hover, .btn:hover { background: var(--btn-hover); text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
.btn-sec { background: #262b36; border-color: var(--line); color: var(--text); }
.btn-sec:hover { background: #303644; }
.btn-ok { background: #23995a; border-color: #23995a; }
.btn-ok:hover { background: #1d8049; }
.btn-danger { background: transparent; border-color: #5a2a2a; color: var(--err); }
.btn-danger:hover { background: #3a1d1d; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.field + .field { margin-top: 12px; }

/* progress */
.progress { height: 8px; background: var(--input); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }

/* media grid */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--text); display: block; position: relative; }
.mcard:hover { border-color: #3d4658; text-decoration: none; }
.mthumb { aspect-ratio: 16/10; background: #0b0d11 center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #3d4658; position: relative; }
.mthumb .dur { position: absolute; right: 6px; bottom: 6px; background: #000b; font-size: 12px; padding: 2px 6px; border-radius: 4px; color: #fff; }
.mbody { padding: 8px 10px 10px; }
.mtitle { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mmeta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: #2a3142; color: #c9d3ea; }
.badge.video { background: #23345e; } .badge.audio { background: #3c2a55; } .badge.image { background: #1f4a3a; }
.mcard .sel { position: absolute; top: 8px; left: 8px; z-index: 2; transform: scale(1.3); }

/* tables/lists */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.list-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { background: #222733; border-color: var(--line); color: var(--muted); font-weight: 500; }
.tabs button.on { background: var(--sel); color: #fff; border-color: var(--accent); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.kcol { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 300px; }
.kcol.drag { border-color: var(--accent); background: var(--sel-2); }
.kcol h3 { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 4px 8px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: grab; }
.kcard:hover { border-color: #3d4658; }
.kcard .t { font-weight: 600; font-size: 14px; }
.late { color: var(--err); font-weight: 600; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { font-size: 12px; color: var(--muted); text-align: center; padding: 4px; }
.cal .day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 108px; padding: 6px; cursor: pointer; }
.cal .day.out { opacity: .4; }
.cal .day.today { border-color: var(--accent); }
.cal .day .n { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cal .pill { font-size: 12px; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #2a3142; }
.st-ideia { background: #3a3f4d !important; } .st-producao { background: #5a4419 !important; }
.st-agendado { background: #23345e !important; } .st-publicado { background: #1f4a3a !important; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: #000a; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; width: 100%; max-width: 620px; }
.modal h2 { display: flex; justify-content: space-between; align-items: center; }
.x { background: transparent; border: 0; color: var(--muted); font-size: 22px; padding: 0 6px; }
.x:hover { background: transparent; color: #fff; }

/* toast & jobs tray */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: #222836; border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 10px; max-width: 380px; box-shadow: 0 6px 24px #0008; font-size: 14px; }
.toast.error { border-left-color: var(--err); } .toast.ok { border-left-color: var(--ok); }
.jobs-tray { margin: 10px 0 0; }
.job-mini { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; margin-top: 6px; font-size: 12px; }
.job-mini .progress { height: 5px; margin: 5px 0 0; }

/* misc */
.preview-img { width: 100%; border-radius: 10px; background: #0b0d11; display: block; }
video, audio { width: 100%; border-radius: 10px; background: #000; }
.copy-block { position: relative; white-space: pre-wrap; background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.copy-block .btn-sm { position: absolute; top: 8px; right: 8px; }
.seg { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: start; padding: 4px 0; }
.seg .t { font-size: 12px; color: var(--muted); padding-top: 8px; cursor: pointer; }
.seg .t:hover { color: var(--accent); }
.seg textarea { min-height: 38px; padding: 7px 10px; font-size: 14px; }
.clip { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--input); }
.clip.on { border-color: var(--accent); }
.swatch { width: 22px; height: 22px; border-radius: 6px; display: inline-block; border: 1px solid #fff3; vertical-align: middle; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; }
.drop.over { border-color: var(--accent); color: var(--text); }
kbd { background: #262b36; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12px; }

/* ícones em componentes */
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick button { background: var(--input); border: 1px solid var(--line); color: #fff; padding: 8px; border-radius: 8px; }
.icon-pick button:hover { background: #1f2430; }
.icon-pick button.on { border-color: var(--accent); background: var(--sel-2); }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--muted); }
.search-box input { border: 0; background: transparent; padding: 9px 0; outline: none !important; }
.search-box:focus-within { border-color: var(--accent); }
.conv-list-label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #6b7280; padding: 6px 8px 4px; }
.side-link { display: flex !important; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; padding: 7px 8px !important; border-radius: 7px; }
.side-link:hover { background: #1c2028; color: #fff; text-decoration: none; }
.acard .ai { color: #fff; width: 36px; height: 36px; border-radius: 9px; background: #1f2636; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mthumb .ico { color: #4b5466; }
.stat-card { display: flex; align-items: center; gap: 14px; color: inherit; margin: 0; }
.stat-card:hover { border-color: #353c4a; text-decoration: none; }
.stat-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--sel-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--input); font-size: 13.5px; }
.quick a:hover { border-color: #3a4252; background: #161a22; text-decoration: none; }
.quick a .ico { color: #fff; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ico { color: #fff; opacity: .8; }

/* ---------------------------------------------------------------- chat */
.main-chat { padding: 0 !important; }
.main-chat .page { max-width: none; height: 100vh; }
.main-chat .menu-btn { position: absolute; z-index: 5; margin: 8px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-shell { display: flex; height: 100vh; }
.chat-side { width: 250px; flex-shrink: 0; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; background: #13161c; }
.conv-list { flex: 1; overflow-y: auto; margin: 0 -4px; }
.conv { display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 8px; color: var(--text); font-size: 13.5px; }
.conv:hover { background: #1f2430; text-decoration: none; }
.conv.on { background: var(--sel); }
.conv .ct { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .cdel { visibility: hidden; background: transparent; border: 0; color: var(--muted); padding: 0 4px; font-size: 16px; }
.conv:hover .cdel { visibility: visible; }
.chat-side > a { padding: 4px 6px; display: block; }
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); min-height: 56px; }
.messages { flex: 1; overflow-y: auto; padding: 24px max(20px, calc((100% - 820px) / 2)); scroll-behavior: auto; }
.msg { display: flex; gap: 12px; margin-bottom: 22px; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--sel); border-radius: 16px 16px 4px 16px; padding: 10px 14px; max-width: 78%; line-height: 1.5; }
.msg .atts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg .atts img { max-height: 140px; max-width: 220px; border-radius: 8px; display: block; }
.msg .av { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; background: #13261c; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.msg .body { flex: 1; min-width: 0; }
.msg .who { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.mact { margin-top: 6px; opacity: 0; transition: opacity .15s; }
.msg:hover .mact { opacity: 1; }
.tools-used { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tools-used span { font-size: 12px; background: #1f2430; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted); }
.md { line-height: 1.6; font-size: 15px; word-wrap: break-word; }
.md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; }
.md h3, .md h4, .md h5, .md h6 { margin: 16px 0 8px; font-size: 16px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md li { margin: 3px 0; }
.md code { background: #262b36; padding: 1px 5px; border-radius: 4px; font-size: 13.5px; }
.md pre { background: #0b0d11; border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; }
.md pre code { background: none; padding: 0; }
.md blockquote { border-left: 3px solid var(--accent); margin: 0 0 10px; padding: 2px 12px; color: #c9cfdc; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md .tbl { overflow-x: auto; margin: 0 0 10px; }
.md table { border: 1px solid var(--line); border-radius: 8px; }
.md th, .md td { padding: 6px 10px; border: 1px solid var(--line); }
.dots i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.notice { text-align: center; font-size: 13px; color: var(--muted); margin: -8px 0 18px; }
.notice.err { color: var(--err); }
.composer-wrap { padding: 8px max(20px, calc((100% - 820px) / 2)) 14px; }
.composer { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.composer.over { border-color: var(--accent); }
.composer textarea { border: 0; background: transparent; resize: none; min-height: 28px; max-height: 220px; padding: 6px 4px; outline: none !important; }
.pending-att { display: flex; flex-wrap: wrap; gap: 6px; }
.pending-att:not(:empty) { margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #262b36; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; color: var(--text); }
.chip button { background: transparent; border: 0; color: var(--muted); padding: 0 2px; font-size: 14px; }
.chat-home { max-width: 820px; margin: 0 auto; padding-top: 4vh; }
.chat-home .hero { text-align: center; margin-bottom: 24px; }
.chat-home .logo-dot { width: 52px; height: 52px; border-radius: 15px; margin: 0 auto 14px; background: transparent;
  display: flex; align-items: center; justify-content: center; color: #fff; }
.msg .av { color: #fff; }
.chat-home h1 { font-size: 26px; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.acard { background: var(--card); border: 1px solid var(--line); color: var(--text); text-align: left; display: flex; gap: 10px; align-items: flex-start; justify-content: flex-start; padding: 12px; white-space: normal; font-weight: 400; }
.acard:hover { background: #222733; border-color: #3d4658; }
.acard.on { border-color: var(--accent); background: var(--sel-2); }
.acard .ai { font-size: 22px; }
.acard b { display: block; font-size: 14px; margin-bottom: 2px; }
.acard .small { display: block; line-height: 1.35; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.starter { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 400; font-size: 13.5px; border-radius: 99px; white-space: normal; }
.starter:hover { background: #222733; }
.action-card { border: 1px solid var(--accent); background: #18203a; border-radius: 12px; padding: 14px; margin: 0 0 22px 42px; }
.action-card .ah { font-weight: 600; margin-bottom: 10px; }
.action-card .act { display: flex; gap: 10px; align-items: flex-start; background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; color: var(--text); font-size: 14px; cursor: pointer; }
.action-card .act input { margin-top: 3px; }
.action-card .al { font-weight: 600; margin-bottom: 4px; }
.tool-results { margin: -10px 0 22px 42px; }
.tool-results .tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 6px; background: var(--input); }
.tool-results .tr.ok { border-color: #23995a66; }

@media (max-width: 900px) {
  .chat-side { display: none; }
  .messages, .composer-wrap { padding-left: 12px; padding-right: 12px; }
  .chat-head { padding-left: 90px; }
  .action-card, .tool-results { margin-left: 0; }
  .side { position: fixed; left: -260px; z-index: 40; transition: left .2s; }
  .side.open { left: 0; }
  .menu-btn { display: inline-flex; margin-bottom: 12px; }
  .main { padding: 18px 14px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(4, 260px); }
  .cal .day { min-height: 70px; }
}

/* marca IgrejaGO no chat (avatar da IA e tela inicial) */
.msg .av img { width: 20px; height: 20px; }
.chat-home .logo-dot img { width: 52px; height: 52px; }
.auth-logo { display: block; height: 46px; width: auto; margin: 0 auto 22px; }

/* aviso de versão nova (programa Desktop) */
.update-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: -10px 0 18px; padding: 10px 14px;
              background: #0f2a1e; border: 1px solid #00a85966; border-radius: 10px; font-size: 13.5px; }
.update-bar .upd-notes { flex-basis: 100%; } .update-bar ul { margin: 4px 0 6px; padding-left: 20px; }
.main-design .update-bar, .main-chat .update-bar { display: none; }

/* menu: grupos que abrem e fecham + atalho principal */
button.nav-group { display: flex; width: 100%; align-items: center; justify-content: space-between; background: none; border: 0;
  color: var(--muted); cursor: pointer; text-align: left; border-radius: 6px; }
button.nav-group:hover { background: none; color: #c3c8d3; }
.nav-group .chev .ico { transition: transform .15s; opacity: .7; }
.nav-sec.closed .nav-sec-body { display: none; }
.nav-sec.closed .chev .ico { transform: rotate(-90deg); }
.side-collapsed .nav-sec.closed .nav-sec-body { display: block; }
.nav-hero { background: linear-gradient(90deg, #0f2a1e, #12241d); border: 1px solid #00a85955; margin-top: 6px; }
.nav-hero .ico { color: #3fd08c !important; opacity: 1 !important; }
.nav-hero:hover { border-color: #00a859aa; }

/* avisos da equipe IgrejaGO */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: -6px 0 16px; border-radius: 10px;
  border: 1px solid #2c3a5c; background: #121a2c; }
.notice + .notice { margin-top: -8px; }
.notice-txt { white-space: pre-line; margin-top: 2px; color: #c9cfdb; }
.notice-ico { color: #8fb0ff; margin-top: 1px; }
.notice-importante { border-color: #6b4a14; background: #231a0c; } .notice-importante .notice-ico { color: var(--warn); }
.notice-novidade { border-color: #00a85966; background: #0f2a1e; } .notice-novidade .notice-ico { color: #3fd08c; }
.warn-box { background: #231a0c; border: 1px solid #6b4a14; color: #f3d9a4; border-radius: 10px; padding: 10px 12px; }

/* pregação de domingo */
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.flow-steps .fs { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.flow-steps b { width: 26px; height: 26px; border-radius: 99px; background: var(--sel); color: #3fd08c; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.clip-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.clip-row:last-child { border-bottom: 0; }
.clip-row .grow { flex: 1; min-width: 0; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.art-grid figure { margin: 0; background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.art-grid img { width: 100%; border-radius: 6px; display: block; }
.art-grid figcaption { margin-top: 8px; gap: 6px; }
.runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.run-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--input); }
.run-item:hover { border-color: #3a4252; text-decoration: none; }
.run-item > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.run-item b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run-thumb { width: 64px; height: 40px; border-radius: 6px; background: #20242d center/cover; flex-shrink: 0; }
.st-preparando { background: #5a4419 !important; } .st-revisar { background: #23345e !important; }
.st-pronto { background: #1f4a3a !important; } .st-erro { background: #5a2323 !important; }
.more-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.more-block:last-child { border-bottom: 0; }
.pre { white-space: pre-wrap; font-size: 14px; line-height: 1.55; margin-top: 8px; color: #d5d9e2; }

/* painel inicial */
.hero-card { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(120deg, #0f2a1e 0%, #141a24 70%); border-color: #00a85955; }
.hero-card h2 { font-size: 19px; margin: 0 0 4px; }
.checklist { display: grid; gap: 8px; }
.checklist a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--input); }
.checklist a:hover { border-color: #3a4252; text-decoration: none; }
.checklist .dot { width: 22px; height: 22px; border-radius: 99px; border: 2px solid #3a4252; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.checklist .done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.checklist .done b { text-decoration: line-through; opacity: .6; }
.progress-thin { height: 6px; background: #20242d; border-radius: 99px; overflow: hidden; margin: 8px 0 14px; }
.progress-thin > i { display: block; height: 100%; background: var(--accent); }
.donate-card { border-color: #6b3a4a; background: linear-gradient(120deg, #2a141c, #171a21 70%); }

/* financeiro */
.bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; }
.bar { height: 8px; background: #20242d; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); } .bar i.saida { background: var(--err); }

/* apoie */
.plans .plan { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.plans .plan h2 { margin: 6px 0 0; }
.plans .plan ul { margin: 0; padding-left: 18px; line-height: 1.7; }
.plans .plan .price { font-size: 26px; font-weight: 700; margin-top: auto; padding-top: 8px; }
.plans .plan .btn { margin-top: 8px; text-align: center; }
.plan-hi { border-color: #00a859aa; box-shadow: 0 0 0 1px #00a85933; }
.plans { margin-bottom: 16px; }
@media (max-width: 900px) {
  .flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* animar arte */
.anim-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.anim-models { margin: 0; max-height: calc(100vh - 140px); overflow: auto; }
.anim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.anim-model { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 6px; background: var(--input); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-weight: 500; font-size: 12px; line-height: 1.25; text-align: center; }
.anim-model:hover { background: #161a22; border-color: #3a4252; }
.anim-model.on { border-color: var(--accent); background: var(--sel); }
.anim-model canvas { width: 100%; height: auto; border-radius: 6px; background: #000; }
.anim-stage { position: sticky; top: 10px; }
.anim-preview { margin: 0 auto; max-height: calc(100vh - 150px); max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 40px #0008; display: flex; }
.anim-preview canvas { width: 100%; height: 100%; display: block; }
.anim-side { margin: 0; }
.anim-slots { display: grid; gap: 6px; margin-top: 8px; }
.anim-slot { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); }
.anim-slot img, .anim-slot-ico { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #20242d; }
.anim-slot .small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) { .anim-layout { grid-template-columns: minmax(0, 1fr) 320px; } .anim-models { grid-column: 1 / -1; max-height: none; }
  .anim-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
@media (max-width: 800px) { .anim-layout { grid-template-columns: 1fr; } .anim-stage { position: static; } .anim-preview { max-height: 70vh; } }

/* ================================================================ visual limpo (1.3.4) */
:root { --bg: #0c0e12; --panel: #0f1217; --card: #14171d; --line: #222731; --radius: 14px; }
body { background: radial-gradient(1100px 520px at 85% -12%, #00a85914, transparent 60%), var(--bg); background-attachment: fixed; }
.main { padding: 26px 40px 64px; }
.page { max-width: 1180px; margin: 0 auto; }
h1 { font-size: 25px; letter-spacing: -.02em; font-weight: 700; }
p.sub { font-size: 14.5px; margin-bottom: 20px; }
.card { background: linear-gradient(180deg, #151920 0%, #12151b 100%); border-color: var(--line);
  box-shadow: inset 0 1px 0 #ffffff06, 0 10px 30px -22px #000; }
.card-head { margin-bottom: 14px; }
.card-head h2 { font-size: 15px; font-weight: 650; }
.card-head h2 .ico { opacity: 1; color: #3fd08c; }
.card-desc { margin: -8px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.btn, button { border-radius: 9px; }
input, select, textarea { border-radius: 9px; }

/* menu lateral */
.side { background: linear-gradient(180deg, #0f1217, #0d1014); border-right-color: #1c2029; }
.side-top { padding: 16px 12px 12px 16px; }
.brand-full { height: 28px; }
.nav { padding: 4px 12px 12px; }
button.nav-group { margin: 16px 0 4px; padding: 0 8px; font-size: 10.5px; letter-spacing: .1em; color: #5d6575; }
button.nav-group:hover { color: #9aa2b1; }
.nav-item { padding: 8px 10px; margin: 2px 0; border-radius: 9px; color: #b4bac6; font-size: 13.5px; transition: background .12s, color .12s; }
.nav-item .ico { color: #c8ced8; opacity: .55; }
.nav-item:hover { background: #161a21; color: #fff; }
.nav-item.active { background: #12221b; color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px #00a85926; }
.nav-item.active .ico { color: #3fd08c; opacity: 1; }
.nav-item.active::before { left: -12px; top: 9px; bottom: 9px; }
.nav-hero { background: linear-gradient(90deg, #11271d, #10181a); border: 1px solid #00a85940; margin: 8px 0 2px; color: #e7f7ee; }
.nav-hero:hover { border-color: #00a85999; background: linear-gradient(90deg, #143023, #111c1d); }
.side-bottom { border-top-color: #1c2029; padding: 10px 12px 14px; }
.user-card { background: #141820; border: 1px solid #1f2430; border-radius: 12px; padding: 8px 8px 8px 10px; margin-top: 8px; }
.avatar { background: linear-gradient(135deg, #00a859, #00663a); }
.side-collapsed .user-card { background: none; border: 0; padding: 8px 0 2px; }

/* avisos no topo, alinhados com o conteúdo */
.notice { margin: 0 0 18px; }
.notice > .grow { flex: 1; text-align: left; }

/* painel inicial */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { margin: 0 0 2px; }
.dash-head .sub { margin: 0; }
.dash-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.dash-top > .card { margin: 0; }
.hero-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 24px;
  background: radial-gradient(500px 220px at 100% 0%, #00a85926, transparent 70%), linear-gradient(135deg, #10241b 0%, #131820 65%); border-color: #00a85940; }
.hero-card h2 { font-size: 20px; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.hero-card h2 .ico { color: #3fd08c; }
.hero-card .hero-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-card .hero-steps span { font-size: 12.5px; padding: 5px 10px; border-radius: 99px; background: #ffffff0d; border: 1px solid #ffffff14; color: #cfd6df; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.onb-card .onb-list { display: grid; gap: 2px; }
.onb-card .onb-list a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; color: var(--text); font-size: 13.5px; }
.onb-card .onb-list a:hover { background: #1a1f28; text-decoration: none; }
.onb-card .onb-list .dot { width: 20px; height: 20px; border-radius: 99px; border: 2px solid #3a4252; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.onb-card .onb-list .done { color: var(--muted); }
.onb-card .onb-list .done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.onb-card .onb-list .done span:last-child { text-decoration: line-through; }
.onb-card .onb-list .next { background: #12221b; }
.stats { margin-bottom: 16px; }
.stats .stat-card { padding: 16px 18px; }
.stats .stat { font-size: 26px; line-height: 1.1; }
.stat-ico { background: #12221b; color: #3fd08c; border: 1px solid #00a85926; }
.quick-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-tiles a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--text);
  background: #0f1217; font-size: 13.5px; }
.quick-tiles a:hover { border-color: #3a4252; background: #161a21; text-decoration: none; }
.quick-tiles a .ico { color: #3fd08c; }
.donate-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 18px;
  border: 1px solid #5a2f3d; border-radius: 14px; background: linear-gradient(90deg, #22131a, #15171d 70%); margin-top: 4px; }
.donate-bar .ico { color: #f28aa5; }
@media (max-width: 1000px) { .dash-top { grid-template-columns: 1fr; } }

/* configurações */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.settings-grid > .card { margin: 0; }
.settings-grid > .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

/* login e primeiro acesso */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 52px;
  background: radial-gradient(700px 420px at 15% 110%, #00a85955, transparent 60%), radial-gradient(500px 300px at 110% -10%, #00a85933, transparent 60%),
  linear-gradient(160deg, #0f2a1e 0%, #0b1410 60%, #0a0f0d 100%); border-right: 1px solid #1c2a23; }
.auth-brand img { height: 40px; width: auto; align-self: flex-start; }
.auth-brand h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; max-width: 460px; }
.auth-brand h2 em { font-style: normal; color: #3fd08c; }
.auth-brand p { color: #b9c7bf; font-size: 15.5px; max-width: 440px; margin: 0 0 26px; line-height: 1.6; }
.auth-feats { display: grid; gap: 12px; }
.auth-feats div { display: flex; align-items: center; gap: 12px; color: #dbe7e0; font-size: 14.5px; }
.auth-feats .ico { color: #3fd08c; background: #00a8591f; border: 1px solid #00a85933; border-radius: 10px; padding: 7px; width: 34px; height: 34px; }
.auth-verse { color: #7f9188; font-size: 13px; font-style: italic; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.auth-form .box { width: 100%; }
.auth-form .card { padding: 28px; border-radius: 18px; }
.auth-form .auth-logo { display: none; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-brand { display: none; } .auth-form .auth-logo { display: block; } }
.auth-split.no-brand { grid-template-columns: 1fr; } .no-brand .auth-brand { display: none; } .no-brand .auth-form .auth-logo { display: block; }
.update-bar { margin: 0 0 18px; }
.empty-mini { color: var(--muted); font-size: 13.5px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
.hero-foot { justify-content: flex-start; }
.hero-foot > .small { margin-left: auto; }
.setup-err { background: #3a1d1d; color: #f6b3b3; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; }

/* ================================================================ visual limpo nas telas (1.3.5) */
/* cabeçalho das telas: ícone + título + subtítulo */
h1.ph { display: flex; align-items: center; gap: 12px; }
.ph-ico { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: linear-gradient(135deg, #12291e, #0f1a16); border: 1px solid #00a85933; color: #3fd08c; box-shadow: 0 6px 18px -10px #00a85966; }
.ph-ico .ico { color: #3fd08c; }
h1.ph + p.sub, .page-head h1.ph + p.sub, h1.ph + .sub { padding-left: 50px; }
.page-head { margin-bottom: 6px; align-items: center; }
.page-head > div:first-child { min-width: 0; }

/* campos */
label { font-size: 12.5px; font-weight: 500; color: #aeb5c2; margin-bottom: 6px; }
input, select, textarea { background: #0d1015; border-color: #262b35; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #323846; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #00a85924; }
input::placeholder, textarea::placeholder { color: #5b6272; }
.check { font-size: 13.5px; }

/* botões */
button, .btn { transition: background .15s, border-color .15s, transform .05s; }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
.btn-sec { background: #1b1f27; border-color: #2a303c; }
.btn-sec:hover { background: #232834; border-color: #353c4a; }
.icon-btn { border-radius: 8px; }

/* abas */
.tabs { gap: 4px; padding: 4px; background: #0d1015; border: 1px solid var(--line); border-radius: 12px; display: inline-flex; flex-wrap: wrap; }
.tabs button { background: transparent; border-color: transparent; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 9px; }
.tabs button:hover { background: #171b22; color: var(--text); }
.tabs button.on { background: var(--sel); color: #fff; border-color: #00a85940; box-shadow: none; }
.subnav { gap: 4px; }
.subnav a { border-radius: 8px 8px 0 0; padding: 10px 14px; }
.subnav a:hover { background: #ffffff06; }

/* tabelas */
table { border-collapse: separate; border-spacing: 0; }
th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #7c8494; padding: 11px 12px; background: #11141a;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom-color: #1d2129; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td, table tr:hover td { background: #ffffff04; }
.card[style*="padding:0"] table, .card[style*="padding: 0"] table { border-radius: var(--radius); overflow: hidden; }
.card[style*="padding:0"] th:first-child { border-top-left-radius: var(--radius); }
.card[style*="padding:0"] th:last-child { border-top-right-radius: var(--radius); }

/* cartões de mídia */
.mgrid { gap: 14px; }
.mcard { border-radius: 12px; background: #12151b; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mcard:hover { border-color: #00a85955; transform: translateY(-2px); box-shadow: 0 12px 28px -18px #000; }
.mthumb { background-color: #0a0c10; }
.mbody { padding: 10px 12px 12px; }

/* selos, barras, dicas e listas */
.badge { font-weight: 600; padding: 3px 8px; letter-spacing: .01em; }
.progress { height: 8px; background: #0d1015; border: 1px solid #1d2129; border-radius: 99px; }
.progress > div { border-radius: 99px; background: linear-gradient(90deg, #00874a, #3fd08c); }
.list-item { padding: 11px 0; }
.empty { border: 1px dashed var(--line); border-radius: 12px; background: #ffffff03; }
.copy-block { background: #0d1015; border-color: #262b35; }

/* janelas (modais) */
.modal-bg { background: #05070acc; backdrop-filter: blur(4px); }
.modal { background: linear-gradient(180deg, #151920, #11141a); border-color: #262b35; border-radius: 18px; padding: 22px 24px; box-shadow: 0 30px 80px -20px #000c; }
.modal h2 { font-size: 18px; margin-bottom: 16px; }
.x { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
  background: #ffffff0a; border: 1px solid #262b35; padding: 0; }
.x:hover { background: #ffffff14; }
.subnav { scrollbar-width: none; } .subnav::-webkit-scrollbar { display: none; }
input[type=file] { padding: 6px; color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 13px; color: var(--text); background: #1b1f27; border: 1px solid #2a303c;
  border-radius: 8px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: #232834; }
