:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #edf3ed;
  background: #101713;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #101713;
  --panel: #171f1a;
  --panel-raised: #1d2721;
  --panel-hover: #242f28;
  --line: #2a362e;
  --muted: #99a79d;
  --text: #edf3ed;
  --green: #b4ed74;
  --green-ink: #162010;
  --red: #ff8279;
  --gold: #f3c875;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 15% -20%, #213329 0, transparent 43%), var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.shell { width: min(1560px, 100% - 56px); margin: 0 auto; padding: 0 0 44px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #29352d; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: var(--green); color: var(--green-ink); font: 800 13px Inter, system-ui, sans-serif; letter-spacing: -1px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 13px Inter, system-ui, sans-serif; letter-spacing: .01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.user-name { color: #c9d3ca; font-size: 13px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 38px 0 27px; }
.eyebrow { margin: 0 0 9px; color: #93b77e; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Inter, system-ui, sans-serif; letter-spacing: -.045em; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 3.3vw, 35px); line-height: 1.12; }
.intro-copy { margin: 0; color: var(--muted); font-size: 14px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--green); color: var(--green-ink); }
.button-primary:hover { background: #c4f391; }
.button-primary span { font-size: 19px; line-height: 0; }
.button-quiet { border-color: var(--line); background: #171f1a; color: #d5ddd6; }
.button-quiet:hover { background: var(--panel-hover); }
.button-danger { border-color: #603a38; background: #2d1e1e; color: #ff9a91; }
.button-danger:hover { background: #3b2423; }
.toolbar { min-height: 58px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 9px 11px; border: 1px solid #29352d; border-radius: 12px; background: #151c18cc; }
.search { height: 36px; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 170px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; color: #819086; }
.search:focus-within { border-color: #455b49; background: #101713; }
.search span { font-size: 22px; transform: rotate(-20deg); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.filter { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border-left: 1px solid #29352d; color: var(--muted); font-size: 11px; }
.filter select { max-width: 125px; border: 0; outline: 0; background: transparent; color: #e1e8e1; font-size: 11px; font-weight: 600; }
.filter option, .field option { background: #1b241e; }
.card-count { padding: 0 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); align-items: start; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.column { min-width: 220px; padding: 10px; border: 1px solid #253129; border-radius: 12px; background: #141b17b8; transition: border-color .15s, background .15s; }
.column.drag-over { border-color: #94c466; background: #1a251a; }
.column-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; margin-bottom: 7px; padding: 0 3px 8px; border-bottom: 1px solid #28342b; }
.column-title { display: flex; align-items: center; gap: 8px; font: 700 12px Inter, system-ui, sans-serif; }
.column-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #9aa79b); box-shadow: 0 0 11px color-mix(in srgb, var(--dot) 45%, transparent); }
.column-count { min-width: 23px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: #222c25; color: #aeb9af; font-size: 10px; font-weight: 700; }
.column-list { min-height: 88px; display: flex; flex-direction: column; gap: 8px; }
.empty-column { display: grid; place-items: center; min-height: 72px; border: 1px dashed #2c3a30; border-radius: 9px; color: #758378; font-size: 11px; }
.task-card { position: relative; padding: 12px 11px 10px; border: 1px solid #2b382f; border-radius: 10px; background: #1b241e; cursor: grab; box-shadow: 0 3px 9px #050a071a; transition: border-color .15s, background .15s, transform .15s; }
.task-card:hover { border-color: #526553; background: #202b23; transform: translateY(-1px); }
.task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: .42; }
.task-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.task-top { display: flex; justify-content: space-between; align-items: center; gap: 7px; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; color: #bdcbbf; font-size: 10px; font-weight: 600; }
.tag-mark { width: 6px; height: 6px; border-radius: 2px; background: #91b1a0; }
.tag-bug .tag-mark { background: #ff8279; }
.tag-melhoria .tag-mark { background: #9edb86; }
.tag-interface .tag-mark { background: #91b9ff; }
.priority { display: inline-flex; align-items: center; gap: 4px; color: #b8c1b9; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.priority::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.priority-alta { color: #ff978d; }
.priority-media { color: #f2ca78; }
.priority-baixa { color: #91bf9e; }
.task-title { margin: 0 0 6px; color: #edf3ed; font: 700 12px/1.42 Inter, system-ui, sans-serif; overflow-wrap: anywhere; }
.task-description { display: -webkit-box; margin: 0 0 10px; color: #a3afa5; font-size: 11px; line-height: 1.5; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
.task-page { display: flex; align-items: center; gap: 5px; color: #98a59a; font-size: 10px; }
.task-page svg { width: 12px; height: 12px; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 11px; padding-top: 8px; border-top: 1px solid #2a342d; color: #839086; font-size: 9px; }
.assignee { max-width: 125px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c7d2c9; }
.notice { position: fixed; left: 50%; bottom: 22px; z-index: 10; margin: 0; padding: 9px 14px; border: 1px solid #435847; border-radius: 9px; background: #202c23; color: #dce8dd; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.notice.show { opacity: 1; transform: translate(-50%, 0); }
.dialog { width: min(600px, calc(100vw - 28px)); max-width: 600px; max-height: min(92vh, 820px); padding: 0; overflow: auto; border: 1px solid #3a4a3d; border-radius: 16px; background: #171f1a; color: var(--text); box-shadow: 0 24px 90px #0009; }
.dialog::backdrop { background: #050906c9; backdrop-filter: blur(5px); }
.dialog form { padding: 23px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 19px; }
.dialog-head h2 { margin: 0; font-size: 22px; }
.icon-button { width: 34px; height: 34px; border: 1px solid #344338; border-radius: 9px; background: #1d2720; color: #bec9bf; font-size: 22px; cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.field > span { color: #cbd5cc; font-size: 11px; font-weight: 600; }
.field small { color: #849187; font-size: 10px; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid #354238; border-radius: 8px; outline: none; background: #111814; color: #edf3ed; font-size: 12px; }
.field textarea { min-height: 95px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #94c466; box-shadow: 0 0 0 2px #94c46625; }
.field input::placeholder, .field textarea::placeholder { color: #68756b; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 13px; }
.field-wide { grid-column: 1 / -1; }
.dialog-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 15px; border-top: 1px solid #2b382e; }
.action-spacer { flex: 1; }
.hidden { display: none !important; }

@media (max-width: 1250px) { .board { grid-template-columns: repeat(5, 245px); } }
@media (max-width: 700px) {
  .shell { width: calc(100% - 28px); }
  .topbar { height: 66px; }
  .intro { align-items: start; flex-direction: column; padding: 28px 0 19px; }
  .intro .button { align-self: stretch; }
  .toolbar { flex-wrap: wrap; gap: 5px; padding: 8px; }
  .search { flex-basis: 100%; }
  .filter { flex: 1; justify-content: space-between; border-left: 0; padding: 0 7px; }
  .filter select { max-width: 115px; }
  .card-count { margin-left: auto; }
  .board { grid-template-columns: repeat(5, minmax(245px, 1fr)); margin-right: -14px; padding-right: 14px; }
  .dialog form { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .dialog-actions { flex-wrap: wrap; }
  .action-spacer { display: none; }
  #delete-card { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
