/* #ARB #Tecnologia #UX */
:root {
  --primary: #244b39;
  --deep: #163628;
  --paper: #f5f1e8;
  --surface: #fffdf8;
  --ink: #20382b;
  --muted: #5d665f;
  --line: #d7cebd;
  --gold: #927747;
  --soft: #eee8dc;
  --danger: #7c2729;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #426b50;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.hidden {
  display: none !important;
}
.primary,
.secondary,
.chip,
.nav-button {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
}
.primary {
  background: var(--primary);
  color: var(--surface);
}
.primary:hover {
  background: var(--deep);
}
.secondary {
  border-color: var(--line);
  background: var(--surface);
}
.secondary:hover {
  background: #edf1e8;
  border-color: #426b50;
}
.compact {
  padding: 9px 12px;
}
.text-link {
  color: var(--primary);
  text-decoration: underline;
  font-size: 14px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.5px;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3px;
  margin-top: 3px;
}
.brand-mark {
  width: 43px;
  height: 47px;
  background: var(--primary);
  border-bottom: 4px solid var(--gold);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--surface);
  font:
    italic 36px Georgia,
    serif;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--deep);
  color: var(--surface);
  padding: clamp(32px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.auth-story .eyebrow {
  color: #ccb582;
  margin-bottom: 0;
}
.auth-story .brand-mark {
  background: #305b43;
}
.auth-story h1 {
  font:
    48px/1.15 Georgia,
    serif;
  letter-spacing: -1.3px;
}
.auth-story p {
  max-width: 430px;
  color: #d4dfd3;
}
.auth-story small {
  color: #d4dfd3;
}
.story-points {
  display: grid;
  gap: 15px;
  margin: 10px 0 26px;
}
.auth-panel {
  padding: 48px;
  max-width: 520px;
  margin: auto;
  width: 100%;
}
.auth-panel > p {
  margin: 14px 0 28px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 11px 12px;
  color: var(--ink);
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.check {
  display: flex;
  align-items: center;
  font-weight: 500;
}
.check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}
.auth-panel .text-link {
  display: inline-block;
  margin-top: 25px;
}
.error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
}
.error:not(:empty) {
  padding: 12px 14px;
  background: #fbece8;
  border: 1px solid #dfbeba;
  border-radius: 9px;
}
.mobile-brand {
  display: none;
}
.loading {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.workspace {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--deep);
  color: var(--surface);
  padding: 28px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sidebar .brand {
  padding: 0 5px;
}
.sidebar .brand-mark {
  background: #305b43;
}
.sidebar .brand small {
  color: #d4dfd3;
}
nav {
  display: grid;
  gap: 7px;
}
.nav-button {
  background: transparent;
  color: #e0e9df;
  justify-content: flex-start;
  width: 100%;
  padding: 13px 15px;
}
.nav-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.nav-button[aria-current="page"] {
  background: #e7eddf;
  color: var(--deep);
  border-color: #c4d2bb;
}
.nav-button:hover {
  background: #305b43;
  color: white;
}
.nav-button[aria-current="page"]:hover {
  background: #e7eddf;
  color: var(--deep);
}
.sidebar-account {
  margin-top: auto;
  padding: 17px 8px 0;
  border-top: 1px solid #426b50;
  display: grid;
  gap: 6px;
}
.sidebar-account small {
  color: #d4dfd3;
  overflow-wrap: anywhere;
}
.sidebar-logout {
  margin-top: 8px;
  text-align: left;
  color: #e0e9df;
  min-height: 44px;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
}
main {
  grid-column: 2;
  padding: 0 36px;
  min-width: 0;
}
.topbar {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.demo {
  padding: 12px 0;
  font-size: 12px;
  color: #695321;
  border-bottom: 1px solid var(--line);
}
#view {
  max-width: 1480px;
  margin: auto;
  padding: 34px 0 40px;
  min-height: 70vh;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  display: grid;
  gap: 9px;
  min-width: 0;
}
.stat small {
  font-size: 13px;
}
.stat strong {
  font:
    30px/1.1 Georgia,
    serif;
  overflow-wrap: anywhere;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.stat:first-child {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}
.stat:first-child small,
.stat:first-child span {
  color: #d4dfd3;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.section-title h2 {
  font-size: 19px;
}
.list {
  display: grid;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.row:last-child {
  border-bottom: 0;
}
.row-content {
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  flex: 1;
  cursor: pointer;
  min-height: 44px;
}
.row-content strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.row-content small {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  background: #edf1e8;
  color: var(--primary);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}
.badge.overdue {
  color: var(--danger);
  background: #fbece8;
}
.badge.today {
  background: #efe5cf;
  color: #695321;
}
.badge.won {
  background: #e0eee2;
  color: #245a32;
}
.badge.lost {
  background: #fbece8;
  color: var(--danger);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search {
  max-width: 390px;
  flex: 1;
  min-width: 180px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  background: transparent;
  border-color: var(--line);
  font-size: 12px;
  padding: 9px 12px;
}
.chip[aria-pressed="true"] {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.column {
  background: #eee8dc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}
.column-heading {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: start;
}
.column-heading h2 {
  font-size: 14px;
  margin-bottom: 7px;
}
.column-heading small {
  font-size: 11px;
}
.count {
  width: 25px;
  height: 25px;
  background: var(--surface);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.deal-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  transition: border-color 0.15s;
  min-width: 0;
}
.deal-card:hover {
  border-color: var(--primary);
}
.deal-card h3 {
  line-height: 1.45;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.deal-card .organization {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 16px;
}
.deal-card .amount {
  font-size: 15px;
  font-weight: 750;
  display: block;
  margin-bottom: 16px;
}
.deal-card .next {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  line-height: 1.5;
}
.deal-card .badge {
  margin-top: 10px;
}
.owner {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: left;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.contact-card h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.contact-card p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.contact-card .initials {
  height: 39px;
  width: 39px;
  display: grid;
  place-items: center;
  background: #e7eddf;
  color: var(--primary);
  border-radius: 12px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
}
.empty {
  padding: 32px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.empty h3 {
  color: var(--ink);
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  width: min(620px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 25px;
  background: var(--surface);
  color: var(--ink);
}
dialog::backdrop {
  background: #16362899;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 15px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 22px;
  overflow-wrap: anywhere;
}
.dialog-heading small {
  display: block;
  margin-top: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.detail-summary {
  background: #edf1e8;
  padding: 18px;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.detail-summary h3 {
  font-size: 25px;
  font-family: Georgia, serif;
}
.detail-summary p {
  font-size: 14px;
}
.detail-line {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.detail-line strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.history {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.history h3 {
  margin-bottom: 14px;
}
.note {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.note p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note small {
  display: block;
  margin-top: 7px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: var(--surface);
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 20;
  max-width: 90%;
  box-shadow: 0 10px 30px #16362833;
  font-size: 14px;
}
.board-mobile-hint {
  display: none;
}
.done .row-content strong {
  text-decoration: line-through;
}
.task-complete {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  background: var(--surface);
  color: var(--primary);
  flex-shrink: 0;
}
.task-complete[aria-pressed="true"] {
  background: var(--primary);
  color: var(--surface);
}
.help {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.account-links {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.board.closed-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1600px) {
  main {
    padding: 0 60px;
  }
  .board {
    gap: 20px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    width: 200px;
    padding: 25px 14px;
  }
  .brand {
    font-size: 20px;
  }
  main {
    padding: 0 24px;
  }
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .workspace {
    display: block;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    z-index: 10;
    border-top: 1px solid #426b50;
  }
  .sidebar > .brand,
  .sidebar-account {
    display: none;
  }
  nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .nav-button {
    flex-direction: column;
    padding: 7px 2px;
    gap: 5px;
    font-size: 11px;
    border-radius: 9px;
    min-height: 55px;
  }
  .nav-button svg {
    width: 21px;
    height: 21px;
  }
  main {
    padding: 0 18px 86px;
  }
  .topbar {
    min-height: 65px;
  }
  #view {
    padding-top: 24px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading .primary {
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 12px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 15px 11px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat small,
  .stat span {
    font-size: 11px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .panel {
    padding: 17px;
  }
  .board,
  .board.closed-board,
  .cards {
    grid-template-columns: 1fr;
  }
  .column {
    padding: 14px;
  }
  .column-heading h2 {
    font-size: 16px;
  }
  .board-mobile-hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
  }
  .toolbar {
    align-items: stretch;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .chips {
    gap: 6px;
  }
  .chip {
    font-size: 11px;
    padding: 9px 11px;
  }
  .auth {
    display: block;
    min-height: 100dvh;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    padding: 38px 24px;
  }
  .mobile-brand {
    display: flex;
    margin-bottom: 45px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  dialog {
    padding: 20px;
    max-height: 92dvh;
  }
  .toast {
    bottom: 95px;
    width: max-content;
    text-align: center;
  }
  .row {
    gap: 8px;
  }
  .detail-line {
    gap: 8px;
  }
  .demo {
    font-size: 11px;
  }
  .section-title .text-link {
    font-size: 12px;
  }
  .account-links .secondary {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Mobile: give the task description room; its date stays directly below. */
@media (max-width: 760px) {
  .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 10px; }
  .row:has(> .task-complete) { grid-template-columns: 44px minmax(0, 1fr); }
  .row > .badge { grid-column: 1 / -1; justify-self: start; }
  .row:has(> .task-complete) > .badge { grid-column: 2; }
}
@media (max-width: 760px) {
  .page-heading { flex-wrap: wrap; }
  .page-heading > div { flex: 1 1 200px; min-width: 0; }
  .page-heading h1 { overflow-wrap: anywhere; }
}
