@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/outfit-latin-400-normal.woff2');
}
@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/outfit-latin-500-normal.woff2');
  font-weight: 500;
}
@font-face {
  font-family: Albert;
  src: url('/assets/fonts/albert-sans-latin-400-normal.woff2');
}
@font-face {
  font-family: Albert;
  src: url('/assets/fonts/albert-sans-latin-500-normal.woff2');
  font-weight: 500;
}
@font-face {
  font-family: Fira;
  src: url('/assets/fonts/fira-code-latin-400-normal.woff2');
}
@font-face {
  font-family: Fira;
  src: url('/assets/fonts/fira-code-latin-500-normal.woff2');
  font-weight: 500;
}
:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #111111;
  --border: #393835;
  --ink: #f0e8d8;
  --muted: #98a8b3;
  --primary: #3fb2c9;
  --soft: #151e20;
  --danger: #e99187;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f0f5ec;
  --surface: #f0f5ec;
  --border: #cad1c8;
  --ink: #1e2b22;
  --muted: #4d5a50;
  --primary: #0e768e;
  --soft: #deece5;
  --danger: #a83327;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 14px/1.55 Albert,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: var(--primary);
  text-underline-offset: 3px;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1,
h2,
h3 {
  font-family: Outfit, sans-serif;
  font-weight: 500;
  line-height: 1.2;
}
h1 {
  font-size: 30px;
  margin-bottom: 24px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 15px;
}
p:last-child {
  margin-bottom: 0;
}
strong {
  font-weight: 500;
}
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  border-right: 1px solid var(--border);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  z-index: 20;
  overflow-y: auto;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 34px;
  font-family: Outfit;
  font-size: 16px;
}
.brand-logo {
  object-fit: contain;
  flex-shrink: 0;
  background: #f0f5ec;
  border-radius: 5px;
  padding: 3px;
  width: 96px;
  height: 52px;
}
nav {
  display: grid;
  gap: 4px;
}
nav a {
  display: block;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  font:
    400 12px/1.5 Fira,
    monospace;
  text-decoration: none;
}
nav a:hover,
nav a[aria-current] {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--primary);
}
.rail-foot {
  margin-top: auto;
  padding-top: 28px;
}
.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.account span {
  overflow-wrap: anywhere;
}
main {
  margin-left: 240px;
  padding: 28px 32px;
  max-width: 1440px;
  min-height: 100vh;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: none;
}
.eyebrow,
.mono,
.number,
th,
label,
.badge {
  font-family: Fira, monospace;
  font-size: 12px;
  font-weight: 400;
}
.eyebrow,
.number,
th {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--primary);
  color: var(--bg);
  font: 500 13px/1.4 Albert;
  text-decoration: none;
  min-height: 40px;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.button.danger {
  color: var(--danger);
  background: transparent;
  border-color: var(--danger);
}
.button:hover {
  filter: brightness(1.1);
}
.text-button {
  padding: 6px 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 12px;
}
.link {
  font-size: 13px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.badge:before,
.dot {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--primary);
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.company-grid .panel {
  margin: 0;
}
.company-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.company-initial {
  font-family: Outfit;
  font-size: 22px;
}
.company p {
  color: var(--muted);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 14px;
}
.section-title h2 {
  margin: 0;
}
.notice {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.notice .dot {
  margin-top: 8px;
  flex-shrink: 0;
}
.page-title {
  margin-bottom: 24px;
}
.connect {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.connect-details {
  min-width: 0;
}
.copy-field {
  display: flex;
  gap: 8px;
  margin: 8px 0 16px;
}
.copy-field input {
  min-width: 0;
}
.copy-field button {
  flex-shrink: 0;
}
input,
select,
textarea {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  padding: 10px 12px;
  width: 100%;
  font-size: 13px;
  min-width: 0;
  margin-top: 6px;
}
select[multiple] {
  min-height: 110px;
}
label {
  display: block;
  color: var(--muted);
  margin: 0 0 14px;
}
form button {
  margin-top: 4px;
}
.admin-form {
  max-width: 680px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
td {
  max-width: 360px;
}
tr:last-child td {
  border-bottom: 0;
}
.connection-row,
.pull-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.connection-row:last-child,
.pull-row:last-child {
  border: 0;
}
.connection-row > div,
.pull-row > div {
  min-width: 0;
  flex: 1;
}
.pull-number {
  font-family: Fira;
  color: var(--muted);
}
.break,
pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}
pre {
  font-family: Fira;
  font-size: 13px;
}
.empty {
  padding: 22px;
  color: var(--muted);
}
.login {
  max-width: 420px;
  margin: 8vh auto 0;
}
.login > .brand-logo {
  margin-bottom: 18px;
}
.login .button {
  width: 100%;
  margin: 6px 0;
}
.login .muted {
  margin-top: 14px;
}
.consent {
  max-width: 850px;
}
.requested {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 18px 0;
}
.permissions {
  padding-left: 20px;
  margin-bottom: 24px;
}
.permissions li {
  margin-bottom: 8px;
}
.mobile-bar,
.backdrop {
  display: none;
}
:focus-visible {
  outline: 1px solid var(--primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--soft);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1680px) {
  main {
    margin-right: auto;
  }
}
@media (max-width: 960px) {
  .mobile-bar {
    height: 60px;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    z-index: 15;
  }
  .mobile-bar .brand-logo {
    width: 82px;
    height: 44px;
  }
  #sidebar {
    transform: translateX(-100%);
    width: min(272px, 85vw);
  }
  body.menu-open #sidebar {
    transform: translateX(0);
  }
  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    border: 0;
    z-index: 19;
  }
  main {
    margin-left: 0;
    min-height: calc(100vh - 60px);
  }
}
@media (max-width: 620px) {
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 26px;
  }
  .panel {
    padding: 16px;
  }
  .connect {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .connection-row,
  .pull-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .section-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .login {
    margin-top: 24px;
  }
  .copy-field {
    flex-wrap: wrap;
  }
  .copy-field input {
    flex-basis: 100%;
  }
}

.admin-data-table table {
  min-width: 720px;
}
.admin-data-table th {
  overflow-wrap: normal;
}
