@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&display=swap");
:root { --ink: #0B1F33; --blue: #2F6BFF; --wa: #25D366; --line: #e3e8f0; --paper: #F7F9FC; color: var(--ink); background: var(--paper); font-family: Poppins, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, #0B1F33 0 45%, var(--paper) 45%); }
.panel { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 10px; box-shadow: 0 30px 60px -30px rgba(11,31,51,.45); }
h1 { margin: 0; letter-spacing: -0.03em; }
h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; }
.kicker { color: var(--blue); font-weight: 800; margin: 0; }
.muted { color: #5b6b80; }
.small { font-size: 13px; line-height: 1.6; }
.err { background: #fff1f2; color: #9f1239; border-radius: 10px; padding: 8px 10px; margin: 0; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
input, textarea, select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; width: 100%; }
textarea { min-height: 80px; }
.btn { background: var(--blue); color: #fff; border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.wa { background: #1a7f37; }
.ghost { background: #fff; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; font-weight: 600; }
header { display: flex; gap: 10px; align-items: center; padding: 10px 16px; background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
header .logo { color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; }
header .ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.grow { flex: 1; }
.pill { background: rgba(37,211,102,.16); color: #b9f5cf; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.pill.link { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.shell { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 60px); }
nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #fff; border-right: 1px solid var(--line); }
nav button { text-align: left; border: 0; background: transparent; border-radius: 10px; min-height: 40px; padding: 0 12px; font-weight: 600; cursor: pointer; }
nav button.on { background: #e8efff; color: var(--blue); }
main { padding: 14px; min-width: 0; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.box + .grid, .box + .box, .grid + .box { margin-top: 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.go { text-align: left; cursor: pointer; }
.warn { background: #fff7ed; border-radius: 12px; padding: 10px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.kpi b { display: block; font-size: 28px; }
.inbox { display: grid; grid-template-columns: 250px 1fr 260px; gap: 12px; min-height: 70vh; }
.col { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: auto; display: flex; flex-direction: column; }
.chat { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px; cursor: pointer; }
.chat.on { background: #e8efff; }
.chat .ch { font-size: 11px; font-weight: 700; color: #1a7f37; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: 1; min-height: 280px; background: #f4f7f2; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.bubble.out { margin-left: auto; background: #d9fdd3; }
.bubble.bot { margin-left: auto; background: #e8efff; }
.bubble small { display: block; color: #5b6b80; font-size: 11px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.composer input { flex: 1; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px 0; background: #fff; }
.quick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.side { padding: 14px; display: grid; gap: 8px; align-content: start; }
.board { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; }
.lane { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; min-height: 260px; }
.lane.over { outline: 2px dashed var(--blue); }
.lane header { all: unset; display: flex; justify-content: space-between; font-weight: 800; }
.deal { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 8px 0; cursor: grab; }
.deal .move { display: flex; gap: 4px; margin-top: 6px; }
.deal .move button { border: 1px solid var(--line); background: #fff; border-radius: 8px; min-height: 28px; padding: 0 8px; cursor: pointer; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 160px; }
.row > button { flex: 0 0 auto; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; background: #e8efff; color: var(--blue); }
.tag.plan { background: #fff1e6; color: #9a3412; }
.toast { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 4; }
  nav button { white-space: nowrap; }
  .inbox { grid-template-columns: 1fr; }
  .inbox .col:first-child { max-height: 240px; }
  .board { grid-template-columns: 1fr; }
  header { position: static; }
}
