:root {
    color-scheme: light;
    --ink: #172635;
    --muted: #617282;
    --line: #dce5eb;
    --paper: #ffffff;
    --background: #f3f7f9;
    --green: #0e766e;
    --green-dark: #075b55;
    --blue: #e9f4f4;
    --red: #a43838;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); line-height: 1.55; }
a { color: var(--green-dark); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px max(24px, calc((100% - 1180px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 550; letter-spacing: .04em; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: var(--green); border-radius: 12px; font-size: 20px; }
nav { display: flex; gap: 6px; }
nav a { padding: 9px 13px; color: var(--muted); text-decoration: none; border-radius: 8px; font-weight: 650; }
nav a:hover, nav a.active { color: var(--green-dark); background: var(--blue); }
.shell { max-width: 1180px; min-height: calc(100vh - 130px); margin: 0 auto; padding: 36px 24px 54px; }
.footer { padding: 17px 24px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); background: #fff; font-size: 12px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 7px 0 10px; font-size: clamp(29px, 4vw, 42px); line-height: 1.15; letter-spacing: -.035em; }
h2 { margin: 0 0 12px; font-size: 19px; }
h3 { margin: 0 0 8px; font-size: 15px; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: var(--green-dark); background: var(--blue); border-radius: 99px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.dot { width: 7px; height: 7px; background: #1b9b77; border-radius: 50%; }
.notice { margin: 20px 0; padding: 14px 16px; border: 1px solid #d5e7e5; border-left: 4px solid var(--green); border-radius: 8px; background: #f7fbfb; color: #39545a; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card, .panel { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px rgba(30, 52, 70, .035); }
.api-card { display: flex; min-height: 205px; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.api-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30, 52, 70, .09); }
.api-card p { margin: 8px 0 18px; color: var(--muted); font-size: 14px; }
.api-card .card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.method { padding: 4px 8px; color: #075b55; background: #e5f5ee; border-radius: 5px; font: 800 11px/1.5 "Segoe UI", sans-serif; letter-spacing: .04em; }
.endpoint { color: var(--muted); font: 12px/1.5 Consolas, monospace; overflow-wrap: anywhere; }
.columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.section-title { margin: 0 0 14px; }
.list { margin: 0; padding-left: 21px; color: #425563; }
.list li { margin: 7px 0; }
.field-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.field-table th, .field-table td { padding: 10px 9px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.field-table th { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.field-table td:first-child { font-family: Consolas, monospace; color: #254a58; }
label { display: block; margin: 13px 0 6px; font-size: 13px; font-weight: 700; }
input[type="text"], input[type="password"], input[type="url"], textarea, select {
    width: 100%; padding: 11px 12px; color: var(--ink); background: #fff; border: 1px solid #cbd7df; border-radius: 7px; font: 14px/1.5 Consolas, "Segoe UI", monospace;
}
textarea { min-height: 245px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid #cde8e5; border-color: var(--green); }
.help { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; color: #fff; background: var(--green); border: 0; border-radius: 7px; font: 750 13px "Segoe UI", sans-serif; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--green-dark); }
.button.secondary { color: var(--ink); background: #edf2f5; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.error, .success { margin: 16px 0; padding: 13px 15px; border-radius: 8px; font-size: 14px; }
.error { color: #842626; background: #fff1f0; border: 1px solid #f1cfcc; }
.success { color: #155e47; background: #eaf8f1; border: 1px solid #c9ead9; }
.response { overflow: auto; max-height: 560px; margin: 0; padding: 16px; color: #e9f1f3; background: #15252f; border-radius: 8px; font: 12px/1.6 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.subtle { color: var(--muted); font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 17px; color: var(--muted); text-decoration: none; font-size: 13px; }
.empty { padding: 20px; color: var(--muted); background: #f8fafb; border: 1px dashed #cbd7df; border-radius: 8px; }
.inline-form { display: inline; }
.section-gap { margin-top: 24px; }
@media (max-width: 850px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .columns { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .topbar { align-items: flex-start; flex-direction: column; padding: 12px 18px; } .shell { padding: 25px 16px 40px; } .hero { align-items: flex-start; flex-direction: column; } .grid { grid-template-columns: 1fr; } .api-card { min-height: 175px; } .field-table { display: block; overflow-x: auto; } }
