@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/dm-mono-400.ttf") format("truetype");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/dm-mono-500.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/manrope-400.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/manrope-500.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/manrope-600.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/manrope-700.ttf") format("truetype");
}
:root {
  --bg: #090c0f;
  --panel: #101418;
  --panel2: #151a1f;
  --line: #263039;
  --text: #e8edf0;
  --muted: #82909a;
  --lime: #b8f33d;
  --cyan: #42d4c7;
  --red: #ff6b70;
  --radius: 7px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 0, #152322 0, transparent 28%), var(--bg);
  color: var(--text);
  font-family: Manrope, sans-serif;
  font-size: 14px;
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  background: #0b0f12;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.brand small {
  display: block;
  color: var(--muted);
  font: 9px DM Mono;
  letter-spacing: 1.7px;
  margin-top: 3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--lime);
  color: #101608;
  font: bold 20px DM Mono;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-mark.large {
  width: 56px;
  height: 56px;
  font-size: 30px;
}
.sidebar nav {
  margin-top: 54px;
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  padding: 12px 13px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  display: flex;
  gap: 11px;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  color: var(--text);
  background: var(--panel2);
  border-color: var(--line);
}
.sidebar nav a.active {
  border-left-color: var(--lime);
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font: 10px DM Mono;
  display: grid;
  gap: 14px;
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sidebar-status form {
  margin-left: auto;
}
.company-copyright {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid #34431e;
}
.company-copyright b {
  color: var(--text);
  font: 600 11px Manrope;
}
.company-copyright small {
  color: #536069;
  font: 8px DM Mono;
  letter-spacing: 0.4px;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}
main {
  padding: 34px 42px;
  min-width: 0;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 34px;
}
h1 {
  font-size: 32px;
  margin: 5px 0 0;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 18px;
  margin: 3px 0;
}
.eyebrow {
  font: 10px DM Mono;
  color: var(--cyan);
  letter-spacing: 1.7px;
  margin: 0;
}
.clock {
  font: 12px DM Mono;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.stats article,
.card {
  background: linear-gradient(145deg, #12171b, #0e1215);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 18px 50px #0003;
}
.stats article {
  display: grid;
  gap: 10px;
  min-height: 130px;
}
.stats article.accent {
  border-top-color: var(--lime);
}
.stats span {
  color: var(--muted);
}
.stats strong {
  font: 500 30px DM Mono;
}
.stats em {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}
.stats small {
  font: 9px DM Mono;
  color: #59646b;
}
.grid-two,
.resource-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.card {
  margin-bottom: 12px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 12px;
}
.card-head-content {
    width: 100%;
}
.card-head a {
  font: 11px DM Mono;
  color: var(--lime);
  text-decoration: none;
}
.route {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #20272c;
}
.route b {
  min-width: 120px;
}
.route .line {
  height: 1px;
  background: var(--line);
  flex: 1;
}
.route div {
  display: grid;
  gap: 4px;
}
.route code,
.route-block code {
  display: block;
  color: var(--muted);
  font: 10px DM Mono;
}
.system-row {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #20272c;
}
.system-row > div:nth-child(2) {
  display: grid;
}
.system-row small,
.resource-row small,
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.system-row > span {
  margin-left: auto;
  font: 10px DM Mono;
  color: var(--muted);
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #385048;
  color: var(--lime);
  font: 11px DM Mono;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  text-align: left;
  color: var(--muted);
  font: 9px DM Mono;
  letter-spacing: 1px;
  padding: 10px;
}
td {
  padding: 12px 10px;
  border-top: 1px solid #20272c;
  white-space: nowrap;
}
.status {
  font: 10px DM Mono;
  border: 1px solid;
  padding: 3px 7px;
}
.status.ok {
  color: var(--lime);
  border-color: #50652a;
}
.status.bad {
  color: var(--red);
  border-color: #653137;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 25px;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr auto;
  gap: 7px;
  margin: 16px 0;
}
.inline-form.logs-filter {
  grid-template-columns: 1.2fr 1.2fr 1fr 0.8fr 0.8fr auto;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pagination p {
  margin: 0;
  color: var(--muted);
  font: 10px DM Mono;
}
.pagination-links {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pagination-links a,
.pagination-links span {
  min-width: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font: 10px DM Mono;
  text-align: center;
  text-decoration: none;
}
.pagination-links a:hover,
.pagination-links a.active {
  border-color: var(--lime);
  color: var(--lime);
}
.pagination-links a.active {
  background: rgba(188, 239, 82, 0.08);
}
.pagination-links span.disabled {
  opacity: 0.4;
}
.pagination-links span.ellipsis {
  min-width: auto;
  border-color: transparent;
}
.inline-form.compact {
  grid-template-columns: 1fr 2fr auto;
}
.stack-form {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}
.stack-form label {
  color: var(--muted);
  font-size: 11px;
}
.stack-form select {
  width: 100%;
  height: 90px;
  margin-top: 5px;
}
.selection-order {
  display: block;
  margin-top: 7px;
  color: var(--lime);
  font: 10px DM Mono;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
input,
select {
  width: 100%;
  background: #090d10;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px;
  color: var(--text);
  font: 12px Manrope;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
}
button {
  background: #20282e;
  color: var(--text);
  border: 1px solid #34414a;
  padding: 9px 13px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
button.primary {
  background: var(--lime);
  color: #111;
  border: 0;
}
.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #20272c;
  padding: 11px 0;
}
.resource-row.sub {
  padding-left: 18px;
}
.tag {
  font: 9px DM Mono;
  padding: 4px 7px;
}
.tag.on {
  color: var(--lime);
  border-color: #536b27;
}
.route-block {
  border-left: 2px solid var(--cyan);
  padding-left: 12px;
  margin: 12px 0;
}
.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.system-card {
  border: 1px solid var(--line);
  padding: 13px;
}
.key-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #20272c;
  padding: 8px 0;
  font-size: 11px;
}
.key-row form {
  margin-left: auto;
}
.link {
  border: 0;
  background: none;
  padding: 2px;
  color: var(--muted);
  font-size: 10px;
}
.key-form {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.key-reveal {
  border: 1px solid var(--lime);
  background: #182111;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.key-reveal code {
  display: block;
  color: var(--lime);
  margin-top: 7px;
}
.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0 48px;
  background:
    radial-gradient(circle at 20% 50%, #193029 0, transparent 28%), #080b0d;
}
.login-copyright {
  position: fixed;
  bottom: 16px;
  left: 50%;
  color: #536069;
  font: 9px DM Mono;
  letter-spacing: 0.5px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.login-panel {
  width: min(880px, 92vw);
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  box-shadow: 0 35px 100px #000;
  background: #0e1316;
}
.login-aside {
  padding: 50px;
  background: linear-gradient(150deg, #17221d, #0c1113);
  position: relative;
  overflow: hidden;
}
.login-aside:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #2e463c;
  transform: rotate(45deg);
  right: -180px;
  bottom: -100px;
}
.login-aside .eyebrow {
  margin-top: 42px;
}
.login-aside h1 {
  font-size: 41px;
  line-height: 1.12;
  margin: 13px 0;
}
.login-aside > p:last-of-type {
  color: var(--muted);
  line-height: 1.8;
}
.signal {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 35px;
  margin-top: 45px;
}
.signal i {
  width: 4px;
  background: var(--lime);
}
.signal i:nth-child(1) {
  height: 8px;
}
.signal i:nth-child(2) {
  height: 16px;
}
.signal i:nth-child(3) {
  height: 29px;
}
.signal i:nth-child(4) {
  height: 20px;
}
.signal i:nth-child(5) {
  height: 11px;
}
.login-form {
  padding: 50px 55px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form h2 {
  font-size: 25px;
  margin-bottom: 7px;
}
.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.login-form input {
  padding: 13px;
}
.login-form button {
  margin-top: 4px;
  padding: 13px;
  display: flex;
  justify-content: space-between;
}
.login-form > small {
  text-align: center;
  color: #576169;
}
.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: stretch;
  gap: 7px;
}
.captcha-row input {
  height: 46px;
  min-width: 0;
  font: 15px DM Mono;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.captcha-row img {
  width: 132px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  object-fit: cover;
}
.alert {
  padding: 10px;
  border: 1px solid #6c3035;
  color: var(--red);
  background: #261316;
}
@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two,
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .systems-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inline-form {
    grid-template-columns: 1fr 1fr;
  }
  .inline-form.logs-filter {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 13px;
  }
  .sidebar nav {
    margin: 0 0 0 auto;
    display: flex;
  }
  .sidebar nav a span,
  .sidebar-foot {
    display: none;
  }
  main {
    padding: 23px 14px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .systems-grid {
    grid-template-columns: 1fr;
  }
  .inline-form,
  .inline-form.compact {
    grid-template-columns: 1fr;
  }
  .inline-form.logs-filter {
    grid-template-columns: 1fr;
  }
  .pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .pagination-links {
    max-width: 100%;
    overflow-x: auto;
  }
  .login-panel {
    grid-template-columns: 1fr;
  }
  .login-aside {
    display: none;
  }
  .login-form {
    padding: 45px 30px;
  }
}
.playground-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 3px solid var(--cyan);
}
.playground-intro h2 {
  margin: 7px 0;
  font-size: 23px;
}
.playground-intro p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}
.playground-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
}
.playground-panel {
  position: sticky;
  top: 20px;
}
#playground-form {
  display: grid;
  gap: 15px;
}
#playground-form > label,
.playground-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
#playground-form textarea {
  resize: vertical;
  width: 100%;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 11px;
  background: #090d10;
  color: var(--text);
  font: 13px Manrope;
  line-height: 1.6;
}
#playground-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.playground-fields {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr;
  gap: 8px;
}
.playground-stream {
  display: flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
}
.playground-stream input {
  width: 17px;
  height: 17px;
  accent-color: var(--lime);
}
.playground-actions {
  display: flex;
  gap: 8px;
}
.playground-actions button:first-child {
  flex: 1;
}
.playground-results {
  display: grid;
  gap: 12px;
}
.test-status-card,
.output-card {
  margin: 0;
}
.test-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.test-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: #0b1013;
}
.test-metrics span,
.test-metrics b {
  display: block;
}
.test-metrics span {
  color: var(--muted);
  font: 9px DM Mono;
  margin-bottom: 6px;
}
.test-metrics b {
  overflow: hidden;
  color: var(--text);
  font: 11px DM Mono;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.test-output {
  min-height: 120px;
  max-height: 430px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: #080c0e;
  color: var(--text);
  font: 12px/1.75 DM Mono;
  white-space: pre-wrap;
  word-break: break-word;
}
.muted-output {
  color: var(--muted);
}
.raw-output {
  color: var(--cyan);
  font-size: 10px;
}
.output-card details summary {
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 700;
}
.test-config-overview {
  margin-top: 12px;
}
.test-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.test-config-grid h3 {
  margin: 0 0 10px;
  font-size: 13px;
}
.test-config-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.test-config-row span {
  color: var(--muted);
  font: 10px DM Mono;
  text-align: right;
}
@media (max-width: 1100px) {
  .playground-layout {
    grid-template-columns: 1fr;
  }
  .playground-panel {
    position: static;
  }
}
@media (max-width: 680px) {
  .playground-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .playground-fields,
  .test-metrics,
  .test-config-grid {
    grid-template-columns: 1fr;
  }
  .playground-actions {
    flex-wrap: wrap;
  }
}
.key-create-form {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #0b1013;
}
.key-create-form > label,
.key-edit-form > label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.key-create-form > label:has(select) {
  grid-column: 1 / -2;
}
.key-create-form select,
.key-edit-form select {
  min-height: 82px;
}
.key-all-models {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
.key-all-models input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}
.api-key-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.api-key-card {
  border: 1px solid var(--line);
  background: #0d1215;
  padding: 15px;
}
.key-policy {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.key-policy span {
  color: var(--muted);
}
.key-policy b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.api-key-card details {
  margin-top: 12px;
}
.api-key-card summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
}
.key-edit-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #090d10;
}
.danger-button {
  width: 100%;
  margin-top: 10px;
  color: var(--red);
  border-color: #653137;
  background: transparent;
}
@media (max-width: 1000px) {
  .key-create-form {
    grid-template-columns: 1fr 1fr;
  }
  .key-create-form > label:has(select) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 680px) {
  .key-create-form,
  .api-key-grid {
    grid-template-columns: 1fr;
  }
  .key-create-form > label:has(select) {
    grid-column: auto;
  }
}
.resource-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.edit-button {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font: 10px DM Mono;
}
.edit-button:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.resource-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1215;
  color: var(--text);
  box-shadow: 0 30px 100px #000d;
  overflow: visible;
}
.resource-modal[open] {
  animation: modal-enter 160ms ease-out;
}
.resource-modal::backdrop {
  background: #050708cc;
  backdrop-filter: blur(4px);
}
.resource-modal form {
  margin: 0;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.modal-head .eyebrow {
  margin: 0 0 6px;
}
.modal-head h3 {
  margin: 0;
  font-size: 19px;
}
.modal-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin: -4px -4px 0 0;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.modal-body {
  max-height: calc(100vh - 210px);
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  overflow-y: auto;
}
.modal-body label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.modal-body select[multiple] {
  min-height: 150px;
}
.modal-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-field-grid label {
  display: grid;
  gap: 7px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
}
.modal-actions button {
  min-width: 92px;
}
.delete-confirm-modal {
  width: min(460px, calc(100vw - 32px));
}
.danger-text {
  color: var(--red);
}
.delete-confirm-body {
  grid-template-columns: 46px 1fr;
  align-items: start;
}
.delete-confirm-body p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.6;
}
.delete-confirm-body small {
  color: #69757d;
}
.delete-warning-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #71363b;
  border-radius: 50%;
  background: #261316;
  color: var(--red);
  font: 700 18px DM Mono;
}
.confirm-delete-button {
  border-color: #7d343a;
  background: #5e262b;
  color: #fff;
}
.confirm-delete-button:hover {
  border-color: var(--red);
  background: #722e34;
  color: #fff;
}
@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 520px) {
  .modal-field-grid {
    grid-template-columns: 1fr;
  }
}
.delete-button {
  padding: 4px 7px;
  border-color: #653137;
  background: transparent;
  color: var(--red);
  font: 10px DM Mono;
}
.delete-button:hover {
  border-color: var(--red);
  color: #ff9b9f;
}
.test-button {
  color: var(--cyan);
  border-color: #315d59;
  font: 10px DM Mono;
  padding: 4px 7px;
}
.test-button:disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.55;
}
.connection-test {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.connection-test.success {
  border-color: #526e2c;
  background: #151e10;
}
.connection-test.failure {
  border-color: #6c3035;
  background: #241316;
}
.connection-test-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  color: var(--lime);
  font: 18px DM Mono;
}
.connection-test.failure .connection-test-icon {
  color: var(--red);
}
.connection-test b,
.connection-test small {
  display: block;
}
.connection-test small {
  color: var(--muted);
  margin-top: 5px;
  word-break: break-word;
}
.connection-test > a {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.thinking-control {
  position: relative;
}
.thinking-status {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 4px 7px;
  font: 10px DM Mono;
  white-space: nowrap;
}
.thinking-status::-webkit-details-marker {
  display: none;
}
.thinking-status.on {
  color: var(--cyan);
  border-color: #315d59;
}
.thinking-control[open] .thinking-status {
  border-color: var(--lime);
}
.thinking-control form {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #0d1215;
  box-shadow: 0 18px 55px #000b;
}
.thinking-control form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.thinking-control form small {
  color: var(--muted);
  line-height: 1.5;
}
.thinking-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}
.thinking-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}
@media (max-width: 680px) {
  .resource-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .thinking-control form {
    position: fixed;
    top: 20%;
    right: 5vw;
    width: 90vw;
  }
}
.guide-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid var(--lime);
}
.guide-hero h2 {
  font-size: 25px;
  margin: 8px 0;
}
.guide-hero p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
  line-height: 1.7;
}
.guide-action {
  background: var(--lime);
  color: #101608;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 3px;
  white-space: nowrap;
}
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
  align-items: start;
}
.guide-steps {
  display: grid;
  gap: 12px;
}
.guide-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  margin: 0;
}
.step-number {
  font: 500 26px DM Mono;
  color: var(--lime);
  border-right: 1px solid var(--line);
  padding-top: 2px;
}
.guide-step h2 {
  margin: 5px 0 10px;
}
.guide-step p {
  color: var(--muted);
  line-height: 1.7;
}
.guide-step code {
  font-family: DM Mono;
  color: var(--cyan);
}
.example-box,
.code-example {
  background: #090d10;
  border: 1px solid var(--line);
  padding: 13px 15px;
  display: grid;
  gap: 8px;
  margin: 13px 0;
}
.example-box b {
  font-size: 11px;
}
.example-box code {
  display: block;
}
.hint {
  font-size: 12px !important;
  margin-bottom: 0;
}
.route-example {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  background: #0c1212;
  border: 1px solid #29413a;
  padding: 13px;
  margin: 13px 0;
}
.route-example span {
  border: 1px solid var(--line);
  padding: 7px 10px;
}
.route-example i {
  color: var(--lime);
  font-style: normal;
  font: 10px DM Mono;
}
.warning-box {
  border-left: 2px solid #e2af46;
  background: #211b0f;
  color: #d8c69f;
  padding: 12px 14px;
  margin-top: 13px;
}
.code-example > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.code-example button {
  font-size: 10px;
  padding: 3px 8px;
}
.code-example code {
  word-break: break-all;
}
.guide-aside {
  position: sticky;
  top: 20px;
}
.readiness > div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}
.readiness > div b {
  font: 500 16px DM Mono;
  color: var(--lime);
}
.ready {
  color: var(--lime);
  font: 11px DM Mono;
  margin: 14px 0 0;
}
.not-ready {
  color: #e2af46;
  font: 11px DM Mono;
}
.menu-map {
  margin: 0;
}
.menu-map dt {
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.menu-map dd {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 4px 0 0;
}
.guide-aside details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.guide-aside summary {
  cursor: pointer;
  font-weight: 600;
}
.guide-aside details p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}
@media (max-width: 1000px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .guide-aside .card {
    margin: 0;
  }
  .guide-aside .card:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 680px) {
  .guide-hero {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
  .guide-step {
    grid-template-columns: 43px 1fr;
    padding: 16px;
  }
  .step-number {
    font-size: 19px;
  }
  .guide-aside {
    grid-template-columns: 1fr;
  }
  .guide-aside .card:last-child {
    grid-column: auto;
  }
  .route-example i {
    display: none;
  }
}
