:root {
  --bg: #09090b;
  --panel: #18181b;
  --panel-2: #1f1f23;
  --border: #27272a;
  --text: #f4f4f5;
  --muted: #71717a;
  --accent: #34d399;
  --accent-dark: #0a0a0a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; text-decoration: none; }

.topbar { position: sticky; top: 0; background: rgba(9,9,11,0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.brand-title { font-size: 14px; font-weight: 600; line-height: 1.2; }
.brand-sub { font-size: 12px; color: var(--muted); line-height: 1.2; }

.client-switch select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 8px 10px; border-radius: 8px; font-size: 13px;
}

.btn { border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-dark); }
.btn-primary:hover { background: #6ee7b7; }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn.full { width: 100%; margin-top: 8px; }

.tabs { display: flex; gap: 4px; }
.tab { padding: 10px 12px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-color: var(--accent); }

.content { padding: 24px 16px 60px; }
.site-line { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.site-line span { color: var(--text); }

h2 { font-size: 18px; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.muted-italic { color: #52525b; font-style: italic; font-size: 13px; }
.muted.small, .small { font-size: 12px; color: var(--muted); margin-top: 2px; }

.panel-narrow { max-width: 420px; }
.panel-box { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 20px; }

.form label, .form-inline label { font-size: 12px; color: #a1a1aa; display: block; margin: 12px 0 4px; }
.form input[type=text], .form textarea,
.form-inline input[type=text], .form-inline textarea,
.form-row input[type=text] {
  width: 100%; background: var(--panel); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.form textarea, .form-inline textarea { resize: vertical; }
.success { background: #052e1c; border: 1px solid #0f5132; color: #6ee7b7; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.error { color: #fda4af; font-size: 12px; margin-top: 6px; }

.radio-row { display: flex; gap: 8px; margin-top: 4px; }
.radio-pill { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted); cursor: pointer; }
.radio-pill input { display: none; }
.radio-pill:has(input:checked) { border-color: var(--accent); color: #6ee7b7; background: rgba(52,211,153,0.08); }

.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.new-task-box { display: none; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.new-task-box.open { display: block; }
.form-inline { display: flex; flex-direction: column; gap: 8px; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.row-2 { display: flex; gap: 8px; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 160px; }

.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.board-col { background: rgba(255,255,255,0.02); border-top: 2px solid; border-radius: 8px; padding: 12px; min-height: 100px; }
.board-col-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.board-col-head .count { color: #52525b; }
.board-col-body { display: flex; flex-direction: column; gap: 8px; }
.empty { font-size: 12px; color: #3f3f46; font-style: italic; text-align: center; padding: 16px 0; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.card-head strong { font-size: 13px; line-height: 1.3; }
.card-desc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.card-meta { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.badge { font-size: 10px; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; }
.badge-baixa { background: #27272a; color: #d4d4d8; }
.badge-media { background: #451a03; color: #fbbf24; }
.badge-alta { background: #4c0519; color: #fda4af; }
.via { font-size: 10px; color: #52525b; }
.move-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.move-btn { font-size: 10px; background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 3px 6px; cursor: pointer; }
.move-btn:hover { color: #6ee7b7; border-color: var(--accent); }
.icon-btn { background: none; border: none; color: #52525b; cursor: pointer; font-size: 13px; }
.icon-btn:hover { color: #fda4af; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: flex; justify-content: space-between; align-items: center; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px; width: 100%; max-width: 300px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head .x { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.modal input[type=password] { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; border-radius: 8px; font-size: 14px; }

@media (max-width: 480px) {
  .board-grid { grid-template-columns: 1fr; }
}
