:root {
  font:
    14px 'Segoe UI',
    Arial,
    sans-serif;
  color: #25283f;
  background: #f6f7fb;
  --purple: #548def;
  --line: #e7e8f1;
  --muted: #9396a8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b6d0fd;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
}
[v-cloak] {
  display: none !important;
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: #222e42;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.6px;
  padding: 0 7px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, #5c95f7, #4f88ec);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 9px #5c8ee624;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.brand small {
  display: block;
  color: #9aa2b0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.7px;
  margin-top: 5px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 10px;
  margin-top: 33px;
  font-weight: 600;
  font-size: 12px;
}
.workspace-icon {
  background: #edf0f9;
  color: #7f88b1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
}
.workspace small {
  display: block;
  font-size: 10px;
  color: #9aa2b0;
  font-weight: 400;
  margin-top: 3px;
}
.nav-label {
  font-size: 9px;
  color: #a3a5b6;
  letter-spacing: 1.4px;
  margin: 31px 10px 13px;
  font-weight: 600;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  padding: 13px 12px;
  display: flex;
  gap: 11px;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #7f8296;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
}
nav button.selected {
  color: #548beb;
  background: #eef4fe;
}
nav button:hover {
  background: #f4f7fc;
}
nav button svg {
  width: 18px;
  height: 18px;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
}
.sidebar-note {
  margin: auto 9px 27px;
  padding-top: 40px;
}
.sidebar-note > svg {
  color: #99a8c1;
  margin-bottom: 10px;
}
.sidebar-note strong {
  display: block;
  font-size: 11px;
}
.sidebar-note p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 6px;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 19px 8px 0;
  font-size: 11px;
  color: #797e96;
}
.environment-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #83ad9d;
  border-radius: 50%;
  margin-right: 7px;
}
.sidebar-footer small {
  display: block;
  margin: 5px 0 0 14px;
  color: #a6a8b9;
  font-size: 10px;
}
.shell {
  margin-left: 228px;
}
.topbar {
  height: 70px;
  padding: 0 35px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9a9cad;
}
.topbar strong {
  font-weight: 500;
  color: #62667e;
}
.slash {
  margin: 0 16px;
  color: #c6c7d1;
}
.top-badge {
  border: 1px solid #eef0f4;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 10px;
  color: #9295a7;
}
main {
  padding: 32px 35px 0;
  max-width: 1680px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: #a2aec2;
}
h1 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.85px;
  margin: 8px 0 10px;
  font-weight: 700;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
  margin: 0 0 7px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
p {
  font-size: 12px;
  color: #9194a7;
  line-height: 1.65;
  margin: 0;
}
.heading p {
  font-size: 13px;
}
.button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  white-space: nowrap;
}
.button svg {
  width: 15px;
  height: 15px;
}
.secondary {
  border-color: #e1e3ef;
  background: #fff;
  color: #777b94;
}
.primary {
  background: #538cef;
  color: #fff;
  box-shadow: 0 3px 7px #538cef21;
}
.primary:hover {
  background: #487fdf;
}
.text-button {
  color: #6792dc;
  background: transparent;
}
.text-button:hover {
  background: #f2f7ff;
}
.architecture {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(110deg, #eef4fd, #f4f6fb);
  border: 1px solid #e4ebf7;
  border-radius: 8px;
  padding: 18px 23px;
  margin-bottom: 24px;
}
.architecture > div {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
}
.architecture strong {
  font-size: 12px;
  font-weight: 600;
}
.architecture small {
  display: block;
  font-size: 10px;
  color: #949fb3;
  margin-top: 5px;
}
.flow-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: #90a3c5;
}
.flow-current .flow-icon {
  color: #5f8ee0;
}
.flow-current strong {
  color: #537cc4;
}
.flow-line {
  color: #afbace;
  font-size: 22px;
  margin: 0 3px;
}
.aws-mini {
  font-weight: 750;
  color: #808998;
  font-size: 18px;
  font-family: Arial, sans-serif;
  letter-spacing: -1px;
  width: 34px;
  text-align: center;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 3px 7px #333e5102;
  margin-bottom: 22px;
  overflow: hidden;
}
.card-header {
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  color: #7e97c1;
  background: #edf3fc;
  white-space: nowrap;
  margin-left: 7px;
  vertical-align: middle;
  letter-spacing: 0;
}
.neutral {
  color: #a09068;
  background: #faf5e9;
}
.good {
  color: #388367;
  background: #eaf7f0;
}
.bad {
  color: #ba6b60;
  background: #fff0ed;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 13px 24px;
  background: #fcfdfe;
  border-top: 1px solid #f0f2f6;
  border-bottom: 1px solid #ebecf3;
  font-size: 9px;
  letter-spacing: 0.65px;
  font-weight: 600;
  color: #a0a3b5;
  white-space: nowrap;
}
td {
  padding: 21px 24px;
  border-bottom: 1px solid #f0f2f6;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.task {
  display: flex;
  align-items: center;
  gap: 12px;
}
.task strong {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.task small {
  display: block;
  font-size: 10px;
  color: #a1a3b4;
  margin-top: 5px;
  max-width: 240px;
  line-height: 1.4;
}
.task-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #edf1f8;
  border-radius: 8px;
  color: #919fb6;
  background: #fafcff;
}
.task-icon svg {
  width: 17px;
  height: 17px;
}
.route-table td:first-child {
  width: 36%;
}
.model-value {
  font-size: 11px;
  color: #585b78;
}
.model-value.not-set {
  color: #a5adbb;
  font-size: 11px;
}
.model-id {
  display: block;
  font:
    9px Consolas,
    monospace;
  color: #a5acb9;
  margin-top: 5px;
  max-width: 200px;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.fallback-value {
  font-size: 11px;
  color: #a3aab7;
}
.edit-button {
  border: 1px solid #e7ecf5;
  background: #fff;
  border-radius: 5px;
  color: #7f95bb;
  font-size: 10px;
  padding: 7px 10px;
  white-space: nowrap;
}
.edit-button:hover {
  background: #f3f7ff;
  color: #5c86d0;
}
.edit-button span {
  margin-left: 8px;
  color: #9fb1d0;
}
.card-foot {
  border-top: 1px solid #f0f2f6;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #9aa2b1;
  background: #fdfeff;
}
.card-foot svg {
  width: 14px;
  height: 14px;
  color: #a2afc6;
}
.small-tag {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a1a8b5;
  border: 1px solid #e9eaf2;
  border-radius: 4px;
  padding: 5px 7px;
}
.policies {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 26px;
  padding: 0 24px 23px;
}
.policies label {
  font-size: 11px;
}
.policies small {
  font-size: 10px;
  line-height: 1.55;
}
.input-unit {
  display: flex;
  border: 1px solid #e3e4ef;
  border-radius: 5px;
  align-items: center;
  overflow: hidden;
}
.input-unit input {
  border: none;
  box-shadow: none !important;
}
.input-unit span {
  font-size: 10px;
  color: #afb6c1;
  padding-right: 12px;
}
.fallback-policy {
  border-left: 1px solid #ebecf4;
  padding-left: 25px;
}
.fallback-policy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}
.fallback-policy strong {
  font-size: 11px;
  font-weight: 600;
}
.fallback-policy p {
  font-size: 10px;
}
.switch {
  display: inline-flex;
  position: relative;
  width: 31px;
  height: 18px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.switch > span {
  pointer-events: none;
  background: #dce1e9;
  border-radius: 15px;
  position: absolute;
  inset: 0;
  transition: background 0.15s;
}
.switch > span:after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0002;
  transition: transform 0.15s;
}
.switch input:checked + span {
  background: #6697ed;
}
.switch input:checked + span:after {
  transform: translateX(13px);
}
.switch input:focus-visible + span {
  outline: 3px solid #b1cdfd;
  outline-offset: 3px;
}
.policy-note {
  border-top: 1px solid #f0f2f6;
  font-size: 10px;
  color: #9fa7b5;
  padding: 13px 24px;
  background: #fdfeff;
}
.save-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  background: #f6f7fbf5;
  backdrop-filter: blur(10px);
  gap: 16px;
}
.save-bar > span {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #a9b0bd;
}
.save-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a9b4ac;
}
.save-bar .changed {
  color: #b79458;
}
.save-bar .changed i {
  background: #d2af68;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.notice {
  background: #eef4fd;
  border: 1px solid #dde6f6;
  color: #6982ad;
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.notice.error {
  background: #fff3ef;
  color: #ad6856;
  border-color: #f5dfd6;
}
.notice.success {
  background: #f0f8f4;
  color: #51866c;
  border-color: #dcece3;
}
.notice button {
  border: 0;
  background: none;
  font-size: 19px;
  color: inherit;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b1b8c3;
  font-size: 9px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 18px;
}
.footer-dot {
  padding: 0 7px;
}
.connection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
}
.provider-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 25px;
  border-bottom: 1px solid #f0f2f6;
}
.provider-header > .pill {
  margin-left: auto;
}
.aws-logo {
  font:
    bold 25px Arial,
    sans-serif;
  letter-spacing: -1.5px;
  color: #414a5a;
  position: relative;
  padding-bottom: 8px;
  width: 43px;
}
.aws-logo span {
  position: absolute;
  width: 32px;
  height: 6px;
  border-bottom: 2px solid #dca354;
  border-radius: 50%;
  bottom: 4px;
  left: 1px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 24px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  color: #646981;
  font-weight: 500;
}
input,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #e2e4ee;
  border-radius: 5px;
  background: #fff;
  color: #5d637d;
  padding: 11px 12px;
  font-size: 12px;
}
input::placeholder {
  color: #b0b2c1;
}
input:focus,
select:focus {
  outline: 0;
  border-color: #a0bef1;
  box-shadow: 0 0 0 3px #6b9cf10c;
}
label small {
  font-size: 10px;
  color: #a3abb8;
  font-weight: 400;
  line-height: 1.6;
}
.full {
  grid-column: 1/-1;
}
.credential-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 25px;
}
.credential-status > div {
  flex: 1;
}
.credential-status strong {
  font-size: 12px;
  font-weight: 600;
}
.credential-status p {
  font-size: 11px;
  margin-top: 5px;
}
.credential-dot {
  width: 7px;
  height: 7px;
  background: #c6b791;
  border-radius: 50%;
  flex-shrink: 0;
}
.credential-dot.ready {
  background: #68a78f;
}
.muted-icon {
  color: #a6b2c7;
}
.credentials-form {
  border-top: 1px solid #f0f2f6;
  padding-bottom: 24px;
}
.credentials-form .hint,
.credentials-form .actions {
  margin-left: 24px;
  margin-right: 24px;
}
.credentials-form .actions {
  margin-top: 18px;
}
.hint {
  font-size: 10px;
  color: #a2a4b6;
  line-height: 1.8;
}
.optional {
  font-weight: 400;
  font-size: 10px;
  color: #aeb5c1;
}
.test-card {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.test-card p {
  font-size: 11px;
}
.test-card small {
  display: block;
  margin-top: 9px;
  color: #9ea5b2;
  font-size: 10px;
}
.side-card {
  border: 1px solid #e4eaf5;
  background: #eff4fb;
  border-radius: 8px;
  padding: 24px;
}
.side-card h3 {
  margin: 12px 0 24px;
  line-height: 1.5;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.setup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.setup-list li {
  display: flex;
  gap: 11px;
  margin-top: 23px;
}
.setup-list li > span {
  width: 23px;
  height: 23px;
  border: 1px solid #d7e0ef;
  background: #f8fbff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #98a6bd;
  font-size: 10px;
  flex-shrink: 0;
}
.setup-list li > span.done {
  color: #408269;
  border-color: #aad4c2;
  background: #e8f6f0;
}
.setup-list strong {
  font-size: 11px;
}
.setup-list p {
  font-size: 11px;
  margin-top: 6px;
  color: #9ba4b4;
}
.inline-link {
  background: none;
  border: 0;
  color: #7f96be;
  font-size: 10px;
  padding: 8px 0 0;
}
.aside-note {
  font-size: 10px;
  color: #a1a9b8;
  line-height: 1.9;
  padding: 17px 8px;
}
.api-overview {
  padding: 25px;
}
.api-overview h2 {
  font-size: 19px;
  margin-top: 10px;
}
.api-overview p {
  max-width: 660px;
}
.base-url {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e3e9f3;
  border-radius: 6px;
  background: #f8fafd;
  padding: 7px 14px;
  margin-top: 22px;
}
.base-url code {
  font:
    12px Consolas,
    monospace;
  color: #727e93;
}
.api-meta {
  display: flex;
  gap: 35px;
  margin-top: 20px;
  color: #a0a2b4;
  font-size: 10px;
}
.api-meta strong {
  font-weight: 500;
  color: #747b95;
  margin-left: 10px;
}
.api-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
}
.endpoints {
  padding: 22px 0;
}
.endpoints > h2 {
  padding: 0 22px 16px;
}
.endpoint {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  padding: 16px 18px;
  background: none;
  text-align: left;
  gap: 12px;
  color: #9fa7b4;
}
.endpoint.active {
  background: #f2f7ff;
  border-left-color: #6a98e7;
}
.endpoint strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #727c8e;
}
.endpoint small {
  display: block;
  font:
    9px Consolas,
    monospace;
  margin-top: 7px;
  color: #9eabc1;
}
.endpoint > span:last-child {
  margin-left: auto;
}
.method {
  font:
    8px Consolas,
    monospace;
  color: #769991;
  background: #edf5f2;
  border-radius: 3px;
  padding: 4px;
}
.endpoints > .hint {
  margin: 20px 22px 0;
}
.code-card .card-header {
  padding-bottom: 16px;
}
.code-tabs {
  display: flex;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid #edf0f5;
}
.code-tabs button {
  background: none;
  border: 0;
  padding: 0 0 12px;
  color: #a0a9ba;
  font-size: 10px;
  border-bottom: 2px solid transparent;
}
.code-tabs .active {
  color: #6f94d3;
  border-bottom-color: #7ea3e2;
}
pre {
  margin: 0;
  padding: 21px 24px;
  background: #fbfcff;
  color: #747f92;
  font:
    11px/1.85 Consolas,
    monospace;
  overflow: auto;
  max-height: 440px;
  tab-size: 2;
}
.integration-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
  gap: 32px;
}
.integration-notes > div {
  display: flex;
  gap: 12px;
}
.integration-notes svg {
  color: #a1aec3;
  width: 17px;
  height: 17px;
}
.integration-notes h3 {
  font-size: 12px;
}
.integration-notes p {
  font-size: 11px;
}
.integration-notes code {
  display: block;
  font:
    9px/1.8 Consolas,
    monospace;
  overflow-wrap: anywhere;
  color: #97a3b7;
  margin-top: 12px;
}
.log-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 23px;
}
.log-stats > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.log-stats span {
  font-size: 11px;
  color: #959dac;
}
.log-stats strong {
  display: block;
  font-size: 27px;
  font-weight: 600;
  margin-top: 9px;
}
.filter {
  width: 165px;
}
.empty {
  text-align: center;
  padding: 50px 24px !important;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  background: #f1f5fc;
  color: #a4b2cb;
  border-radius: 12px;
  margin: 0 auto 17px;
}
.empty h3 {
  font-size: 14px;
  font-weight: 500;
  color: #828da0;
}
.empty p {
  font-size: 11px;
  max-width: 350px;
  margin: auto;
  color: #a6afbe;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #212c4038;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  z-index: 20;
}
.route-dialog {
  width: 510px;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 20px 80px #222e4230;
  max-height: 90vh;
  overflow: auto;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.section-icon {
  display: grid;
  place-items: center;
  background: #eef4fe;
  color: #7292ca;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.close-button {
  background: none;
  border: 0;
  color: #9fa7b4;
  font-size: 25px;
}
.route-dialog h2 {
  font-size: 20px;
}
.route-dialog form {
  margin-top: 24px;
}
.route-dialog label {
  margin: 18px 0;
}
.route-dialog input {
  font-family: Consolas, monospace;
  font-size: 11px;
}
.dialog-note {
  font-size: 11px;
  color: #919caf;
  background: #f5f7fc;
  border-radius: 6px;
  padding: 14px;
  line-height: 1.7;
}
.dialog-actions {
  justify-content: flex-end;
  margin-top: 25px;
}
.route-dialog .hint {
  margin-top: 12px;
  text-align: right;
}
@media (min-width: 1550px) {
  main {
    padding: 40px 45px 0;
  }
  .sidebar {
    width: 250px;
  }
  .shell {
    margin-left: 250px;
  }
  .route-table td {
    padding: 24px;
  }
  .task strong {
    font-size: 13px;
  }
  .task small {
    font-size: 11px;
  }
  .architecture {
    padding: 23px;
  }
  .architecture strong {
    font-size: 13px;
  }
  .architecture small {
    font-size: 11px;
  }
  .card-header {
    padding: 27px;
  }
  .model-value {
    font-size: 12px;
  }
  .model-id {
    font-size: 10px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 198px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    margin-left: 198px;
  }
  main {
    padding: 28px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .task small {
    max-width: 170px;
  }
  .route-table td,
  .route-table th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .architecture {
    gap: 8px;
    padding: 16px;
  }
  .architecture small {
    font-size: 9px;
  }
  .connection-grid {
    grid-template-columns: 1fr;
  }
  .connection-grid > aside {
    display: none;
  }
  .api-grid {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .policies {
    gap: 17px;
  }
  .fallback-policy {
    padding-left: 17px;
  }
}
@media (max-width: 820px) {
  .sidebar {
    width: 64px;
    padding: 22px 10px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace,
  .nav-label,
  .nav-dot,
  .sidebar-note,
  .sidebar-footer {
    display: none;
  }
  nav {
    margin-top: 30px;
  }
  nav button {
    font-size: 0;
    padding: 13px;
    gap: 0;
  }
  nav button svg {
    width: 18px;
    height: 18px;
  }
  .shell {
    margin-left: 64px;
  }
  .topbar {
    height: 60px;
    font-size: 10px;
    padding: 0 20px;
  }
  .top-badge {
    font-size: 9px;
  }
  main {
    padding: 25px 20px 0;
  }
  .heading p {
    font-size: 12px;
  }
  h1 {
    font-size: 24px;
  }
  .heading .button span {
    display: none;
  }
  .architecture {
    flex-wrap: wrap;
  }
  .architecture strong {
    font-size: 10px;
  }
  .architecture small {
    display: none;
  }
  .flow-icon {
    width: 26px;
    height: 26px;
  }
  .architecture > div {
    gap: 7px;
  }
  .flow-line {
    font-size: 15px;
    margin: 0;
  }
  .task small {
    min-width: 160px;
  }
  .route-table td {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .route-table .model-id {
    min-width: 140px;
  }
  .policies {
    grid-template-columns: 1fr 1fr;
  }
  .fallback-policy {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
  }
  .fallback-policy > div {
    margin-bottom: 9px;
  }
  .api-grid {
    grid-template-columns: 1fr;
  }
  .integration-notes {
    grid-template-columns: 1fr;
  }
  .api-meta {
    flex-wrap: wrap;
    gap: 14px;
  }
  .card-header {
    padding: 20px;
    gap: 10px;
  }
  .card-header .button {
    padding: 8px;
    font-size: 10px;
  }
  .pill {
    font-size: 9px;
  }
  .test-card {
    flex-wrap: wrap;
  }
  .save-bar .button {
    font-size: 10px;
  }
  .save-bar > span {
    font-size: 9px;
  }
  footer {
    font-size: 8px;
  }
}
@media (max-width: 520px) {
  main {
    padding: 22px 13px 0;
  }
  .topbar {
    padding: 0 13px;
  }
  .top-badge {
    display: none;
  }
  .architecture {
    display: none;
  }
  .card-header {
    align-items: flex-start;
  }
  .card-header h2 {
    font-size: 14px;
    line-height: 1.6;
  }
  .card-header .pill {
    display: block;
    width: max-content;
    margin: 4px 0 0;
  }
  .card-header p {
    font-size: 11px;
  }
  .form-grid,
  .policies {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-grid {
    padding: 20px;
  }
  .credential-status {
    flex-wrap: wrap;
    padding: 0 20px 20px;
  }
  .provider-header {
    padding: 20px;
    gap: 12px;
  }
  .provider-header > .pill {
    font-size: 8px;
  }
  .provider-header h2 {
    font-size: 14px;
  }
  .aws-logo {
    font-size: 22px;
  }
  .save-bar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .save-bar > span {
    margin-right: auto;
  }
  .log-stats {
    gap: 8px;
  }
  .log-stats > div {
    padding: 13px;
  }
  .log-stats span {
    font-size: 9px;
  }
  .log-stats strong {
    font-size: 22px;
  }
  .base-url {
    padding: 6px 8px;
  }
  .base-url code {
    font-size: 10px;
  }
  .route-dialog {
    padding: 22px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
/* Legible configuration controls and compact-panel layout. */
p {
  color: #777d93;
  font-size: 13px;
}
.heading p {
  font-size: 14px;
}
nav button {
  font-size: 13px;
}
.task strong {
  font-size: 14px;
}
.task small {
  font-size: 12px;
  color: #81869c;
  max-width: 260px;
}
.model-value,
.model-value.not-set,
.fallback-value {
  font-size: 12px;
  color: #7d8199;
}
.model-id {
  font-size: 10px;
  color: #81869c;
}
.edit-button {
  font-size: 12px;
  color: #6681af;
  border-color: #d9e1ef;
}
.button {
  font-size: 12px;
}
th {
  font-size: 10px;
  color: #7e849c;
}
.card-foot,
.policy-note {
  font-size: 11px;
  color: #8689a0;
}
.policies label,
.fallback-policy strong {
  font-size: 12px;
}
.policies small,
.fallback-policy p {
  font-size: 11px;
  color: #86899f;
}
.architecture strong {
  font-size: 13px;
}
.architecture small {
  font-size: 11px;
  color: #808b9f;
}
.eyebrow {
  color: #8390a7;
}
.route-table td:first-child {
  width: 38%;
}
.api-grid > * {
  min-width: 0;
}
.endpoint small {
  overflow-wrap: anywhere;
}
.code-card pre {
  font-size: 12px;
}
.api-meta {
  line-height: 1.8;
}
@media (max-width: 820px) {
  nav button {
    font-size: 0;
  }
  .route-table,
  .route-table tbody {
    display: block;
  }
  .route-table thead {
    display: none;
  }
  .route-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border-top: 1px solid var(--line);
  }
  .route-table td {
    display: block;
    border: 0;
    padding: 0 !important;
    min-width: 0;
  }
  .route-table td:first-child {
    grid-column: 1/-1;
    width: auto;
  }
  .route-table td:last-child {
    grid-column: 1/-1;
    text-align: right;
  }
  .route-table td:nth-child(2):before {
    content: attr(data-label);
    display: block;
    color: #a1a9b6;
    font-size: 10px;
    margin-bottom: 6px;
  }
  .route-table td:nth-child(3):before {
    content: attr(data-label);
    display: block;
    color: #a1a9b6;
    font-size: 10px;
    margin-bottom: 6px;
  }
  .task strong {
    white-space: normal;
    font-size: 13px;
  }
  .task small {
    min-width: 0;
    font-size: 11px;
  }
  .route-table .model-id {
    min-width: 0;
  }
  .route-table .model-value,
  .route-table .fallback-value {
    overflow-wrap: anywhere;
  }
  .heading p {
    font-size: 12px;
  }
  .architecture strong {
    font-size: 11px;
  }
  .api-overview {
    padding: 18px;
  }
  .base-url {
    flex-wrap: wrap;
  }
  .card-header {
    flex-wrap: wrap;
  }
  .api-grid {
    display: block;
  }
  .policies {
    padding-left: 20px;
    padding-right: 20px;
  }
  .credential-status .button {
    margin-left: auto;
  }
  .credential-status {
    flex-wrap: wrap;
  }
}
@media (max-width: 520px) {
  .sidebar {
    width: 52px;
    padding-left: 5px;
    padding-right: 5px;
  }
  .shell {
    margin-left: 52px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .heading h1 {
    font-size: 22px;
  }
  .heading .button {
    padding: 8px;
  }
  .save-bar .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .save-bar .primary {
    white-space: normal;
  }
  .api-meta {
    display: grid;
    gap: 10px;
  }
  .credential-status > div {
    min-width: 120px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar .slash {
    margin: 0 8px;
  }
  .provider-header {
    flex-wrap: wrap;
  }
  .provider-header > .pill {
    margin-left: 0;
  }
  .integration-notes {
    padding: 18px;
  }
  .integration-notes > div {
    min-width: 0;
  }
  .integration-notes > div > div {
    min-width: 0;
  }
  footer {
    gap: 10px;
  }
  .card-header .button {
    font-size: 11px;
  }
  .task-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .task {
    gap: 9px;
  }
  .log-stats {
    grid-template-columns: 1fr;
  }
  .route-dialog {
    padding: 20px;
  }
  .route-dialog .button {
    white-space: normal;
  }
}

/* Language selection remains visible in compact panels. */
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.locale-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #777b94;
}
.locale-control svg {
  width: 16px;
  height: 16px;
}
.locale-control select {
  background: #fff;
  color: #545971;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 22px 7px 9px;
  font-size: 12px;
  cursor: pointer;
  max-width: 130px;
}
.locale-control select:focus-visible {
  outline: 2px solid #b6d0fd;
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .topbar {
    gap: 10px;
  }
  .topbar > div:first-child {
    min-width: 0;
  }
  .topbar-tools {
    gap: 7px;
  }
  .topbar-tools .top-badge {
    display: none;
  }
}
@media (max-width: 520px) {
  .topbar {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px;
  }
  .topbar-tools {
    margin-left: auto;
  }
  .locale-control select {
    font-size: 11px;
    padding: 5px 7px;
  }
  .locale-control svg {
    width: 14px;
    height: 14px;
  }
  .topbar > div:first-child {
    font-size: 10px;
  }
  html[lang='zh-CN'] .eyebrow,
  html[lang='zh-CN'] .nav-label {
    letter-spacing: 1px;
  }
}

.topbar .locale-control {
  flex-direction: row;
  margin: 0;
}
.topbar .locale-control select {
  margin: 0;
  width: auto;
}

.credentials-form > .token-form {
  margin-top: 18px;
}
.credentials-form > .token-form .hint {
  padding-left: 0;
  padding-right: 0;
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  padding: 0 24px 20px;
}
.catalog-note {
  padding: 18px 24px;
  font-size: 12px;
  line-height: 1.8;
  color: #777d93;
}
.catalog-help {
  padding: 24px;
}
.catalog-help .button {
  margin-top: 16px;
}
.catalog-table code {
  display: block;
  max-width: 300px;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.catalog-table .pill {
  white-space: normal;
  margin-left: 0;
}
.route-dialog select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-overflow: ellipsis;
}
.route-dialog {
  max-height: 90vh;
  overflow-y: auto;
}
.catalog-table {
  min-width: 800px;
}
@media (max-width: 520px) {
  .catalog-tools {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px 20px;
  }
}

.aws-diagnostic {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
}
.connection-grid > .catalog-help {
  grid-column: 1/-1;
}

.catalog-tools {
  grid-template-columns: minmax(0, 1fr);
}
.dialog-note p {
  overflow-wrap: anywhere;
}

/* Keep the environment indicator at the bottom after removing the sidebar note. */
.sidebar-footer {
  margin-top: auto;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at top, #eef4fe, #f6f7fb 65%);
}
.login-card {
  width: 100%;
  max-width: 460px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 16px 60px #3f557c10;
}
.login-brand {
  font-size: 24px;
  font-weight: 700;
  color: #548def;
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card > select {
  width: auto;
  margin-bottom: 20px;
}
.login-card form,
.account-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.account-form {
  max-width: 460px;
}
.login-card label {
  display: grid;
  gap: 8px;
}
.login-card .button {
  margin-top: 8px;
}
.sidebar-user {
  margin-top: auto;
  padding-top: 22px;
  position: relative;
}
.current-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: #42465f;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e7effe;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user-identity {
  flex: 1;
  min-width: 0;
}
.user-identity strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-identity small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.user-menu {
  position: absolute;
  bottom: 76px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 25px #25283f18;
  padding: 6px;
}
.user-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  padding: 12px;
  text-align: left;
  color: #535773;
  border-radius: 6px;
}
.user-menu button:hover {
  background: #eff5ff;
  color: var(--purple);
}
.row-actions {
  display: flex;
  gap: 18px;
}
.danger {
  color: #bf4a5b;
}
.token-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.inline-link:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.log-dialog {
  width: min(1100px, 94vw);
  max-width: 1100px;
}
.log-request-id {
  font-family: monospace;
  overflow-wrap: anywhere;
}
.detail-tokens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.detail-tokens > div {
  background: #f5f9ff;
  border: 1px solid #e7effe;
  border-radius: 10px;
  padding: 18px;
}
.detail-tokens span {
  display: block;
  font-size: 12px;
  color: #828b9c;
}
.detail-tokens strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
  color: var(--purple);
}
.detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-columns > section {
  min-width: 0;
}
.log-dialog pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  background: #f7f8fc;
  color: #343b53;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
}
.log-dialog summary {
  cursor: pointer;
  color: var(--purple);
  margin-top: 18px;
}
.dialog-head h2 {
  margin: 0;
}
.route-dialog label {
  margin-top: 15px;
}
@media (max-width: 700px) {
  .detail-columns {
    grid-template-columns: 1fr;
  }
  .detail-tokens {
    gap: 6px;
  }
  .detail-tokens > div {
    padding: 12px;
  }
  .sidebar-user {
    padding-top: 8px;
  }
  .user-menu {
    z-index: 20;
  }
}
.provider-list {
  padding: 0 24px 12px;
}
.provider-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.provider-emblem {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.provider-emblem img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.provider-emblem-openrouter {
  background: #141922;
  border-color: #141922;
}
.provider-description {
  flex: 1;
}
.provider-description h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.provider-description p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.provider-actions {
  display: flex;
  gap: 10px;
}
.catalog-tools {
  display: flex;
  gap: 20px;
}
.catalog-tools label {
  flex: 1;
}
.route-table {
  min-width: 840px;
}
@media (max-width: 700px) {
  .provider-item {
    flex-wrap: wrap;
  }
  .provider-actions {
    width: 100%;
  }
  .provider-actions button {
    flex: 1;
  }
  .catalog-tools {
    flex-direction: column;
  }
}
.user-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.user-summary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.user-summary span,
.user-summary small {
  display: block;
  color: #87899c;
  font-size: 12px;
}
.user-summary strong {
  display: block;
  font-size: 30px;
  color: var(--purple);
  margin: 10px 0;
}
.users-toolbar {
  display: flex;
  gap: 16px;
  padding: 0 24px 22px;
}
.users-toolbar input {
  flex: 1;
}
.users-toolbar select {
  width: 210px;
}
.token-dialog {
  width: min(1050px, 94vw);
  max-width: 1050px;
}
.token-issue {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  align-items: end;
  gap: 16px;
  padding: 18px;
  background: #f7f9fc;
  border-radius: 10px;
}
.token-issue label {
  margin: 0;
}
.new-token {
  background: #eff5ff;
  border: 1px solid #d8e6fe;
  padding: 22px;
  border-radius: 12px;
  margin: 16px 0;
}
.new-token code {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  background: white;
  border-radius: 8px;
  margin: 12px 0;
}
.new-token p {
  font-size: 12px;
}
.new-token .actions {
  align-items: center;
  margin: 12px 0;
}
.row-actions {
  flex-wrap: wrap;
}
.token-dialog table {
  font-size: 12px;
}
@media (max-width: 700px) {
  .user-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .users-toolbar {
    flex-direction: column;
  }
  .users-toolbar select {
    width: 100%;
  }
  .token-issue {
    grid-template-columns: 1fr;
  }
}
.pill.role-admin {
  background: #e8f0fe;
  color: #3b6dc4;
  border: 1px solid #c4d7f8;
}
.pill.role-api {
  background: #e0f4f4;
  color: #087d83;
  border: 1px solid #b0e1e0;
}
.usage-dialog {
  width: min(1150px, 95vw);
  max-width: 1150px;
}
.usage-filters {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 20px 0;
}
.usage-filters label {
  margin: 0;
  max-width: 180px;
}
.usage-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.usage-metrics > div {
  border: 1px solid var(--line);
  background: #f7faff;
  border-radius: 10px;
  padding: 18px;
}
.usage-metrics small,
.usage-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.usage-metrics strong {
  display: block;
  font-size: 26px;
  margin: 10px 0;
  color: var(--purple);
}
.usage-chart {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0 28px;
  overflow-x: auto;
}
.month-bar {
  flex: 1;
  min-width: 44px;
  text-align: center;
  font-size: 11px;
  color: #868f9e;
}
.month-bar small {
  font-size: 10px;
}
.bar-track {
  height: 110px;
  display: flex;
  align-items: end;
  margin: 12px 0;
  background: #f5f7fc;
  border-radius: 4px;
}
.bar-track > div {
  width: 100%;
  background: #6c9ef5;
  border-radius: 4px;
  min-height: 2px;
}
.usage-dialog h3 {
  margin-top: 26px;
}
.usage-dialog table {
  font-size: 12px;
}
@media (max-width: 700px) {
  .usage-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .usage-filters {
    flex-wrap: wrap;
  }
}

.skill-dialog {
  width: min(920px, 94vw);
  max-width: 920px;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.skill-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.skill-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dcdfea;
  border-radius: 8px;
  padding: 12px;
  font: 13px/1.6 monospace;
  resize: vertical;
}
.skill-schemas {
  margin: 14px 0;
}
.skill-schemas summary {
  cursor: pointer;
  color: #4e7fd5;
  margin-bottom: 16px;
}
.skill-grid select {
  max-width: 100%;
}
@media (max-width: 650px) {
  .skill-grid {
    grid-template-columns: 1fr;
  }
}

/* Align AWS authentication controls with the card heading and region fields. */
.credentials-form {
  padding: 24px;
  min-width: 0;
}
.credentials-form > label,
.credentials-form .token-form {
  min-width: 0;
}
.credentials-form input,
.credentials-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.credentials-form .hint,
.credentials-form .actions {
  margin-left: 0;
  margin-right: 0;
}
.credentials-form .token-form .hint {
  margin-top: 12px;
}
.credentials-form > .form-grid {
  padding: 0;
  margin-top: 18px;
}
.credentials-form > .hint {
  margin-top: 16px;
}
.credentials-form .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 820px) {
  .credentials-form {
    padding: 20px;
  }
}

.token-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.token-categories button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 10px 15px;
  font: inherit;
  cursor: pointer;
}
.token-categories button.selected {
  background: #edf3ff;
  border-color: #cdddfb;
  color: var(--purple);
}
.token-categories button span {
  border-radius: 12px;
  background: #e7ecf4;
  padding: 2px 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.token-categories button.selected span {
  background: #dbe7ff;
}
.token-categories button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.cost-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #edf4ff;
  border: 1px solid #d5e3fa;
  border-radius: 12px;
  padding: 22px;
  margin: 20px 0 12px;
}
.cost-summary small,
.cost-summary span {
  display: block;
  color: var(--muted);
}
.cost-summary strong {
  display: block;
  font-size: 30px;
  color: var(--purple);
  margin: 10px 0;
}
.price-editor {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 20px 0;
}
.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 130px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.price-row label {
  margin: 0;
}
.price-editor .actions {
  margin-top: 16px;
}
.month-bar > small {
  display: block;
}
@media (max-width: 650px) {
  .cost-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .price-row {
    grid-template-columns: 1fr 1fr;
  }
  .price-row > span {
    grid-column: 1/-1;
  }
}

.catalog-price {
  min-width: 165px;
}
.catalog-price strong {
  white-space: nowrap;
}
.catalog-price small {
  display: block;
  color: var(--muted, #8792a5);
  margin-top: 5px;
  font-size: 11px;
}
.model-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 22px 0;
}
.model-price-inputs input {
  width: 100%;
}
@media (max-width: 600px) {
  .model-price-inputs {
    grid-template-columns: 1fr;
  }
}

.api-entry-header,
.api-health {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.api-entry-header {
  justify-content: space-between;
}
.api-health {
  font-size: 12px;
  color: #7c869a;
}
.api-overview .base-url {
  gap: 14px;
}
.api-overview .base-url code {
  flex: 1;
  overflow-wrap: anywhere;
  color: #243453;
  font-size: 14px;
}
.api-overview .method {
  font-size: 12px;
  font-weight: 700;
  color: #3e65df;
}

.skill-starters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.skill-starter {
  text-align: left;
  padding: 22px;
  background: linear-gradient(130deg, #ffffff, #f0f5ff);
  border: 1px solid #dae4f3;
  border-radius: 14px;
  color: #14234b;
  cursor: pointer;
}
.skill-starter:hover {
  border-color: #5579ea;
  box-shadow: 0 5px 20px #2448850d;
}
.skill-starter strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  margin: 12px 0;
}
.skill-starter small,
.skill-starter-type {
  color: #677b9c;
  font-size: 12px;
}
.skill-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 20px;
}
.skill-type-filters button {
  border: 1px solid #e2e8f3;
  background: white;
  color: #62718c;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.skill-type-filters button.selected {
  background: #ecf2ff;
  border-color: #bad0ff;
  color: #315dd2;
}
.skill-kind {
  display: inline-block;
  background: #eef3fb;
  color: #4f6386;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.skill-kind.vision {
  color: #147a78;
  background: #e8f6f3;
}
.skill-kind.image {
  color: #7754ad;
  background: #f3ecfb;
}
.skill-kind.document {
  color: #aa7125;
  background: #fcf3e2;
}
.skill-editor-intro {
  padding: 18px 20px;
  background: #f6f8fd;
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  margin-bottom: 24px;
}
.skill-editor-intro .skill-grid label {
  margin-bottom: 0;
}
.skill-editor-intro p {
  margin: 12px 0 0;
}
.skill-contract-note {
  align-self: center;
  font-size: 13px;
}
.skill-contract-note small {
  display: block;
  margin-top: 8px;
  color: #71809a;
}

.skill-section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e0e7f2;
}
.skill-section-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6a7994;
  font: inherit;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
}
.skill-section-tabs button.selected {
  color: #315dd2;
  border-bottom-color: #5076eb;
}
.skill-section-tabs span {
  padding: 2px 7px;
  margin-left: 5px;
  border-radius: 8px;
  background: #eaf0ff;
  font-size: 11px;
}
.template-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.template-apply-row {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-top: 16px;
}
.template-apply-row label {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.template-backdrop {
  z-index: 30;
}
@media (max-width: 650px) {
  .template-apply-row {
    flex-direction: column;
    align-items: stretch;
  }
  .skill-section-tabs button {
    padding: 12px 8px;
  }
}
@media (max-width: 850px) {
  .skill-starters {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
