* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #1d2733;
  background: #f4f7f9;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(27, 42, 57, 0.08);
}

.brand {
  color: #28666e;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.muted {
  color: #5f6f7d;
  line-height: 1.5;
}

.compact {
  margin-top: -4px;
  margin-bottom: 16px;
}

.error {
  padding: 10px 12px;
  color: #7d1d1d;
  background: #ffe8e8;
  border: 1px solid #f3b6b6;
  border-radius: 6px;
}

.notice {
  padding: 10px 12px;
  border-radius: 6px;
}

.notice.success {
  color: #205c39;
  background: #e7f7ed;
  border: 1px solid #a9dfbd;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #344554;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #bdc9d4;
  border-radius: 6px;
  font: inherit;
}

textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bdc9d4;
  border-radius: 6px;
  font: inherit;
  background: #ffffff;
}

select {
  height: 42px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #7bb2bd;
  outline-offset: 1px;
}

button {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  background: #28666e;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #1f535a;
}

a {
  color: #28666e;
  font-weight: 700;
}

.links {
  margin: 20px 0 0;
}

.docs-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.admin-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.docs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  background: #28666e;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.button-link.subtle {
  color: #28666e;
  background: #e8f1f3;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions form {
  margin: 0;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-form .wide,
.admin-form .form-actions {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.secret-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin: 0 0 18px;
  padding: 18px;
  color: #173b40;
  background: #eef8f3;
  border: 1px solid #a9dfbd;
  border-radius: 8px;
}

.secret-panel h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.secret-panel p {
  margin: 0;
  color: #315d45;
  line-height: 1.5;
}

.credential-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.credential-list div {
  display: grid;
  gap: 4px;
}

.credential-list dt {
  color: #315d45;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.credential-list dd {
  margin: 0;
}

.credential-list code {
  display: block;
  overflow-x: auto;
  padding: 8px;
  color: #1f2933;
  background: #ffffff;
  border: 1px solid #c8e6d2;
  border-radius: 6px;
}

.doc-section {
  margin: 0 0 18px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d9e1e8;
  border-radius: 8px;
}

.doc-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.doc-section p {
  line-height: 1.55;
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  flex-wrap: wrap;
}

.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 28px;
  padding: 0 8px;
  color: #ffffff;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.method.get {
  background: #28666e;
}

.method.post {
  background: #7a4e20;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

pre {
  overflow-x: auto;
  padding: 14px;
  color: #1f2933;
  background: #f1f5f8;
  border: 1px solid #d9e1e8;
  border-radius: 6px;
  line-height: 1.45;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.inline-pre {
  max-width: 360px;
  margin: 0;
  padding: 8px;
  white-space: pre-wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.status.active {
  color: #205c39;
  background: #e7f7ed;
}

.status.disabled {
  color: #7d1d1d;
  background: #ffe8e8;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #d9e1e8;
  vertical-align: top;
}

th {
  color: #344554;
  background: #f7fafc;
}

@media (max-width: 680px) {
  .docs-header {
    display: block;
  }

  .button-link {
    margin-top: 14px;
  }

  .doc-section {
    padding: 16px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .secret-panel {
    grid-template-columns: 1fr;
  }
}
