@import url("/fonts.css");
:root {
  color-scheme: dark;
  --bg: #151515;
  --surface: #1d1d1d;
  --raised: #272727;
  --line: #363636;
  --text: #f6f3ec;
  --muted: #b7b2a9;
  --orange: #ff7a32;
  --green: #83c99a;
  --red: #f18989;
  --yellow: #e8c16b;
  font:
    14px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button {
  transition:
    background 120ms ease-out,
    transform 120ms ease-out;
}
button:active:not(:disabled) {
  transform: scale(0.96);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
button,
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: var(--text);
}
input,
select {
  height: 44px;
  padding: 0 12px;
  width: 100%;
}
textarea {
  width: 100%;
  min-height: 180px;
  padding: 16px;
  resize: vertical;
  line-height: 1.65;
  tab-size: 2;
}
textarea,
code,
pre,
.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}
button {
  min-height: 40px;
  padding: 9px 15px;
  font-weight: 550;
}
button:hover:not(:disabled) {
  background: #333;
}
.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #211207;
}
.primary:hover:not(:disabled) {
  background: #ff9257;
}
.ghost {
  background: transparent;
}
.danger {
  color: var(--red);
}
.small {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 12px;
}
.muted {
  color: var(--muted);
}
.orange {
  color: var(--orange);
}
.stack {
  display: grid;
  gap: 20px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-weight: 550;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 600;
}
.brand {
  font-size: 39px;
  font-weight: 650;
  letter-spacing: -2.5px;
  line-height: 1;
}
.brand span {
  color: var(--orange);
}
.brand .brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 3px;
}
.app-shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 32px 20px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #171717;
}
.sidebar .brand {
  padding-left: 12px;
}
.workspace-label {
  border: 1px solid var(--line);
  padding: 11px 12px;
  border-radius: 9px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.avatar {
  display: grid;
  place-items: center;
  background: #3a2b21;
  color: var(--orange);
  border: 1px solid #735039;
  border-radius: 7px;
  width: 30px;
  height: 30px;
  font-weight: 650;
  font-size: 12px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 10px 13px;
  color: #a4a29b;
  border-radius: 8px;
  font-size: 13px;
}
.sidebar nav a:hover {
  color: var(--text);
  background: #202020;
}
.sidebar nav a.active {
  background: #30241d;
  color: var(--orange);
}
.nav-icon {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 16px;
  font-size: 12px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}
.sidebar-bottom button {
  border: 0;
  color: var(--muted);
  text-align: left;
  padding-left: 0;
}
.main {
  min-width: 0;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.topbar .pill {
  font-size: 10px;
}
.page {
  max-width: 1400px;
  padding: 38px 42px 64px;
  margin: 0 auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.page-title p {
  color: var(--muted);
  margin-top: 9px;
  font-size: 13px;
}
.welcome {
  padding: 30px;
  border: 1px solid #51402f;
  border-radius: 13px;
  background: linear-gradient(125deg, #2b241e, #1d1d1d 70%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}
.welcome h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.welcome p {
  max-width: 520px;
  font-size: 13px;
  color: var(--muted);
}
.orb {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1px solid #9c5733;
  border-radius: 50%;
  box-shadow:
    0 0 0 17px #ff7a3205,
    0 0 0 34px #ff7a3204;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 36px;
  margin: 12px 26px;
  background: radial-gradient(ellipse at 30% 20%, #a6562a33, transparent 70%);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
}
.stat .value {
  font-size: 28px;
  letter-spacing: -0.9px;
  margin: 10px 0 5px;
  font-variant-numeric: tabular-nums;
}
.stat .hint {
  font-size: 11px;
  color: #8f8d85;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}
.section-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 22px;
  min-width: 0;
}
.card-link {
  display: block;
  transition: border-color 120ms;
}
.card-link:hover {
  border-color: #72513b;
}
.db-icon {
  width: 39px;
  height: 39px;
  border-radius: 9px;
  border: 1px solid #584334;
  display: grid;
  place-items: center;
  background: #2e241e;
  color: var(--orange);
  font-size: 20px;
}
.card h3 {
  margin: 18px 0 7px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #30302d;
  color: var(--muted);
  font-size: 11px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 5px;
  padding: 3px 7px;
  background: #262a26;
  color: var(--green);
  font-size: 11px;
  line-height: 1.3;
  border: 1px solid #344235;
}
.pill.warning {
  color: var(--yellow);
  background: #302b1f;
  border-color: #514834;
}
.pill.bad {
  color: var(--red);
  background: #302222;
  border-color: #563838;
}
.pill.neutral {
  color: var(--muted);
  background: var(--raised);
  border-color: var(--line);
}
.empty {
  padding: 50px 24px;
  text-align: center;
  border: 1px dashed #44413a;
  border-radius: 11px;
  color: var(--muted);
}
.empty h2 {
  color: var(--text);
  margin-bottom: 8px;
}
.empty p {
  max-width: 500px;
  margin: 0 auto 22px;
  font-size: 13px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #222;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 14px 17px;
  border-bottom: 1px solid #2e2e2a;
  vertical-align: top;
  max-width: 460px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
td.actions {
  text-align: right;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0 28px;
  overflow-x: auto;
  white-space: nowrap;
}
.tabs a {
  padding: 0 0 13px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 2px solid transparent;
}
.tabs a.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.editor {
  background: #181818;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: #212121;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.editor textarea {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 210px;
  padding: 24px;
  color: #e8d3bd;
  font-size: 13px;
  outline-offset: -3px;
}
.editor-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.result {
  margin-top: 24px;
}
.notice {
  border: 1px solid #49402f;
  background: #24211b;
  color: #d1bfa1;
  padding: 14px 17px;
  border-radius: 8px;
  font-size: 12px;
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.codeblock {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #151515;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  color: #e1cbb8;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
label input,
label select,
label textarea {
  color: var(--text);
}
.wide {
  grid-column: 1/-1;
}
.checks {
  display: grid;
  gap: 10px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.checks input {
  width: 17px;
  height: 17px;
  accent-color: var(--orange);
}
.loading {
  display: grid;
  place-items: center;
  min-height: 65vh;
  color: var(--muted);
}
.error {
  color: var(--red);
  font-size: 13px;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-art {
  background: #191715;
  padding: 54px 64px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.login-art .hero-copy {
  margin: auto 0;
  max-width: 480px;
  padding: 70px 0;
}
.hero-copy h1 {
  font-size: 64px;
  letter-spacing: -3.5px;
  line-height: 1.04;
  margin: 25px 0;
}
.hero-copy p {
  font-size: 15px;
  color: var(--muted);
  max-width: 345px;
  line-height: 1.8;
}
.login-art footer {
  font-size: 11px;
  color: var(--muted);
}
.login-form {
  display: grid;
  align-items: center;
  padding: 45px;
}
.login-form form {
  width: min(100%, 360px);
  margin: auto;
  display: grid;
  gap: 22px;
}
.login-form h2 {
  font-size: 24px;
}
.login-form p {
  color: var(--muted);
  font-size: 13px;
}
.login-form input {
  height: 48px;
}
.login-form .primary {
  height: 46px;
}
dialog {
  background: #1e1e1e;
  color: var(--text);
  border: 1px solid #49443e;
  border-radius: 15px;
  padding: 28px;
  width: min(600px, calc(100vw - 32px));
  max-height: 85dvh;
  box-shadow: 0 20px 100px #0009;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-head button {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 0;
  min-width: 40px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.modal-body {
  display: grid;
  gap: 18px;
}
.modal-body p {
  font-size: 13px;
  color: var(--muted);
}
#notifications {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 20;
  max-width: calc(100vw - 48px);
}
.toast {
  padding: 14px 20px;
  border: 1px solid #46503e;
  border-radius: 10px;
  background: #242a23;
  box-shadow: 0 10px 35px #0005;
  margin-top: 10px;
  font-size: 13px;
}
.toast.error {
  border-color: #69423c;
  background: #302321;
}
.footer-note {
  font-size: 11px;
  color: #8f8b81;
  margin-top: 28px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
}
.data-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #30302c;
  font-size: 12px;
}
.data-row:last-child {
  border: 0;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.breadcrumb a:hover {
  color: var(--orange);
}
.badge-number {
  margin-left: auto;
  font-size: 10px;
  background: #ff7a3220;
  border-radius: 4px;
  padding: 1px 5px;
}
.instruction-list {
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  display: grid;
  gap: 12px;
}
.mobile-brand {
  display: none;
}
.filter {
  max-width: 300px;
}
.spacer {
  margin-top: 28px;
}
.visually-hidden {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 1050px) {
  .page {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 35px;
  }
  .hero-copy h1 {
    font-size: 50px;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .sidebar .brand {
    padding: 0;
    font-size: 32px;
  }
  .workspace-label,
  .sidebar-bottom,
  .sidebar .eyebrow {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0 -4px;
  }
  .sidebar nav a {
    white-space: nowrap;
    font-size: 12px;
    min-height: 42px;
    padding: 10px;
  }
  .nav-icon {
    display: none;
  }
  .topbar {
    height: 46px;
    padding: 0 20px;
    font-size: 10px;
  }
  .page {
    padding: 28px 20px 50px;
  }
  .page-title {
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 14px;
  }
  h1 {
    font-size: 27px;
  }
  .page-title .primary {
    font-size: 12px;
    white-space: nowrap;
  }
  .welcome {
    padding: 24px;
  }
  .welcome h2 {
    font-size: 22px;
  }
  .orb {
    display: none;
  }
  .stats {
    gap: 10px;
    margin-bottom: 26px;
  }
  .stat {
    padding: 16px;
  }
  .stat .value {
    font-size: 24px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 32px 26px;
    border-right: 0;
    min-height: 280px;
  }
  .login-art .hero-copy {
    padding: 36px 0 10px;
  }
  .hero-copy h1 {
    font-size: 45px;
    margin: 12px 0;
  }
  .hero-copy p,
  .login-art footer {
    display: none;
  }
  .login-form {
    padding: 38px 26px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .tabs {
    gap: 22px;
  }
  .table-wrap table {
    min-width: 560px;
  }
  .flex.wrap {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.brand {
  display: inline-flex;
  align-items: center;
}
.cloud-mark {
  display: inline-block;
  width: 47px;
  height: 32px;
  background-image: url("/brand.png");
  background-size: 245px 163px;
  background-position: -61px -45px;
  background-repeat: no-repeat;
  margin-right: 9px;
  flex-shrink: 0;
}
.workspace-personal {
  font-size: 11px;
}
