/* Arena OS v3 — identidade: preto-azulado + azul cobalto (marca Hey Endrew) */
:root {
  --bg: #111214; --side: #17181A; --surface: #1B1C1F; --surface2: #202224; --surface3: #28292D;
  --line: #2B2D31; --line2: #ffffff0f; --hover: #ffffff0a; --text: #ECEDEF; --muted: #8F9297; --faint: #5d6066;
  --accent: #2054F4; --accent2: #3D6BFF; --accent-soft: #2054F424; --glow: 0 8px 30px #2054F433;
  --gray: #3b3e44; --blue: #2a56d6; --green: #1f8a5b; --yellow: #a07c1a; --orange: #b3601f; --red: #b03a3a; --purple: #7a52c7; --pink: #b04787; --brown: #7b523e;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, -apple-system, 'Segoe UI', Inter, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent2); }
i.fa-solid, i.fa-regular { line-height: 1; }
::selection { background: #2054F455; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #ffffff1c; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background: #ffffff30; background-clip: content-box; border: 2px solid transparent; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes scaleIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { transform: translateX(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawerOut { to { transform: translateX(36px); opacity: 0; } }
@keyframes swapIn { from { opacity: .35; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px #dc212100; } 0% { box-shadow: 0 0 0 0 #dc212166; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#app { display: flex; height: 100vh; }

/* ---------- barra lateral ---------- */
.sidebar { width: 252px; flex: none; background: var(--side); border-right: 1px solid var(--line2); display: flex; flex-direction: column; padding: 16px 12px 12px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 6px 16px; }
.brand b { font-size: 16.5px; letter-spacing: -.01em; display: block; } .brand small { color: var(--muted); font-size: 11.5px; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(145deg, var(--accent2), var(--accent)); display: grid; place-items: center; font-weight: 800; font-size: 17px; color: #fff; box-shadow: var(--glow); flex: none; }
.copilot-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; margin-bottom: 14px; border-radius: 11px; border: 1px solid #2054F455; background: linear-gradient(120deg, #2054F41f, #2054F40a); color: #aec3ff; font-weight: 600; transition: background .2s, transform .15s, border-color .2s; }
.copilot-btn:hover { background: linear-gradient(120deg, #2054F43a, #2054F414); border-color: #3D6BFF99; transform: translateY(-1px); }
.copilot-btn:active { transform: scale(.98); }
.navlist { display: flex; flex-direction: column; gap: 2px; }
.navitem { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #a3a6ac; width: 100%; text-align: left; font-weight: 500; position: relative; transition: background .18s, color .18s, transform .12s; }
.navitem .ic { width: 18px; display: grid; place-items: center; font-size: 14px; flex: none; transition: transform .2s var(--ease); }
.navitem .nl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navitem .nb { font-size: 11px; color: var(--faint); font-weight: 600; transition: color .2s; }
.navitem:hover { background: var(--hover); color: var(--text); } .navitem:hover .ic { transform: scale(1.12); }
.navitem:active { transform: scale(.985); }
.navitem.on { background: var(--accent); color: #fff; box-shadow: var(--glow); } .navitem.on .nb { color: #ffffffbb; }
.navitem.add { color: var(--faint); } .navitem.add:hover { color: var(--text); }
.navsec { font-size: 10.5px; color: var(--faint); padding: 18px 12px 6px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.spacer { flex: 1; }
.sidefoot { margin-top: 10px; border-top: 1px solid var(--line2); padding-top: 12px; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; padding: 0 8px 10px; } .status .ver { margin-left: auto; color: var(--faint); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: #25c27a; box-shadow: 0 0 0 3px #25c27a22; }
.usercard { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line2); }
.usercard .who { flex: 1; min-width: 0; } .usercard b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .usercard small { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(145deg, var(--accent2), var(--accent)); display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; flex: none; }

/* ---------- área principal ---------- */
.main { flex: 1; min-width: 0; overflow: auto; position: relative; background: radial-gradient(900px 380px at 78% -140px, #2054F40f, transparent 70%), var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px 40px; background: #111214cc; backdrop-filter: blur(14px); border-bottom: 1px solid var(--line2); }
.topbar .menu { display: none; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13.5px; } .crumb .sep { font-size: 9px; color: var(--faint); }
.searchbar { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(380px, 46vw); padding: 9px 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-align: left; transition: border-color .2s, background .2s, box-shadow .2s; }
.searchbar:hover { border-color: #2054F466; background: var(--surface2); box-shadow: 0 0 0 4px #2054F414; }
.searchbar span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
kbd { font-family: inherit; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--surface3); color: var(--muted); border: 1px solid var(--line); }
.page { max-width: 1260px; margin: 0 auto; padding: 32px 40px 130px; animation: pageIn .45s var(--ease) both; }
h1.title { font-size: 34px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.02em; outline: none; display: flex; align-items: center; gap: 12px; } h1.title .tt { font-size: 26px; color: var(--accent2); }
.icon-big { width: 60px; height: 60px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; color: var(--accent2); margin-bottom: 14px; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.icon-big:hover { transform: translateY(-2px) rotate(-3deg); border-color: #2054F466; background: var(--surface3); }
.emo { font-style: normal; }
.muted { color: var(--muted); }

/* ---------- botões ---------- */
.btn { padding: 7px 12px; border-radius: 9px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; transition: background .16s, color .16s, transform .12s, box-shadow .2s; }
.btn:hover { background: var(--hover); color: var(--text); } .btn:active { transform: scale(.96); }
.btn.ico { padding: 8px; width: 32px; height: 32px; justify-content: center; }
.btn.primary { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 4px 14px #2054F440; } .btn.primary:hover { background: var(--accent2); box-shadow: 0 6px 20px #2054F466; transform: translateY(-1px); } .btn.primary:active { transform: scale(.96); }
.btn.danger { color: #ff8585; } .btn.danger:hover { background: #ff85851a; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.toolbar { display: flex; align-items: center; gap: 2px; margin: 18px 0 12px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.vtab { padding: 9px 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-radius: 8px 8px 0 0; transition: color .18s, background .18s, border-color .2s; }
.vtab i { font-size: 12px; } .vtab.on { color: var(--text); border-color: var(--accent); } .vtab:hover { background: var(--hover); color: var(--text); }
.tools { margin-left: auto; display: flex; gap: 4px; align-items: center; padding-bottom: 4px; }
.search { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; width: 170px; outline: none; transition: border-color .2s, box-shadow .2s, width .25s var(--ease); } .search:focus { border-color: var(--accent); box-shadow: 0 0 0 4px #2054F422; width: 230px; }

/* ---------- tags e chips ---------- */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 19px; background: var(--gray); margin: 1px 4px 1px 0; white-space: nowrap; color: #fff; }
.tag.blue { background: var(--blue); } .tag.green { background: var(--green); } .tag.yellow { background: var(--yellow); } .tag.orange { background: var(--orange); }
.tag.red { background: var(--red); } .tag.purple { background: var(--purple); } .tag.pink { background: var(--pink); } .tag.brown { background: var(--brown); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; margin: 1px 4px 1px 0; border-radius: 8px; background: var(--surface3); border: 1px solid var(--line); font-size: 12.5px; line-height: 20px; cursor: pointer; transition: background .15s, border-color .15s, transform .12s; max-width: 100%; }
.chip:hover { background: var(--accent-soft); border-color: #2054F477; transform: translateY(-1px); } .chip .chip-i { font-size: 9px; color: var(--accent2); }
.ck { color: var(--faint); font-size: 14px; } .ck.on { color: var(--accent2); }

/* ---------- tabela ---------- */
.tablewrap { overflow: auto; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); margin-bottom: 8px; }
table.tbl { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.tbl th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; position: sticky; top: 0; background: var(--surface); text-transform: none; }
.tbl th .thi { font-size: 10.5px; margin-right: 7px; color: var(--faint); }
.tbl td { padding: 6px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; height: 38px; overflow: hidden; text-overflow: ellipsis; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.t { font-weight: 600; }
.tbl tbody tr { animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); transition: background .15s; }
.tbl tbody tr:hover td { background: #ffffff07; }
.tbl td.cell { cursor: text; }
.cell .ph { color: #ffffff3a; }
.groupHead { padding: 16px 2px 8px; display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; } .groupHead .gh { font-size: 10px; color: var(--muted); width: 12px; transition: transform .2s; }
.groupHead .cnt { color: var(--faint); font-weight: 600; }
.newrow { color: var(--faint); padding: 9px 12px; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border-radius: 10px; transition: background .15s, color .15s; } .newrow:hover { background: var(--hover); color: var(--text); }
.newrow i { font-size: 11px; }

/* ---------- board com colunas recolhíveis ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 28px; align-items: flex-start; }
.col { width: 292px; flex: none; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 10px; min-height: 64px; transition: width .35s var(--ease), padding .3s var(--ease), border-color .2s, background .2s; overflow: hidden; }
.col.over { border-color: var(--accent); background: #2054F410; box-shadow: 0 0 0 4px #2054F418; }
.colhead { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px 10px; border-radius: 10px; text-align: left; }
.colhead .cv { font-size: 10px; color: var(--faint); transition: transform .3s var(--ease); width: 12px; }
.colhead:hover .cv { color: var(--text); } .colhead .cnt { margin-left: auto; color: var(--faint); font-weight: 700; font-size: 12px; background: var(--surface3); border-radius: 999px; padding: 1px 8px; }
.cards { transition: opacity .25s, max-height .35s var(--ease); }
.col.collapsed { width: 58px; padding: 10px 6px; cursor: pointer; }
.col.collapsed .cards, .col.collapsed .newrow { display: none; }
.col.collapsed .colhead { flex-direction: column; align-items: center; gap: 14px; padding: 6px 0; }
.col.collapsed .colhead .cv { transform: rotate(90deg); }
.col.collapsed .colhead .cnt { margin: 0; order: -1; }
.col.collapsed .colhead .tag, .col.collapsed .colhead .muted { writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 5px; margin: 0; }
.col.collapsed:hover { background: var(--surface2); border-color: #2054F455; }
.card { background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 13px; margin-bottom: 9px; cursor: pointer; box-shadow: 0 1px 2px #0003; animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); transition: transform .18s var(--ease), border-color .18s, box-shadow .18s, background .18s; }
.card:hover { transform: translateY(-2px); border-color: #2054F466; box-shadow: 0 8px 22px #0006; background: var(--surface3); }
.card.drag { opacity: .35; transform: scale(.98); }
.card .ct { font-weight: 600; margin-bottom: 5px; line-height: 1.35; } .card .cp { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- lista ---------- */
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; cursor: pointer; border-bottom: 1px solid var(--line2); animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); transition: background .15s, transform .15s; }
.lrow > i, .lrow > .emo { color: var(--accent2); width: 16px; text-align: center; }
.lrow:hover { background: var(--hover); transform: translateX(3px); } .lrow .lt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }

/* ---------- calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; background: var(--surface); }
.cal .dow { padding: 9px; color: var(--muted); font-size: 12px; text-align: right; border-bottom: 1px solid var(--line2); font-weight: 600; }
.cal .day { min-height: 112px; padding: 5px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); position: relative; min-width: 0; transition: background .15s; } .cal .day:nth-child(7n+1) { } .cal .day:hover { background: #ffffff05; }
.cal .day.out { background: #00000022; color: var(--muted); }
.cal .day .dn { text-align: right; font-size: 12px; color: var(--muted); padding: 0 4px 3px; }
.cal .day.today .dn span { background: var(--accent); color: #fff; border-radius: 50%; display: inline-block; width: 23px; height: 23px; line-height: 23px; text-align: center; font-weight: 700; box-shadow: var(--glow); }
.cal .day .add { position: absolute; left: 6px; top: 4px; opacity: 0; color: var(--muted); width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; transition: opacity .15s, background .15s; } .cal .day:hover .add { opacity: 1; } .cal .day .add:hover { background: var(--accent); color: #fff; }
.ev { display: block; width: 100%; text-align: left; padding: 2px 7px; border-radius: 6px; margin-bottom: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--blue); color: #fff; transition: transform .12s, filter .15s; } .ev:hover { filter: brightness(1.12); transform: translateX(2px); }
.calhead { display: flex; align-items: center; gap: 8px; margin: 10px 0; } .calhead h3 { margin: 0 8px; font-weight: 700; min-width: 170px; text-align: center; font-size: 17px; } .calhead h3::first-letter { text-transform: uppercase; }

/* ---------- popover / modal / gaveta ---------- */
.popover { position: fixed; z-index: 90; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px #000b; padding: 6px; min-width: 230px; max-width: 360px; max-height: 420px; overflow: auto; animation: scaleIn .16s var(--ease) both; transform-origin: top left; }
.popover .opt { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; width: 100%; text-align: left; transition: background .12s; } .popover .opt:hover, .popover .opt.on { background: var(--hover); }
.popover input[type=text], .popover input[type=search], .popover input:not([type]), .popover input[type=date], .popover input[type=number], .popover select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; margin-bottom: 6px; outline: none; } .popover input:focus, .popover select:focus { border-color: var(--accent); }
.popover label.l { display: block; color: var(--muted); font-size: 12px; margin: 10px 4px 4px; font-weight: 600; }
.iconpick { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; width: 330px; } .iconpick .ib { height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: background .12s, color .12s, transform .12s; } .iconpick .ib:hover { background: var(--accent); color: #fff; transform: scale(1.1); }
.scrim { position: fixed; inset: 0; background: #05060899; backdrop-filter: blur(2px); z-index: 70; animation: fadeIn .2s both; } .scrim.d { z-index: 75; } .scrim.d:not(.in) { animation: none; } .scrim.closing { animation: fadeOut .2s forwards; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 100vw); background: var(--side); border-left: 1px solid var(--line); z-index: 80; overflow: auto; padding: 22px 42px 120px; box-shadow: -20px 0 60px #000a; }
.drawer.in { animation: drawerIn .32s var(--ease) both; } .drawer.swap { animation: swapIn .24s var(--ease) both; } .drawer.closing { animation: drawerOut .2s ease-in forwards; }
.modal { position: fixed; z-index: 85; top: 8vh; left: 50%; transform: translateX(-50%); width: min(620px, 94vw); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-height: 84vh; overflow: auto; box-shadow: 0 30px 80px #000c; animation: scaleIn .22s var(--ease) both; }
.modal h3 { margin: 0 0 14px; font-size: 18px; }
.modal input:not([type=checkbox]), .modal select, .modal textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; width: 100%; outline: none; transition: border-color .2s, box-shadow .2s; } .modal input:focus, .modal select:focus, .modal textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px #2054F422; }
.frow { display: grid; grid-template-columns: 1fr 150px 1fr 32px; gap: 8px; margin-bottom: 8px; align-items: center; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--text); color: #101114; padding: 10px 16px; border-radius: 12px; z-index: 200; box-shadow: 0 10px 30px #000a; font-weight: 600; animation: toastIn .3s var(--ease) both; }

/* ---------- página (gaveta) ---------- */
.dbtag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; } .dbtag i { color: var(--accent2); }
.props { margin: 16px 0 8px; border-bottom: 1px solid var(--line2); padding-bottom: 14px; }
.prow { display: grid; grid-template-columns: 170px 1fr; align-items: start; min-height: 34px; }
.prow .pn { color: var(--muted); padding: 7px 4px; display: flex; align-items: center; gap: 9px; font-size: 13px; } .pn .pni { font-size: 11px; width: 13px; text-align: center; color: var(--faint); }
.prow .pv { padding: 5px 8px; border-radius: 8px; min-height: 30px; cursor: text; transition: background .15s; } .prow .pv:hover { background: var(--hover); }
.cellinput { width: 100%; background: var(--surface3); border: 1px solid var(--accent); border-radius: 7px; padding: 4px 8px; outline: none; }
.titleinput { font-size: 34px; font-weight: 800; background: none; border: 0; outline: none; width: 100%; padding: 0; margin: 8px 0 0; letter-spacing: -.02em; }

/* ---------- blocos ---------- */
.blk { display: flex; gap: 8px; align-items: flex-start; padding: 2px 0; position: relative; }
.blk .tx { flex: 1; outline: none; min-height: 1.6em; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.blk .tx:empty::before { content: attr(data-ph); color: #ffffff30; }
.blk.h1 .tx { font-size: 30px; font-weight: 800; margin-top: 18px; letter-spacing: -.02em; } .blk.h2 .tx { font-size: 23px; font-weight: 700; margin-top: 14px; } .blk.h3 .tx { font-size: 18px; font-weight: 700; margin-top: 10px; }
.blk .mk { width: 22px; text-align: center; color: var(--muted); user-select: none; padding-top: 3px; flex: none; }
.blk.todo.done .tx { color: var(--muted); text-decoration: line-through; }
.blk.todo input[type=checkbox], .prow input[type=checkbox], .tbl input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.blk.quote .tx { border-left: 3px solid var(--accent); padding-left: 14px; color: #cfd2d8; }
.blk.callout { background: var(--surface2); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; } .blk.callout .mk { color: #e8b923; }
.blk.code .tx { font-family: ui-monospace, Menlo, monospace; background: var(--bg); padding: 12px; border-radius: 10px; border: 1px solid var(--line2); }
.blk hr { flex: 1; border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.tx code { background: #ffffff18; padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, Menlo, monospace; font-size: .9em; } .tx a { color: var(--accent2); text-decoration: underline; cursor: pointer; }
.slash .opt .ic { width: 30px; height: 30px; display: grid; place-items: center; background: var(--bg); border-radius: 8px; border: 1px solid var(--line); color: var(--accent2); font-size: 13px; }

/* ---------- início ---------- */
.cards { }
.page > .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.dcard { background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 16px; text-align: left; animation: fadeUp .45s var(--ease) both; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s, background .2s; }
.dcard:nth-child(2) { animation-delay: .04s } .dcard:nth-child(3) { animation-delay: .08s } .dcard:nth-child(4) { animation-delay: .12s } .dcard:nth-child(5) { animation-delay: .16s } .dcard:nth-child(6) { animation-delay: .2s } .dcard:nth-child(n+7) { animation-delay: .24s }
.dcard:hover { transform: translateY(-3px); border-color: #2054F477; box-shadow: 0 12px 30px #0006; background: var(--surface2); }
.dcard-t { display: flex; align-items: center; gap: 11px; color: var(--muted); font-weight: 600; } .dci { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent2); display: grid; place-items: center; font-size: 14px; }
.dcard .n { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -.02em; }
.box { background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; animation: fadeUp .5s var(--ease) both; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .two > div { min-width: 0; }

/* ---------- login ---------- */
.login { margin: auto; width: 360px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px #000a; animation: scaleIn .4s var(--ease) both; }
.login .ws { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 18px; } .login .ws .logo { width: 40px; height: 40px; }
.login input { width: 100%; padding: 11px 13px; margin: 6px 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; outline: none; transition: border-color .2s, box-shadow .2s; } .login input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px #2054F422; }
.login .btn { width: 100%; justify-content: center; padding: 11px; border-radius: 11px; }
.err { color: #ff8585; margin-bottom: 8px; }

/* ---------- copiloto ---------- */
.aifab { position: fixed; right: 24px; bottom: 24px; z-index: 95; height: 52px; padding: 0 22px; border-radius: 999px; background: linear-gradient(120deg, var(--accent), #6a4bff); color: #fff; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 34px #2054F466; transition: transform .2s var(--ease), box-shadow .2s; }
.aifab:hover { transform: translateY(-3px); box-shadow: 0 16px 44px #2054F488; } .aifab:active { transform: scale(.96); }
.aipanel { position: fixed; right: 24px; bottom: 90px; z-index: 95; width: min(410px, calc(100vw - 24px)); height: min(580px, calc(100vh - 120px)); background: #17181Af2; backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 70px #000c; display: flex; flex-direction: column; overflow: hidden; animation: scaleIn .26s var(--ease) both; transform-origin: bottom right; }
.aihead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line2); } .aihead i { color: var(--accent2); margin-right: 4px; }
.ailog { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.aimsg { padding: 9px 13px; border-radius: 15px; max-width: 88%; white-space: pre-wrap; line-height: 1.5; animation: fadeUp .3s var(--ease) both; }
.aimsg.me { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; } .aimsg.bot { background: var(--surface2); align-self: flex-start; border-bottom-left-radius: 5px; }
.aimsg.typing { display: flex; gap: 5px; padding: 13px 15px; } .aimsg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; } .aimsg.typing i:nth-child(2) { animation-delay: .15s } .aimsg.typing i:nth-child(3) { animation-delay: .3s }
.aiact { align-self: flex-start; font-size: 12.5px; color: #7fe3ad; background: #1f8a5b22; border-radius: 10px; padding: 6px 11px; max-width: 92%; animation: fadeUp .3s var(--ease) both; } .aiact i { margin-right: 5px; } .aiact.bad { color: #ffb4b4; background: #b03a3a22; }
.aiin { display: flex; gap: 7px; padding: 12px; border-top: 1px solid var(--line2); align-items: flex-end; }
.aiin textarea { flex: 1; resize: none; background: var(--bg); border: 1px solid var(--line); border-radius: 13px; padding: 10px 13px; max-height: 110px; outline: none; transition: border-color .2s, box-shadow .2s; } .aiin textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px #2054F422; }
.aiin .btn { width: 40px; height: 40px; justify-content: center; border-radius: 12px; padding: 0; }
.aimic { border: 1px solid var(--line); } .aimic.rec { background: #dc2127; color: #fff; animation: pulse 1.3s infinite; }
.ailog input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }

@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .28s var(--ease); } .sidebar.open { transform: none; box-shadow: 20px 0 60px #000b; }
  .topbar { padding: 10px 14px; } .topbar .menu { display: inline-flex; } .crumb span.muted, .crumb .sep { display: none; } .searchbar span { display: none; } .searchbar { width: auto; margin-left: auto; }
  .page { padding: 20px 16px 110px; } .two { grid-template-columns: 1fr; } h1.title { font-size: 26px; } .drawer { padding: 20px 16px 100px; }
  .cal .day { min-height: 70px; } .frow { grid-template-columns: 1fr 1fr; } .aifab span { display: none; } .aifab { padding: 0; width: 52px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; } }

/* ---------- financeiro ---------- */
.finhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fl { display: block; margin-bottom: 12px; } .fl > span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mfoot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.chk { display: flex; align-items: center; gap: 8px; cursor: pointer; } .chk input { width: 16px; height: 16px; accent-color: var(--accent); }
.plan { margin: 10px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.planh, .planr { display: grid; grid-template-columns: 1.6fr 74px 120px 150px 34px; gap: 8px; align-items: center; } .planh { color: var(--muted); font-size: 12px; font-weight: 600; padding: 0 2px; }
.planr input { padding: 7px 9px !important; }
.sumline { margin: 12px 0; padding: 10px 14px; border-radius: 11px; font-weight: 600; display: flex; align-items: center; gap: 8px; } .sumline.ok { background: #1f8a5b22; color: #7fe3ad; } .sumline.bad { background: #b03a3a22; color: #ffb4b4; }
.projbox { margin-top: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.kpis.big { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 18px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; padding: 14px 16px; position: relative; display: flex; flex-direction: column; gap: 3px; animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.kpi small { color: var(--muted); font-weight: 600; font-size: 12px; } .kpi b { font-size: 21px; letter-spacing: -.02em; }
.kpi .ki { position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent2); display: grid; place-items: center; font-size: 13px; }
.kpi.bad b, .bad { color: #ff8585; } .kpi.bad .ki { background: #b03a3a2a; color: #ff8585; } .kpi.good b, .good { color: #7fe3ad; } .kpi.good .ki { background: #1f8a5b2a; color: #7fe3ad; }
.kpis.mini { grid-template-columns: 1fr 1fr; margin: 10px 0 0; } .kpis.mini .kpi { padding: 10px 12px; } .kpis.mini .kpi b { font-size: 16px; }
.box.clickable { cursor: pointer; transition: border-color .2s, transform .2s var(--ease); } .box.clickable:hover { border-color: #2054F477; transform: translateY(-2px); }
.fh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; } .fh i { color: var(--accent2); margin-right: 4px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 13px; background: #a07c1a22; border: 1px solid #a07c1a66; color: #f0d27a; cursor: pointer; margin-top: 14px; transition: background .2s; } .banner:hover { background: #a07c1a33; } .banner span { flex: 1; } .banner b { white-space: nowrap; }
.chart { width: 100%; height: auto; } .chart .gl { stroke: #ffffff10; stroke-width: 1; } .chart .ml { fill: var(--muted); font-size: 11.5px; } .chart .ml.cur { fill: var(--text); font-weight: 700; }
.chart rect { transition: opacity .15s; } .chart rect:hover { opacity: .75; }
.b-rec { fill: var(--accent); background: var(--accent); } .b-prev { fill: #2054F466; background: #2054F466; } .b-sai { fill: #c94f4f; background: #c94f4f; }
.legend { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; } .legend .lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.ptable .ph, .ptable .pr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 10px; padding: 9px 10px; align-items: center; } .ptable .ph { color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line2); } .ptable .pr { border-bottom: 1px solid var(--line2); cursor: pointer; border-radius: 8px; transition: background .15s; } .ptable .pr:hover { background: var(--hover); }
.frow2 { display: grid; grid-template-columns: 84px 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 11px; border-bottom: 1px solid var(--line2); cursor: pointer; animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 24ms); transition: background .15s; }
.frow2:hover { background: var(--hover); } .frow2.late { background: #b03a3a12; } .frow2.late .fdate { color: #ff8585; font-weight: 700; }
.fdate { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; } .ftitle { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ftitle b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .frefs { display: flex; flex-wrap: wrap; gap: 2px; }
.fval { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; } .fval.out { color: #ff8585; } .fval.in { color: #7fe3ad; }
.facts { display: flex; gap: 6px; justify-content: flex-end; } .facts .btn { padding: 5px 10px; font-size: 13px; }
.fbox { margin: 18px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); animation: fadeUp .4s var(--ease) both; } .fbox .frow2 { grid-template-columns: 78px 1fr auto auto auto; padding: 8px 6px; }
.fcta { margin-top: 10px; } .fcta p { margin: 0 0 10px; } .fsub { margin: 12px 0 4px; font-size: 12px; font-weight: 600; } .frefs2 { margin-top: 10px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; } .facts2 { margin-top: 8px; }
.pbar { height: 7px; border-radius: 99px; background: var(--surface3); overflow: hidden; margin: 8px 0; } .pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #25c27a); border-radius: 99px; transition: width .6s var(--ease); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; align-items: center; } .chipsep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.fchip { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; gap: 8px; transition: all .18s; } .fchip span { color: var(--faint); } .fchip:hover { color: var(--text); border-color: #2054F466; } .fchip.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--glow); } .fchip.on span { color: #ffffffbb; }
.mgroup { margin-top: 18px; } .mhead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.ledger { margin-top: 8px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); padding: 4px 6px; }
@media (max-width: 860px) { .two2 { grid-template-columns: 1fr; } .planh { display: none; } .planr { grid-template-columns: 1fr 1fr; } .frow2 { grid-template-columns: 1fr auto; } .frow2 .fdate { grid-column: 1; } .facts { grid-column: 1 / -1; justify-content: flex-start; } .ptable .ph, .ptable .pr { grid-template-columns: 1.5fr 1fr 1fr; } .ptable .ph span:nth-child(n+4), .ptable .pr span:nth-child(n+4), .ptable .pr b { display: none; } }

/* ---------- orçamentos (funil) ---------- */
.bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 14px 0 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg, #2054F412, transparent 70%), var(--surface); }
.bval small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; margin-bottom: 2px; } .bval b { display: block; font-size: 30px; letter-spacing: -.02em; margin-bottom: 6px; }
.stepper { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stg { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; transition: all .2s var(--ease); }
.stg .sn { width: 22px; height: 22px; border-radius: 50%; background: var(--surface3); display: grid; place-items: center; font-size: 11px; } .stg .sn i { font-size: 10px; }
.stg:hover { border-color: #2054F477; color: var(--text); transform: translateY(-1px); }
.stg.done { color: var(--text); } .stg.done .sn { background: #1f8a5b; color: #fff; }
.stg.on { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--glow); } .stg.on .sn { background: #ffffff33; color: #fff; }
details.more { margin: 8px 0 4px; } details.more summary { cursor: pointer; color: var(--muted); padding: 8px 4px; font-size: 13px; font-weight: 600; list-style: none; } details.more summary::before { content: '▸ '; } details.more[open] summary::before { content: '▾ '; } details.more summary:hover { color: var(--text); }
.moreprops { opacity: .85; }
.ocard { display: flex; flex-direction: column; gap: 4px; } .ocard .oc-top { display: flex; justify-content: space-between; } .ocard .oc-val { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; }
.ocard .warn { color: #f0d27a; font-size: 12.5px; }
.osum { padding: 0 10px 8px; color: var(--faint); font-weight: 700; font-size: 12.5px; } .col.collapsed .osum { display: none; }
.otable { border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); overflow: hidden; }
.otable .oh, .otable .or { display: grid; grid-template-columns: 90px 2.2fr 1fr 1fr 1.2fr; gap: 12px; padding: 11px 14px; align-items: center; } .otable .oh { color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line2); }
.otable .or { border-bottom: 1px solid var(--line2); cursor: pointer; animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms); transition: background .15s; } .otable .or:hover { background: var(--hover); } .otable .or:last-child { border-bottom: 0; }
.otable .on { display: flex; flex-direction: column; min-width: 0; } .otable .on b, .otable .on small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .otable .oh { display: none; } .otable .or { grid-template-columns: 1fr auto; } .otable .or span:nth-child(5) { display: none; } }
