:root {
  --navy: #071a46;
  --navy-2: #102754;
  --red: #ed1c2b;
  --red-dark: #cc1522;
  --bg: #f3f5f8;
  --card: #fff;
  --text: #0b1220;
  --muted: #667085;
  --border: #dce1e8;
  --green: #159947;
  --amber: #d99300;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
}
body.auth-pending > :not(.topbar):not(script) {
  visibility: hidden;
}
* {
  box-sizing: border-box;
}
html {
  font-family: Barlow, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  transition: 0.18s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 64px;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1440px;
  height: 100%;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.brand b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--red);
  font-size: 17px;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand strong {
  font-size: 15px;
}
.brand small {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #aeb9d0;
  font-weight: 700;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 100%;
}
.topbar nav a {
  padding: 10px 11px;
  border-radius: 6px;
  color: #d6dced;
  font-size: 14px;
  white-space: nowrap;
}
.topbar nav a:hover,
.topbar nav a.active {
  background: var(--red);
  color: #fff;
}
.topbar nav a.active[href="/trade-ai"] {
  background: transparent;
}
.topbar nav i {
  margin-right: 7px;
}
.topbar nav .trade-ai-mascot-icon {
  width: 35px;
  height: 35px;
  margin-right: 7px;
  object-fit: contain;
  vertical-align: middle;
}
.profile {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--navy-2);
  padding: 7px 8px;
  border-radius: 8px;
  min-width: 185px;
}
.profile > span:not(.avatar) {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.2;
}
.profile strong {
  font-size: 12px;
}
.profile small {
  font-size: 11px;
  color: #bdc7db;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #263d6d;
  font-size: 11px;
  font-weight: 800;
}
.logout,
.menu-toggle {
  border: 0;
  background: transparent;
  color: #cbd3e4;
  cursor: pointer;
  padding: 7px;
}
.menu-toggle {
  display: none;
  font-size: 19px;
}
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}
.title-band {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.title-band h1 {
  font-size: 24px;
  margin: 0 0 4px;
}
.title-band p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.app-main {
  padding-top: 22px;
  padding-bottom: 40px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 9px 13px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.button.navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.button.danger {
  color: var(--red);
  border-color: #f3bdc2;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #4e596b;
  text-transform: uppercase;
}
.control {
  width: 100%;
  height: 41px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 11px;
  background: #fff;
  color: var(--text);
  outline: none;
}
.control:focus {
  border-color: #8091b5;
  box-shadow: 0 0 0 3px #10275412;
}
textarea.control {
  height: auto;
  min-height: 96px;
  padding: 10px;
  resize: vertical;
}
.empty-state,
.loading {
  text-align: center;
  padding: 38px 20px;
  color: var(--muted);
}
.status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.status.concluida {
  background: #e8f7ed;
  color: #147d39;
}
.status.em_andamento {
  background: #fff5d9;
  color: #9a6900;
}
.status.cancelada {
  background: #fdebed;
  color: #c31e2d;
}
.status.agendada,
.status.pendente {
  background: #eaf0fb;
  color: var(--navy);
}
@media (max-width: 1380px) {
  .topbar nav a {
    font-size: 0;
    padding: 11px;
  }
  .topbar nav i {
    font-size: 15px;
    margin: 0;
  }
  .topbar nav .trade-ai-mascot-icon {
    width: 35px;
    height: 35px;
    margin: 0;
  }
  .profile {
    min-width: 155px;
  }
}
@media (max-width: 720px) {
  .topbar-inner {
    padding: 0 14px;
    gap: 12px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .topbar nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: auto;
    padding: 10px;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
  }
  .topbar nav.open {
    display: flex;
  }
  .topbar nav a {
    font-size: 14px;
  }
  .topbar nav i {
    margin-right: 8px;
  }
  .topbar nav .trade-ai-mascot-icon {
    margin-right: 8px;
  }
  .profile {
    margin-left: 0;
    min-width: auto;
    background: transparent;
    padding: 0;
  }
  .profile > span:not(.avatar) {
    display: none;
  }
  .container {
    width: min(100% - 24px, 1200px);
  }
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.avatar, .person {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar img, .person img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
