:root {
  color-scheme: dark;
  --bg: #0d0f14;
  --panel: #161a22;
  --panel-2: #1d2330;
  --line: #2a3140;
  --text: #eef2f7;
  --muted: #98a2b3;
  --accent: #5eead4;
  --danger: #f87171;
  --iboga: #22c55e;
  --olympus: #d4af37;
  --plugai: #a855f7;
  --pessoal: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.toolbar,
.modal-head,
.actions,
.task-meta,
.task-footer {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
}

.toolbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tabs,
.filters,
.grid-2 {
  display: grid;
  gap: 10px;
}

.tabs {
  grid-template-columns: repeat(3, minmax(92px, 1fr));
}

.filters {
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10141b;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  min-height: 42px;
  color: var(--text);
  background: var(--panel-2);
  font-weight: 800;
}

.primary {
  background: var(--accent);
  color: #071111;
}

.secondary {
  background: var(--panel-2);
}

.danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.tab.active {
  background: var(--text);
  color: #0d0f14;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.task {
  min-height: 190px;
  display: grid;
  gap: 14px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.task h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.task-meta,
.task-footer {
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  color: #081016;
}

.badge.IbogaLiv {
  background: var(--iboga);
}

.badge.Olympus {
  background: var(--olympus);
}

.badge.PlugAI {
  background: var(--plugai);
  color: #fff;
}

.badge.Pessoal {
  background: var(--pessoal);
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.elapsed {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.task select {
  flex: 1;
  min-width: 150px;
}

.empty {
  grid-column: 1 / -1;
  padding: 34px 0;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

dialog {
  width: min(640px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.modal-head {
  justify-content: space-between;
  gap: 12px;
}

.icon {
  width: 42px;
  padding: 0;
  font-size: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.muted {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

#historyList {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.actions {
  justify-content: flex-end;
  gap: 10px;
}

.actions .danger {
  margin-right: auto;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filters,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .board {
    grid-template-columns: 1fr;
  }
}
