@import url('/fonts/hanken-grotesk/400.css');
@import url('/fonts/hanken-grotesk/600.css');
@import url('/fonts/space-grotesk/500.css');
@import url('/fonts/jetbrains-mono/400.css');
:root {
  color-scheme: light;
  --ink: #0b0b12;
  --paper: #f5f6f8;
  --surface: #fff;
  --muted: #5a5a6e;
  --line: #dddde5;
  --accent: #6c63ff;
  --deep: #322e8f;
  --tint: #eeedff;
  --bad: #9b2424;
  --good: #246340;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #f5f6f8;
  --paper: #0b0b12;
  --surface: #15151e;
  --muted: #aaaab9;
  --line: #383847;
  --deep: #b8b3ff;
  --tint: #292544;
  --bad: #ffabab;
  --good: #8ed4a8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 'Hanken Grotesk',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}
button:hover,
.button:hover {
  border-color: var(--deep);
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: #0b0b12;
  border-color: var(--accent);
}
.primary:hover {
  background: #8b84ff;
  border-color: #8b84ff;
}
.quiet {
  border-color: transparent;
  background: transparent;
  padding: 8px 12px;
}
.danger {
  color: var(--bad);
  border-color: var(--bad);
}
a {
  color: var(--deep);
}
:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 18px;
}
p {
  margin: 10px 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
[hidden] {
  display: none !important;
}
.muted,
.field-note,
.counter {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--deep);
  margin: 0 0 12px;
}
.shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #0b0b12;
  color: #f5f6f8;
  padding: 38px 22px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  margin: 0 10px 48px;
}
.brand img {
  display: block;
  width: 160px;
  height: auto;
}
.brand > span {
  display: block;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: #aaaab9;
  margin-top: 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #c9c9d5;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 15px;
  border-left: 2px solid transparent;
}
.sidebar nav a span {
  width: 20px;
  font-size: 19px;
  text-align: center;
}
.sidebar nav a:hover {
  background: #20202c;
  color: white;
}
.sidebar nav a[aria-current] {
  background: #292544;
  border-left-color: #a8a2ff;
  color: white;
}
.sidebar nav a:focus-visible {
  outline-color: #a8a2ff;
}
.sidebar-foot {
  margin-top: auto;
  color: #aaaab9;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 20px 10px 0;
}
.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 76px;
  padding: 12px 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account .quiet {
  font-size: 13px;
}
#connection {
  color: var(--muted);
}
.notice {
  display: flex;
  gap: 16px;
  padding: 12px 42px;
  background: var(--tint);
  color: var(--deep);
  font-size: 14px;
}
.notice strong {
  font-weight: 600;
}
main {
  padding: 42px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.page-head p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 17px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  background: var(--paper);
}
td,
th {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
td .quiet {
  min-height: 36px;
  padding: 6px 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  background: var(--paper);
  padding: 4px 9px;
  font-weight: 600;
}
.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: currentColor;
}
.badge.completed {
  color: var(--good);
}
.badge.failed,
.badge.unknown,
.badge.hung_up_early,
.badge.not_answered {
  color: var(--bad);
}
.badge.reading,
.badge.answered,
.badge.calling,
.badge.preparing {
  color: var(--deep);
}
.pagination {
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pagination button {
  font-size: 13px;
}
.empty {
  padding: 48px 24px;
  color: var(--muted);
  text-align: center;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(210px, 1fr);
  gap: 28px;
  align-items: start;
}
.form-panel {
  padding: 30px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 22px 0 8px;
}
label:first-child {
  margin-top: 0;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field-note {
  font-size: 13px;
  margin: 6px 0 0;
}
.counter {
  text-align: right;
  font-size: 12px;
  margin: 6px 0 24px;
}
.voice-card {
  padding: 30px;
  border-top: 3px solid var(--accent);
  background: var(--surface);
}
.voice-card h2 {
  font-size: 30px;
}
.voice-card p {
  font-size: 14px;
}
.voice-symbol {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 54px;
  display: block;
  color: var(--deep);
  margin-bottom: 30px;
}
.voice-card .eyebrow {
  font-size: 10px;
}
.projects {
  display: grid;
  gap: 20px;
}
.contacts-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.costs-filter {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.costs-filter label {
  margin-top: 0;
}
.costs-filter input {
  min-width: 170px;
}
#costs-table td {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 1100px) {
  .costs-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .costs-filter > div {
    min-width: 0;
  }
  .costs-filter input {
    min-width: 0;
    width: 100%;
  }
  .costs-filter button {
    grid-column: 1 / -1;
  }
  #costs-table thead {
    display: none;
  }
  #costs-table,
  #costs-table tbody {
    display: block;
    width: 100%;
  }
  #costs-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  #costs-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #costs-table td::before {
    content: attr(data-label);
    color: var(--muted);
  }
  #costs-summary strong {
    font-size: 28px;
  }
  #costs-summary {
    grid-template-columns: 1fr;
  }
  #costs-summary .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 20px;
  }
  #costs-summary .stat strong {
    margin: 0;
  }
  #costs-summary .stat p {
    grid-column: 1 / -1;
  }
}
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
}
.contact-row > div {
  min-width: 0;
}
.contact-row h2 {
  overflow-wrap: anywhere;
}
.contact-row p {
  margin-bottom: 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  .contact-row {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contact-actions > :first-child {
    grid-column: 1 / -1;
  }
}
.project-top {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.project-top p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}
.key-row {
  border-top: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.key-row small {
  color: var(--muted);
  display: block;
}
.key-row.revoked {
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  padding: 26px;
}
.stat h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}
.stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 48px;
  font-weight: 500;
  display: block;
  margin: 20px 0 0;
}
.stat p {
  font-size: 13px;
  color: var(--muted);
}
.api-panel {
  padding: 30px;
  max-width: 950px;
}
.api-panel h2:not(:first-child) {
  margin-top: 32px;
}
pre {
  background: var(--paper);
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line);
  font:
    12px/1.8 'JetBrains Mono',
    monospace;
}
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
pre code {
  font-size: inherit;
}
.api-panel p {
  font-size: 14px;
}
.feedback {
  padding: 12px 16px;
  background: var(--tint);
  color: var(--deep);
  border-left: 3px solid var(--accent);
  margin: 0 0 20px;
}
.error,
.feedback.error {
  color: var(--bad);
  border-color: var(--bad);
}
footer {
  padding: 20px 42px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.login {
  max-width: 540px;
  margin: 12vh auto;
  padding: 40px;
}
.login .brand-logo {
  height: auto;
  display: block;
  margin-bottom: 45px;
}
.login h1 {
  font-size: 46px;
}
.login > p {
  margin: 24px 0;
}
.login .eyebrow {
  margin: 0 0 16px;
}
.login .button,
.login button {
  margin: 12px 0;
}
.login .muted {
  font-size: 13px;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 28px;
  width: min(540px, calc(100vw - 32px));
  max-height: 90vh;
}
dialog::backdrop {
  background: #0b0b1299;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.dialog-head button {
  font-size: 24px;
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.actions button {
  flex-shrink: 0;
}
#secret-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  word-break: break-all;
}
.detail-list {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  background: var(--paper);
}
.timeline {
  list-style: none;
  padding: 0;
  border-left: 2px solid var(--line);
}
.timeline li {
  padding: 7px 0 7px 16px;
  font-size: 14px;
}
.timeline time {
  color: var(--muted);
  display: block;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--surface);
  z-index: 5;
}
.skip:focus {
  top: 12px;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 12px 20px;
  }
  .brand img {
    width: 150px;
  }
  main {
    padding: 30px 24px;
  }
  .topbar,
  .notice {
    padding-left: 24px;
    padding-right: 24px;
  }
  td,
  th {
    padding: 15px 14px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 20px;
  }
  .form-panel,
  .voice-card {
    padding: 22px;
  }
  .account #user-name {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 20px 18px 0;
  }
  .brand {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .brand > span {
    margin: 0;
  }
  .brand img {
    width: 132px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 2px;
    margin: 0 -18px;
    padding: 0 10px;
  }
  .sidebar nav a {
    padding: 12px 10px;
    white-space: nowrap;
    font-size: 13px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    gap: 6px;
  }
  .sidebar nav a[aria-current] {
    border-left: 0;
    border-bottom-color: #a8a2ff;
  }
  .sidebar nav a span {
    display: none;
  }
  .sidebar-foot {
    display: none;
  }
  .topbar {
    min-height: 60px;
    padding: 8px 18px;
  }
  .account {
    gap: 0;
  }
  .account button {
    padding: 8px;
  }
  .notice {
    padding: 12px 18px;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
  }
  main {
    padding: 28px 18px;
  }
  .page-head {
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .page-head h1 {
    font-size: 30px;
  }
  .page-head p {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .form-layout {
    display: flex;
    flex-direction: column;
  }
  .form-panel {
    width: 100%;
    padding: 22px;
  }
  .voice-card {
    width: 100%;
    padding: 20px;
  }
  .voice-symbol {
    display: none;
  }
  .voice-card hr {
    margin: 14px 0;
  }
  .voice-card h2 {
    font-size: 24px;
  }
  .form-panel > button {
    width: 100%;
  }
  .panel-heading {
    padding: 14px 16px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .stat strong {
    margin: 0;
    font-size: 36px;
  }
  .stat p {
    grid-column: 1/-1;
  }
  footer {
    padding: 18px;
    font-size: 11px;
  }
  .pagination {
    padding: 12px 14px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pagination > div {
    gap: 8px;
  }
  .project-top,
  .key-row {
    padding: 18px;
  }
  .project-top {
    align-items: flex-start;
  }
  .project-top h2 {
    overflow-wrap: anywhere;
  }
  .key-row > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .api-panel {
    padding: 20px;
  }
  pre {
    padding: 14px;
    font-size: 11px;
  }
  .login {
    padding: 28px;
    margin: 7vh auto;
  }
  .login h1 {
    font-size: 38px;
  }
  .login .brand-logo {
    width: 170px;
  }
  dialog {
    padding: 20px;
  }
  #history-table thead {
    display: none;
  }
  #history-table,
  #history-table tbody {
    display: block;
  }
  #history-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    gap: 7px 12px;
  }
  #history-table td {
    display: block;
    border: 0;
    padding: 0;
    white-space: normal;
  }
  #history-table td:nth-child(1) {
    font-weight: 600;
  }
  #history-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
    font-size: 12px;
  }
  #history-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 1/3;
    text-align: right;
  }
  #history-table td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
    color: var(--muted);
    font-size: 12px;
  }
  #history-table td:nth-child(5) {
    grid-column: 1;
    grid-row: 4;
    color: var(--muted);
    font-size: 12px;
  }
  #history-table td:nth-child(5)::before {
    content: 'Duração: ';
  }
  #history-table td:nth-child(6) {
    grid-column: 2;
    grid-row: 3/5;
    text-align: right;
  }
  .actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 0 10px;
  }
  .sidebar nav a {
    justify-content: center;
    padding: 10px 6px;
  }
}
