/* Layout adapted to Notes typography, theme variables, restrained forms and tables. */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled,
fieldset:disabled button {
  cursor: not-allowed;
  opacity: 0.5;
}
.site-header {
  height: 78px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.brand {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  background: #f5b800;
  color: #302a0d;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  text-align: center;
  font-size: 27px;
  line-height: 34px;
}
.muted {
  color: var(--text-secondary);
}
.header-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pilot-label,
.eyebrow,
.section-number {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
  color: var(--text-secondary);
}
.pilot-label {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 4px 8px;
}
.avatar {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-code);
  font-size: 11px;
  font-weight: 600;
}
.account-name {
  font-size: 12px;
}
.icon-button {
  border: 0;
  background: none;
  color: var(--text-primary);
  font-size: 23px;
  line-height: 1;
}
.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 36px;
}
nav {
  display: flex;
  gap: 29px;
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
}
nav a {
  padding: 24px 0 19px;
  color: var(--text-secondary);
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
nav a[aria-current] {
  color: var(--text-primary);
  border-color: var(--accent-color);
  font-weight: 600;
}
main {
  min-height: 72vh;
  padding: 34px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 30px;
}
.eyebrow {
  margin: 0 0 8px;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.9px;
  margin: 0 0 9px;
  font-weight: 600;
}
.subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: 13px;
}
.workspace-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 11px;
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 5px;
}
.card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}
.card p {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.8;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
.metric {
  padding: 22px;
}
.metric h2 {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}
.metric strong {
  display: block;
  font-size: 35px;
  font-weight: 550;
  line-height: 1.2;
  margin: 16px 0 10px;
  letter-spacing: -1px;
}
.metric p {
  font-size: 10px;
  margin: 0;
}
.two-column,
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.wide-left {
  grid-template-columns: 1.4fr 1fr;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.section-heading h2 {
  margin: 0;
}
.badge {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  border-radius: 5px;
  background: var(--bg-code);
  color: var(--text-secondary);
  padding: 3px 7px;
  font-size: 10px;
  text-transform: capitalize;
  font-weight: 550;
}
.badge.active,
.badge.delivered {
  background: #eaf6ee;
  color: #26774c;
}
.badge.pending,
.badge.retrying,
.badge.delivery_unknown {
  background: #fff4d6;
  color: #966000;
}
.badge.queued {
  background: #eaf1fc;
  color: #406ca4;
}
.badge.failed,
.badge.disabled,
.badge.paused {
  background: #fceeee;
  color: #a34e4e;
}
[data-theme="dark"] .badge {
  background: #293244;
  color: #c6d0e2;
}
[data-theme="dark"] .badge.active,
[data-theme="dark"] .badge.delivered {
  background: #173b30;
  color: #8bd8b2;
}
[data-theme="dark"] .badge.pending,
[data-theme="dark"] .badge.delivery_unknown {
  background: #3e341d;
  color: #eed087;
}
.key-value {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding: 12px 0;
  margin: 15px 0 7px;
  font-size: 11px;
}
.key-value > span {
  color: var(--text-secondary);
}
.key-value strong {
  font-weight: 500;
}
.text-link {
  font-size: 11px;
  font-weight: 600;
}
.text-link:hover {
  text-decoration: underline;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 10px;
  padding: 11px 10px;
  background: var(--bg-secondary);
}
td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
tbody tr:last-child td {
  border: 0;
}
td strong {
  font-weight: 550;
}
small {
  display: block;
  color: var(--text-secondary);
  font-size: 10px;
  margin-top: 4px;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
time {
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 10px;
}
.empty {
  text-align: center;
  padding: 31px 16px;
}
.empty-symbol {
  font-size: 29px;
  color: var(--text-secondary);
}
.empty h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 7px 0;
}
.empty p {
  font-size: 11px;
  margin: 0 auto;
  max-width: 360px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button.primary {
  background: #f5b800;
  color: #302a0d;
  border-color: #f5b800;
}
.button:hover {
  filter: brightness(0.97);
}
.button.small {
  padding: 6px 10px;
}
.text-button {
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--text-secondary);
  padding: 0;
}
.danger {
  color: #ba4141;
}
.notice {
  background: var(--bg-code);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  margin: 20px 0;
}
.notice:first-child {
  margin-top: 20px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 15px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 9px 10px;
  margin-top: 6px;
  font-size: 12px;
}
textarea {
  resize: vertical;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.inline-fields {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-fields select {
  width: auto;
  margin: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: auto;
  margin: 0;
}
.plain-list {
  padding: 0;
  list-style: none;
  margin: 10px 0 20px;
}
.plain-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}
.plain-list li > div {
  flex: 1;
}
.plain-list code {
  display: block;
}
.connection {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
}
.connection:last-child {
  border: 0;
}
.connection > div {
  flex: 1;
}
.connection h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0;
}
.connection p {
  margin: 3px 0 0;
  font-size: 11px;
}
.connection-icon {
  border-radius: 7px;
  background: var(--bg-code);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.danger-zone p {
  margin-bottom: 0;
}
footer {
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 10px;
  padding: 20px 0 25px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.welcome-card {
  padding: 32px;
}
.welcome-card h2 {
  font-size: 24px;
  margin: 20px 0 10px;
  letter-spacing: -0.5px;
}
.welcome-card p {
  max-width: 390px;
  font-size: 14px;
}
.capability-note {
  margin-top: 35px;
  font-size: 12px;
  color: var(--text-secondary);
}
.signin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.signin h2 {
  margin-bottom: 6px;
}
.signin p {
  margin: 0;
}
.secret-output {
  display: block;
  padding: 20px;
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--bg-code);
  border-radius: 6px;
  font-size: 13px;
}
@media (max-width: 950px) {
  .shell {
    padding: 0 20px;
  }
  .site-header {
    padding: 0 22px;
  }
  nav {
    gap: 22px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .account-name {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
  }
  .workspace-pill {
    display: none;
  }
}
@media (max-width: 650px) {
  .two-column,
  .welcome-grid,
  .wide-left {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-header {
    height: 64px;
  }
  .pilot-label {
    display: none;
  }
  .header-right {
    gap: 9px;
  }
  .shell {
    padding: 0 15px;
  }
  main {
    padding: 26px 0;
  }
  .page-heading {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 25px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
    margin-bottom: 10px;
  }
  .metric p {
    font-size: 9px;
  }
  .card {
    padding: 18px;
  }
  .signin,
  .danger-zone {
    align-items: stretch;
    flex-direction: column;
  }
  footer span {
    display: none;
  }
  .subtitle {
    font-size: 12px;
  }
}
