@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700;800&display=swap");
:root { color: #020617; background: #f8fafc; font-family: Figtree, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.panel { width: min(420px, 100%); background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 22px; display: grid; gap: 10px; }
h1 { margin: 0; letter-spacing: -0.04em; }
.kicker { color: #0891b2; font-weight: 800; margin: 0; }
.muted { color: #64748b; }
label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
input, textarea, select { min-height: 44px; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; background: #fff; }
textarea { min-height: 80px; }
.btn { background: #06b6d4; color: #042f2e; border: 0; border-radius: 10px; min-height: 44px; font-weight: 800; cursor: pointer; }
.ghost { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; min-height: 40px; cursor: pointer; }
header { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; }
.pill { background: #ecfeff; color: #0e7490; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
#out { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.shell { display: grid; grid-template-columns: 210px 1fr; min-height: calc(100vh - 57px); }
.go { text-align: left; cursor: pointer; }
.go h3 { margin: 0 0 6px; }
nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: #fff; border-right: 1px solid #e2e8f0; }
nav button { text-align: left; border: 0; background: transparent; border-radius: 10px; min-height: 40px; padding: 0 10px; font-weight: 700; cursor: pointer; }
nav button.on { background: #ecfeff; color: #0e7490; }
main { padding: 12px; }
.inbox { display: grid; grid-template-columns: 240px 1fr 240px; gap: 10px; min-height: 70vh; }
.col { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: auto; }
.chat, .card { width: 100%; text-align: left; border: 0; border-bottom: 1px solid #e2e8f0; background: #fff; padding: 12px; cursor: pointer; }
.chat.on { background: #ecfeff; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 280px; }
.bubble { max-width: 80%; padding: 8px 10px; border-radius: 12px; background: #f1f5f9; }
.bubble.out { margin-left: auto; background: #cffafe; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e2e8f0; }
.composer input { flex: 1; }
.board { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 10px; }
.lane { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 8px; min-height: 240px; }
.deal { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; margin: 8px 0; cursor: grab; }
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.box { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px; }
.warn { background: #fff7ed; border-radius: 12px; padding: 10px; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  nav { flex-direction: row; overflow: auto; border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .inbox, .board { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  header { flex-wrap: wrap; }
  #out { margin-left: 0; }
}
@media (min-width: 900px) {
  .inbox { grid-template-columns: 240px 1fr 240px; }
}
