:root {
  --bg: #f3efe6;
  --card: rgba(255, 253, 249, 0.92);
  --ink: #1d2433;
  --muted: #5e6472;
  --line: rgba(29, 36, 51, 0.12);
  --accent: #cb5f2d;
  --accent-strong: #9e441c;
  --accent-soft: #f3d6c7;
  --shadow: 0 24px 60px rgba(29, 36, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(203, 95, 45, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(83, 124, 240, 0.1), transparent 24%),
    linear-gradient(180deg, #fcfaf6 0%, var(--bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.shell--centered {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 48px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card,
.form-card {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.lead,
.muted,
li,
label span,
input,
select,
button {
  font-family: "Segoe UI", sans-serif;
}

.lead,
.muted {
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  max-width: 720px;
}

.feature-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.access-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

label {
  display: grid;
  gap: 8px;
}

input,
select,
button {
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 1rem;
}

input,
select {
  background: #fffdf9;
}

button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
}

.alert {
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff0eb;
  border: 1px solid #efc6b7;
  color: #8a3512;
  font-family: "Segoe UI", sans-serif;
}

.docs-header {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.docs-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.docs-actions form {
  margin: 0;
}

.info-strip {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid rgba(158, 68, 28, 0.18);
  border-radius: 20px;
  padding: 14px 18px;
  color: #6e422d;
  font-family: "Segoe UI", sans-serif;
}

.swagger-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 40px;
}

#swagger-ui {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.swagger-ui .topbar,
.swagger-ui .scheme-container,
.swagger-ui .authorization__btn,
.swagger-ui .btn.authorize,
.swagger-ui .try-out,
.swagger-ui .btn.try-out__btn {
  display: none !important;
}

.swagger-ui .information-container {
  padding-top: 28px;
}

.swagger-ui .wrapper {
  max-width: 100%;
  padding: 0 20px 32px;
}

.swagger-ui .info .title,
.swagger-ui .opblock-tag,
.swagger-ui .opblock-summary-path,
.swagger-ui .parameter__name,
.swagger-ui table thead tr td,
.swagger-ui table thead tr th {
  font-family: Georgia, "Times New Roman", serif;
}

.swagger-ui .opblock.opblock-post,
.swagger-ui .opblock.opblock-get {
  border-color: rgba(29, 36, 51, 0.1);
}

@media (max-width: 720px) {
  .hero-card,
  .form-card {
    padding: 24px;
  }

  .docs-header {
    flex-direction: column;
  }

  .docs-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}
