:root {
  --bg:#f7f6ef;
  --paper:#fff;
  --ink:#242a24;
  --muted:#686e63;
  --line:#e5e7dc;
  --lemon:#e6ee8a;
  --green:#53705b;
  --danger:#a14237;
  --radius:18px;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  touch-action:manipulation
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  background:var(--paper);
  color:var(--ink);
  padding:11px 16px;
  border-radius:9px;
  font-size:13px;
  font-weight:650
}
button:hover {
  background:#f1f3e7
}
button:disabled {
  opacity:.5;
  cursor:wait
}
a {
  color:inherit;
  text-underline-offset:3px
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #668248;
  outline-offset:3px
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:38px;
  line-height:1.15;
  letter-spacing:-1.8px;
  font-weight:650;
  margin-bottom:12px
}
h2 {
  font-size:25px;
  letter-spacing:-.7px
}
h3 {
  font-size:16px;
  letter-spacing:-.2px
}
p {
  line-height:1.6
}
.muted {
  color:var(--muted)
}
.eyebrow {
  font-size:11px;
  letter-spacing:2px;
  font-weight:700
}
.fine {
  font-size:12px;
  color:var(--muted);
  line-height:1.6
}
.primary {
  background:var(--ink);
  color:white;
  border-color:var(--ink)
}
.primary:hover {
  background:#3e493c
}
.lemon-button {
  background:var(--lemon);
  border-color:var(--lemon)
}
.quiet {
  background:transparent;
  border:0;
  padding:8px
}
.danger {
  color:var(--danger)
}
[hidden] {
  display:none!important
}
.brand-mark {
  display:inline-grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:12px;
  background:var(--lemon);
  font-size:24px;
  font-weight:750;
  font-style:italic
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  font-weight:750;
  font-size:21px;
  letter-spacing:-.6px
}
.brand-dot {
  height:5px;
  width:5px;
  background:var(--green);
  border-radius:50%;
  margin-left:-7px
}
.workspace {
  display:flex;
  min-height:100vh
}
.sidebar {
  width:235px;
  padding:34px 24px 24px;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  position:fixed;
  inset:0 auto 0 0
}
.nav-label {
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--muted);
  margin:52px 13px 17px
}
nav {
  display:grid;
  gap:7px
}
nav a {
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 14px;
  color:#6c7267;
  text-decoration:none;
  font-size:14px;
  border-radius:9px
}
nav a.active {
  background:#e9eddd;
  color:var(--ink);
  font-weight:650
}
nav a:hover {
  background:#eef0e4
}
.nav-icon {
  font-size:17px;
  width:21px;
  text-align:center
}
.sidebar-foot {
  margin-top:auto;
  font-size:12px;
  padding:22px 12px 0
}
.sidebar-foot p {
  font-size:11px;
  color:var(--muted);
  margin:8px 0 0
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  background:#66856b;
  border-radius:50%;
  margin-right:8px
}
.main-shell {
  margin-left:235px;
  width:calc(100% - 235px)
}
.topbar {
  height:84px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 42px;
  font-size:12px
}
.topbar p {
  margin:0;
  color:var(--muted)
}
.topbar p span {
  margin:0 14px;
  color:#a9ad9f
}
.topbar strong {
  font-weight:500;
  color:var(--ink)
}
.account {
  display:flex;
  align-items:center;
  gap:17px
}
.account>span {
  font-size:12px;
  font-weight:650
}
main#content {
  max-width:1280px;
  padding:43px 42px 30px;
  margin:auto;
  min-height:calc(100vh - 151px)
}
.page-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:28px
}
.page-head p {
  margin:0;
  font-size:14px;
  color:var(--muted)
}
.page-head h1 {
  margin-bottom:9px
}
.card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px
}
.stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px
}
.stat {
  padding:23px 25px
}
.stat .label {
  font-size:12px;
  color:var(--muted);
  margin-bottom:14px
}
.stat strong {
  font-size:32px;
  letter-spacing:-1px;
  display:block;
  font-weight:600
}
.stat .fine {
  margin:8px 0 0
}
.split {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:22px;
  margin:22px 0
}
.connection-card {
  background:#edf1dd;
  border-color:#e0e6cc
}
.card-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:19px
}
.card-title h3 {
  margin:0
}
.pill {
  display:inline-block;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.6px;
  padding:5px 8px;
  border-radius:5px;
  background:#eef2e9;
  color:#53644b;
  font-weight:700;
  white-space:nowrap
}
.pill.off {
  color:#7b603b;
  background:#f8efdc
}
.pill.error {
  background:#f7e8e4;
  color:var(--danger)
}
.endpoint {
  display:flex;
  align-items:center;
  gap:9px;
  background:#f5f7ee;
  padding:12px;
  border:1px solid #e0e5d5;
  border-radius:8px;
  overflow:hidden
}
.endpoint code {
  font-size:12px;
  overflow:auto;
  white-space:nowrap;
  flex:1
}
.endpoint button {
  padding:7px 10px
}
.section-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:32px 0 15px
}
.section-head h3 {
  margin:0
}
.table-wrap {
  overflow:auto;
  padding:0
}
.table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  min-width:650px
}
.table th {
  font-size:10px;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:var(--muted);
  padding:16px 21px;
  border-bottom:1px solid var(--line);
  background:#fbfcf7
}
.table td {
  font-size:12px;
  padding:18px 21px;
  border-bottom:1px solid var(--line);
  vertical-align:top
}
.table tr:last-child td {
  border-bottom:0
}
.table strong {
  font-size:13px;
  display:block;
  margin-bottom:5px
}
.table .fine {
  margin:0
}
.table button {
  font-size:11px;
  padding:7px 10px
}
.actions {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}
.chips {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  max-width:300px
}
.chip {
  padding:4px 7px;
  border-radius:5px;
  background:#f0f2e9;
  color:#626958;
  font-size:10px;
  word-break:break-word
}
.usage {
  width:130px
}
.usage progress {
  width:100%;
  height:5px;
  margin-top:7px;
  accent-color:var(--green)
}
.empty {
  text-align:center;
  padding:48px 25px
}
.empty .empty-icon {
  font-size:32px;
  color:#9da986;
  margin-bottom:13px
}
.empty h3 {
  margin-bottom:7px
}
.empty p {
  font-size:13px;
  color:var(--muted);
  max-width:420px;
  margin:0 auto 20px
}
.banner {
  padding:14px 17px;
  background:#fff8e9;
  border:1px solid #eee0bc;
  border-radius:10px;
  font-size:12px;
  line-height:1.7;
  margin-bottom:20px
}
.banner p {
  margin:0
}
.grid-two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px
}
label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin-bottom:16px
}
input,textarea,select {
  display:block;
  width:100%;
  margin-top:7px;
  padding:11px 12px;
  border:1px solid #dce0d2;
  border-radius:8px;
  background:white;
  color:var(--ink);
  font-size:13px;
  min-width:0
}
textarea {
  resize:vertical;
  line-height:1.55
}
label small {
  display:block;
  font-weight:400;
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  line-height:1.5
}
.form-actions {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:23px
}
.form-actions p {
  margin-right:auto
}
.model-checks {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  max-height:190px;
  overflow:auto;
  margin-bottom:14px
}
.model-checks label {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px;
  margin:0;
  background:#f5f6ef;
  border-radius:6px;
  padding:9px;
  font-weight:500;
  word-break:break-word
}
.model-checks input {
  width:14px;
  height:14px;
  padding:0;
  flex-shrink:0;
  margin:0;
  accent-color:var(--green)
}
fieldset {
  border:0;
  padding:0;
  margin:0 0 18px
}
legend {
  font-size:12px;
  font-weight:600;
  margin-bottom:10px
}
.play-result {
  white-space:pre-wrap;
  word-break:break-word;
  background:#f8f9f3;
  border:1px solid var(--line);
  padding:17px;
  border-radius:9px;
  font-size:13px;
  line-height:1.7;
  max-height:300px;
  overflow:auto;
  margin-top:18px
}
.toast {
  position:fixed;
  bottom:26px;
  right:26px;
  background:var(--ink);
  color:white;
  padding:15px 21px;
  border-radius:10px;
  max-width:min(460px,calc(100vw - 35px));
  font-size:13px;
  z-index:50;
  box-shadow:0 8px 25px #28322222
}
.toast.error {
  background:#864136
}
dialog {
  border:1px solid var(--line);
  border-radius:20px;
  padding:28px;
  max-width:650px;
  width:calc(100% - 32px);
  max-height:90vh;
  color:var(--ink)
}
dialog::backdrop {
  background:#1e281e65;
  backdrop-filter:blur(3px)
}
.dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:23px
}
.dialog-head h2 {
  margin:0;
  font-size:23px
}
.secret {
  font-size:14px;
  word-break:break-all;
  white-space:pre-wrap;
  padding:18px;
  background:#edf1dd;
  border:1px solid #dce4cb;
  border-radius:9px
}
.record {
  border-top:1px solid var(--line);
  padding:20px 0
}
.record p {
  font-size:12px;
  margin-bottom:10px
}
.record pre {
  font-size:11px;
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.6;
  background:#f7f8f2;
  padding:14px;
  border-radius:8px;
  max-height:300px;
  overflow:auto
}
.record .pill {
  margin-right:8px
}
footer {
  font-size:10px;
  letter-spacing:1px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:22px 42px;
  color:var(--muted);
  border-top:1px solid var(--line)
}
footer span {
  letter-spacing:0
}
.settings {
  max-width:690px
}
.settings .card {
  margin-bottom:20px
}
.login-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.login-story {
  background:#e7edcf;
  padding:70px 10vw;
  position:relative;
  overflow:hidden
}
.login-story .brand-mark {
  background:white;
  margin-bottom:100px
}
.login-story h1 {
  font-size:48px;
  max-width:420px
}
.login-story>p:not(.eyebrow) {
  font-size:15px;
  color:#5d6854
}
.login-panel {
  display:grid;
  place-items:center;
  padding:45px
}
.login-card {
  width:100%;
  max-width:340px
}
.login-card h2 {
  font-size:32px;
  margin:17px 0 9px
}
.login-card .muted {
  font-size:13px;
  margin-bottom:32px
}
.login-card button {
  width:100%;
  display:flex;
  justify-content:space-between;
  margin-top:10px
}
.login-card .fine {
  text-align:center;
  margin-top:24px
}
#login-error {
  color:var(--danger);
  font-size:12px;
  margin:0
}
.lemon-art {
  width:280px;
  height:210px;
  position:absolute;
  bottom:70px;
  left:12vw;
  transform:rotate(-18deg);
  border-radius:70% 20% 70% 20%;
  background:#d0db71;
  border:1px solid #bac65e;
  box-shadow:inset 10px 13px 0 #dce58b66
}
.lemon-art i {
  position:absolute;
  background:#668266;
  width:100px;
  height:45px;
  border-radius:100% 0 100% 0;
  top:-25px;
  right:8px;
  transform:rotate(-10deg)
}
.lemon-art b {
  position:absolute;
  width:210px;
  height:145px;
  top:30px;
  left:33px;
  border:1px solid #eaf0b4;
  border-radius:70% 25% 70% 25%
}
@media(min-width:1500px) {
  .login-story {
    padding-left:13vw
  }
}
@media(max-width:1100px) {
  .sidebar {
    width:190px;
    padding:30px 17px
  }
  .main-shell {
    margin-left:190px;
    width:calc(100% - 190px)
  }
  main#content {
    padding:32px 25px
  }
  .topbar,footer {
    padding-left:25px;
    padding-right:25px
  }
  .split {
    grid-template-columns:1fr
  }
  .login-story {
    padding:60px 7vw
  }
  .login-story h1 {
    font-size:40px
  }
  .lemon-art {
    left:9vw
  }
}
@media(max-width:720px) {
  .workspace {
    display:block
  }
  .sidebar {
    position:static;
    width:100%;
    padding:19px 20px 0;
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .sidebar .brand {
    font-size:20px
  }
  .nav-label,.sidebar-foot {
    display:none
  }
  nav {
    display:flex;
    overflow:auto;
    gap:4px;
    margin-top:18px;
    padding-bottom:12px
  }
  nav a {
    white-space:nowrap;
    padding:9px 12px;
    font-size:12px;
    gap:6px
  }
  .nav-icon {
    width:16px;
    font-size:14px
  }
  .main-shell {
    margin:0;
    width:100%
  }
  .topbar {
    height:63px;
    padding:0 20px
  }
  .topbar p {
    font-size:10px
  }
  .topbar p span {
    margin:0 7px
  }
  .account {
    gap:4px
  }
  .account>span {
    font-size:10px
  }
  main#content {
    padding:29px 20px
  }
  .page-head {
    align-items:flex-start;
    margin-bottom:22px
  }
  .page-head h1 {
    font-size:30px
  }
  .page-head p {
    font-size:12px;
    max-width:240px
  }
  .page-head>button {
    padding:9px 12px;
    white-space:nowrap;
    font-size:11px
  }
  .stats {
    gap:8px
  }
  .stat {
    padding:17px 13px
  }
  .stat .label {
    font-size:10px;
    margin-bottom:12px
  }
  .stat strong {
    font-size:25px
  }
  .stat .fine {
    font-size:10px
  }
  .card {
    padding:20px
  }
  .table-wrap {
    padding:0
  }
  .grid-two {
    grid-template-columns:1fr
  }
  .model-checks {
    grid-template-columns:1fr
  }
  .endpoint code {
    font-size:10px
  }
  footer {
    padding:20px;
    flex-wrap:wrap;
    font-size:9px
  }
  .login-shell {
    grid-template-columns:1fr
  }
  .login-story {
    padding:30px 30px 37px
  }
  .login-story .brand-mark {
    margin-bottom:28px
  }
  .login-story h1 {
    font-size:34px;
    max-width:300px
  }
  .login-story>p:not(.eyebrow) {
    font-size:13px;
    margin-bottom:0
  }
  .lemon-art {
    width:105px;
    height:80px;
    bottom:37px;
    left:auto;
    right:-15px
  }
  .lemon-art i {
    width:45px;
    height:20px;
    top:-10px
  }
  .lemon-art b {
    width:65px;
    height:42px;
    left:17px;
    top:17px
  }
  .login-panel {
    padding:35px 30px
  }
  .login-card h2 {
    font-size:27px
  }
  dialog {
    padding:22px
  }
  .settings {
    max-width:100%
  }
}
@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition:background .15s ease
  }
  dialog[open] {
    animation:appear .12s ease
  }
  @keyframes appear {
    from {
      opacity:0;
      transform:translateY(6px)
    }
    to {
      opacity:1;
      transform:translateY(0)
    }
  }
}
