@import url("../vendor/fonts/fonts.css");

/* Tokens únicos para manter a direção azul coerente em todas as telas. */
:root {
  color-scheme: light;
  --ink: #152c49;
  --muted: #586e85;
  --blue: #1769c7;
  --blue-dark: #104e97;
  --blue-light: #eaf3ff;
  --paper: #f6f9fd;
  --surface: #ffffff;
  --line: #e0e9f3;
  --radius: 10px;
  --content-width: 1180px;
  --font-heading: "Manrope Variable", system-ui, sans-serif;
  --font-body: "DM Sans Variable", system-ui, sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: inherit;
}
svg {
  display: block;
  flex: none;
}
button svg {
  pointer-events: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}
h1 {
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: -1.4px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 14px;
  line-height: 1.5;
}
p {
  line-height: 1.8;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #3b84d6;
  outline-offset: 4px;
}
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 6px;
  background: white;
}
.skip:focus {
  top: 12px;
}
.shell,
.main {
  min-width: 0;
}

/* Navegação horizontal substitui inteiramente a antiga barra lateral. */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  max-width: 1360px;
  margin: auto;
  padding: 0 42px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  text-decoration: none;
  color: #122d50;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}
/* Recorte de apresentação da imagem original, sem modificar seus pixels. */
.logo-ref {
  position: relative;
  display: block;
  overflow: hidden;
  width: 60px;
  height: 41px;
  flex: none;
}
.logo-ref img {
  position: absolute;
  width: 242px;
  height: auto;
  max-width: none;
  left: -91px;
  top: -35px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 9px;
  min-height: 42px;
  background: transparent;
  border-radius: 6px;
  color: #546a80;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.nav button svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
}
.nav button:hover {
  background: #f0f6fc;
  color: var(--blue-dark);
}
.nav button.active {
  color: var(--blue);
  font-weight: 800;
  background: #edf5fd;
}
.count {
  padding: 1px 5px;
  min-width: 18px;
  border-radius: 4px;
  background: #dcecff;
  color: #205a9a;
  font-size: 10px;
  text-align: center;
}
.header-actions,
.topright {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eaf2fb;
  color: #2569b6;
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: var(--content-width);
  margin: auto;
  padding: 20px 0 0;
}
.crumb {
  font-size: 11px;
  color: var(--muted);
}
.preview-badge {
  border: 1px solid #d1e1f1;
  border-radius: 4px;
  padding: 5px 8px;
  color: #4f7598;
  font-size: 9px;
  white-space: nowrap;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
  border-radius: 6px;
  color: var(--blue-dark);
  background: transparent;
}
.icon-button:hover {
  background: var(--blue-light);
}
.content {
  max-width: var(--content-width);
  margin: auto;
  padding: 37px 0 42px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading > div {
  min-width: 0;
}
.eyebrow,
.overline {
  margin-bottom: 11px;
  color: #4d7398;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Controles compactos: cor, texto e ícone, nunca apenas cor. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.btn:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 12px #1769c71a;
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: white;
  border-color: #ceddeb;
  color: #285d96;
}
.btn.secondary:hover {
  background: #f0f6fd;
}
.btn.quiet {
  background: none;
  color: #286bb0;
  border-color: transparent;
  box-shadow: none;
}
.btn.quiet:hover {
  background: #edf4fc;
}
.btn.gold {
  background: #e6f1ff;
  border-color: #c8def8;
  color: #27598e;
}
.btn.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  padding: 5px 0;
  color: #2468ac;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A narrativa do material que se abre é decorativa e permanece secundária. */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 26px;
  min-height: 275px;
  margin: 0 0 35px;
}
.hero-copy h1 {
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -1.8px;
  margin: 13px 0 17px;
}
.hero-copy h1 span,
.hero-copy h2 span {
  color: #1a6bc7;
}
.hero-copy h2 {
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: -1.3px;
  margin: 13px 0 17px;
}
.hero-copy p {
  max-width: 440px;
  color: var(--muted);
  font-size: 13px;
}
.hero-copy .btn {
  margin-top: 23px;
  box-shadow: 0 5px 13px #1467c320;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 267px;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 25px 15px;
  background: radial-gradient(ellipse, #d5ebff 0, transparent 65%);
}
.paper {
  position: absolute;
  width: 190px;
  height: 218px;
  padding: 25px;
  border: 1px solid white;
  border-radius: 8px;
  background: linear-gradient(130deg, #fff, #f2f8ff);
  box-shadow: 0 17px 33px #3976bd15;
}
.paper.back {
  transform: rotate(13deg) translate(24px, -4px);
  background: #cce4fb;
  border-color: #d9eeff;
}
.paper.front {
  transform: rotate(-6deg) translate(-10px, 5px);
}
.paper .line {
  height: 6px;
  margin: 12px 0;
  border-radius: 2px;
  background: #e6edf6;
}
.paper .line.blue {
  width: 65%;
  background: #b3d5f7;
}
.paper .line.short {
  width: 70%;
}
.paper .mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 22px;
  border-radius: 9px;
  color: white;
  background: linear-gradient(140deg, #66bcff, #1263c3);
  box-shadow: inset 0 1px 2px #ffffffa0;
}
.floating {
  position: absolute;
  bottom: 21px;
  right: 12px;
  padding: 14px 18px;
  border: 1px solid #e3edf8;
  border-radius: 9px;
  background: white;
  box-shadow: 0 8px 25px #3b79be12;
  color: #255f99;
  font-size: 11px;
}
.floating strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 22px 0;
  margin-bottom: 35px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}
.stat span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 31px;
  min-width: 31px;
  height: 35px;
  color: #347cc0;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 23px;
  background: white;
}
.panel > p:only-child {
  padding: 22px 0;
}
.material-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px solid #edf2f7;
}
.material-row:last-child {
  border-bottom: 0;
}
.material-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 41px;
  flex: none;
  border: 1px solid #c9e0f5;
  border-radius: 5px;
  color: #357abb;
  background: #f4f9ff;
}
.row-grow {
  min-width: 0;
  flex: 1;
}
.row-grow h3 {
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.row-grow p {
  margin-top: 5px;
  font-size: 10px;
  color: var(--muted);
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border-radius: 4px;
  background: #edf5fd;
  color: #2e6497;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.tag.gold {
  background: #eef3fa;
  color: #4d6687;
}
.tag.blue {
  background: #e3efff;
  color: #285d9d;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 18px 0;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
}
.task-row:last-child {
  border: 0;
}
.task-row input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 3px 0 0;
  accent-color: var(--blue);
}
.task-row strong {
  font-size: 12px;
  font-weight: 600;
}
.task-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.mini-progress {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 2px 0 20px;
  color: var(--muted);
  font-size: 10px;
}
.progress-track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: #e6eff9;
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: #3d88d9;
  transition: width 0.25s ease;
}
.footer-note,
.page-footer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 18px;
  margin-top: 27px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.page-footer {
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-note svg {
  margin-top: 2px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 400px;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid #d2dfed;
  border-radius: 7px;
  color: #5980a8;
  background: white;
}
.search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
}
.search:focus-within {
  outline: 3px solid #8cb8e7;
  outline-offset: 2px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.material-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.material-card h3 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.material-card p {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.card-top,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.callout {
  margin-bottom: 23px;
  padding: 13px 17px;
  border-left: 3px solid #5e9ede;
  border-radius: 0 6px 6px 0;
  background: #eaf3ff;
  color: #355c85;
  font-size: 12px;
  line-height: 1.8;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 25px;
}
.review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  color: #375e87;
  font-size: 12px;
  font-weight: 700;
}
.review-body {
  padding: 25px;
}
.review-body h2 {
  margin: 13px 0 25px;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -0.5px;
}
.label {
  display: block;
  margin-bottom: 10px;
  color: #517294;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.answer {
  color: #526a83;
  font-size: 14px;
  line-height: 1.9;
}
.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  margin: 24px 0 4px;
  border-radius: 4px;
  background: #edf5fd;
  color: #2c649c;
  font-size: 11px;
}
.review-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 19px 24px;
  border-top: 1px solid var(--line);
}
.source-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}
.source-quote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 2px solid #a9c9ea;
  color: #526a83;
  font-size: 15px;
  line-height: 2;
}
.source-quote mark {
  background: #e4f0ff;
  color: #23558b;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan-column > h3 {
  margin-bottom: 15px;
  color: #557594;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.plan-task {
  padding: 22px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.plan-task h3 {
  margin: 14px 0 9px;
  font-size: 14px;
}
.plan-task p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.empty {
  padding: 42px 24px;
  border: 1px dashed #c6d9ed;
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  text-align: center;
}
.balance-card {
  max-width: 830px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
.balance-card > p {
  margin: 13px 0;
  color: var(--muted);
  font-size: 14px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child {
  border: 0;
}
.settings-row h3 {
  font-size: 14px;
}
.settings-row p {
  max-width: 540px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4389cc;
}

.form-grid {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c6d8ea;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
.field textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.6;
}
.field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
}
dialog {
  width: min(560px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: 0 22px 80px #183e6028;
}
dialog::backdrop {
  background: #17365260;
  backdrop-filter: blur(4px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.modal-heading h2 {
  font-size: 21px;
}
#toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 24px;
  max-width: min(90%, 640px);
  padding: 13px 20px;
  transform: translateX(-50%);
  border-radius: 8px;
  box-shadow: 0 8px 25px #173b5a25;
  background: #174e85;
  color: white;
  font-size: 12px;
  line-height: 1.7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#toast.show {
  opacity: 1;
}
.fade-in {
  animation: appear 0.22s ease;
}
@keyframes appear {
  from {
    opacity: 0.5;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1280px) {
  .content,
  .topbar {
    margin-right: 6%;
    margin-left: 6%;
  }
  .header-inner {
    padding-right: 4%;
    padding-left: 4%;
    gap: 18px;
  }
  .nav {
    gap: 3px;
  }
  .nav button {
    font-size: 11px;
    padding-right: 7px;
    padding-left: 7px;
  }
}
@media (max-width: 1020px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 10px;
    gap: 8px 18px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .nav button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .stat {
    padding: 0 17px;
    gap: 8px;
  }
  .stat-icon {
    display: none;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .hero-art {
    transform: scale(0.9);
  }
  .row-meta .tag {
    display: none;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .content {
    margin: 0;
    padding: 29px 22px 35px;
  }
  .topbar {
    margin: 0;
    padding: 17px 22px 0;
  }
  .header-inner {
    padding: 14px 20px 10px;
  }
  .brand {
    font-size: 21px;
  }
  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #d3e3f4 transparent;
  }
  .nav button {
    flex: none;
    min-height: 42px;
    font-size: 11px;
    padding: 10px 11px;
  }
  .nav button svg {
    width: 16px;
    height: 16px;
  }
  .header-actions .preview-badge {
    display: none;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -1.1px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 26px;
  }
  .hero-copy h1 {
    font-size: 35px;
  }
  .hero-copy h2 {
    font-size: 30px;
  }
  .hero-art {
    height: 250px;
    max-width: 400px;
    width: 100%;
    justify-self: center;
    transform: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 0;
    padding: 22px 0;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat-icon {
    display: grid;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 10px;
  }
  .two-col,
  .review-layout {
    grid-template-columns: 1fr;
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-column:last-child {
    grid-column: 1 / -1;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 17px;
  }
  .review-body h2 {
    font-size: 21px;
  }
  .settings-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .content {
    padding-right: 19px;
    padding-left: 19px;
  }
  .topbar {
    padding-right: 19px;
    padding-left: 19px;
  }
  .hero-copy h1 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 12px;
  }
  .hero-art {
    height: 235px;
  }
  .floating {
    right: 0;
    bottom: 6px;
    padding: 12px 14px;
    font-size: 10px;
  }
  .paper {
    width: 172px;
    height: 202px;
    padding: 22px;
  }
  .stat {
    padding: 0 15px;
  }
  .stat-icon {
    display: none;
  }
  .card-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-column:last-child {
    grid-column: auto;
  }
  .panel {
    padding-right: 17px;
    padding-left: 17px;
  }
  .review-header,
  .review-actions,
  .review-body {
    padding-right: 20px;
    padding-left: 20px;
  }
  .review-header {
    flex-wrap: wrap;
  }
  .toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar > .tag {
    align-self: flex-start;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .section-title .text-link {
    font-size: 10px;
  }
  .balance-card {
    padding: 21px;
  }
  .source-pill {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Movimento com intenção: responde ao foco e ao ponteiro sem depender de hover. */
.btn,
.icon-button,
.nav button,
.material-card,
.text-link {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}
.btn:focus-visible,
.icon-button:focus-visible {
  box-shadow: 0 0 0 4px #1769bd26;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover,
  .icon-button:hover {
    transform: translateY(-2px);
  }
  .material-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px #163d6512;
  }
  .text-link:hover svg {
    transform: translateX(3px);
  }
  .text-link svg {
    transition: transform 160ms ease;
  }
  .nav button:hover {
    background-color: #eaf3fb;
  }
}
.btn:active,
.icon-button:active {
  transform: translateY(0) scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .icon-button,
  .nav button,
  .material-card,
  .text-link,
  .text-link svg {
    transition: none;
    transform: none !important;
  }
}
