:root {
  --brand-ink: #0f1e2e;
  --brand-muted: #4f6272;
  --brand-accent: #1f6f8b;
  --brand-accent-strong: #128a68;
  --brand-accent-soft: #deeff7;
  --brand-live-bg: #f1fbf7;
  --brand-live-border: #58b493;
  --brand-doc-bg: #f8fafc;
  --brand-bg: #f4f7fb;
  --brand-surface: #ffffff;
  --brand-border: #d7e0ea;
  --brand-shadow: 0 16px 40px rgba(11, 24, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--brand-bg);
  color: var(--brand-ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 28px 40px;
}

.app-header {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  box-shadow: var(--brand-shadow);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  font-weight: 600;
  font-size: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2a42, #1f6f8b);
  color: #f5fbff;
  letter-spacing: 0.4px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--brand-muted);
}

.brand-links {
  display: flex;
  gap: 12px;
}

.brand-link {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: #f8fbff;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.brand-link:hover {
  background: #eaf4ff;
  border-color: #c2d7eb;
  color: #0b2c44;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 6px 0;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.hero p {
  margin: 0;
  color: var(--brand-muted);
  max-width: 520px;
}

.hero-card {
  min-width: 260px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--brand-shadow);
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brand-muted);
  letter-spacing: 0.12em;
}

.hero-value {
  margin-top: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
}

.docs-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.guide-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  box-shadow: var(--brand-shadow);
  padding: 20px 22px;
}

.guide-card-auth {
  background:
    linear-gradient(135deg, rgba(31, 111, 139, 0.08), rgba(18, 138, 104, 0.05)),
    var(--brand-surface);
}

.guide-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-accent);
  font-weight: 600;
}

.guide-card h2 {
  margin: 8px 0 12px;
  font-size: 20px;
}

.guide-steps,
.guide-points {
  margin: 0;
  padding-left: 18px;
  color: var(--brand-muted);
}

.guide-steps li,
.guide-points li {
  margin: 0 0 10px;
  line-height: 1.5;
}

.guide-points {
  list-style: none;
  padding-left: 0;
}

.guide-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
}

.guide-dot-doc {
  background: #9fb4c7;
}

.guide-dot-live {
  background: var(--brand-live-border);
}

.guide-dot-auth {
  background: var(--brand-accent);
}

.swagger-frame {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  box-shadow: var(--brand-shadow);
  padding: 8px 0 0;
  overflow: hidden;
}

.swagger-ui .topbar {
  display: none;
}

.swagger-ui .scheme-container {
  margin: 0;
  padding: 18px 32px;
  background: linear-gradient(180deg, #eef6fb, #f8fbfd);
  border-bottom: 1px solid var(--brand-border);
  box-shadow: none;
}

.swagger-ui .scheme-container .schemes {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.swagger-ui .auth-wrapper {
  margin: 0;
}

.swagger-ui .btn.authorize {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.swagger-ui .btn.authorize svg {
  fill: currentColor;
}

.scheme-note {
  margin-top: 10px;
  color: var(--brand-muted);
  font-size: 13px;
}

.swagger-ui .info {
  margin: 0;
  padding: 24px 32px 12px;
  border-bottom: 1px solid var(--brand-border);
}

.swagger-ui .info .title {
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--brand-ink);
  font-size: 22px;
}

.swagger-ui .info .base-url {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.swagger-ui .opblock {
  border-radius: 14px;
  border: 1px solid #e1e8f0;
  box-shadow: none;
}

.swagger-ui .opblock-login-priority {
  border-color: #b7d8e6;
  box-shadow: 0 0 0 4px rgba(31, 111, 139, 0.08);
}

.swagger-ui .opblock-login-priority .opblock-summary {
  background: linear-gradient(180deg, rgba(31, 111, 139, 0.07), rgba(31, 111, 139, 0));
}

.swagger-ui .opblock-summary {
  padding: 12px 18px;
}

.swagger-ui .opblock-summary-method {
  border-radius: 10px;
  min-width: 78px;
  text-align: center;
}

.swagger-ui .opblock-tag {
  padding: 12px 24px;
  border-bottom: 1px solid var(--brand-border);
}

.swagger-ui .opblock-tag-section {
  padding: 0 8px 16px;
}

.swagger-ui .responses-wrapper {
  margin-top: 14px;
}

.swagger-ui .responses-inner {
  background: var(--brand-doc-bg);
  border: 1px solid #e5ebf1;
  border-radius: 16px;
  padding: 18px 18px 10px;
}

.swagger-ui .responses-wrapper.has-live-response .responses-inner {
  border-color: #d9e6de;
}

.live-response-shell {
  margin-top: 14px;
  padding: 16px 16px 12px;
  border-radius: 18px;
  border: 2px solid var(--brand-live-border);
  background: linear-gradient(180deg, #f4fcf8, #edf9f3);
  box-shadow: 0 10px 26px rgba(56, 133, 104, 0.12);
}

.live-response-banner {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--brand-live-border);
  color: #0d6c51;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.swagger-ui table.responses-table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.live-response-shell .responses-table {
  margin: 0;
}

.swagger-ui table.live-responses-table {
  border: 1px solid #b7dccb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
}

.swagger-ui table.live-responses-table tbody tr {
  background: linear-gradient(180deg, #ffffff, #fbfffd);
}

.swagger-ui .highlight-code,
.swagger-ui .microlight {
  background: #f6f9fc;
  border-radius: 12px;
}

.swagger-ui .btn {
  border-radius: 10px;
  font-weight: 500;
}

.swagger-ui .btn.execute {
  background: var(--brand-accent-strong);
  border-color: var(--brand-accent-strong);
}

.swagger-ui .btn.execute:hover {
  background: #0f6d54;
  border-color: #0f6d54;
}

.swagger-ui .response-col_status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5 {
  color: var(--brand-ink);
}

code,
.swagger-ui code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 20px 16px 32px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
  }

  .docs-toolbar {
    grid-template-columns: 1fr;
  }
}
