:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202735;
  background: #f5f6f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202735;
  --muted: #788293;
  --line: #e6e9ee;
  --surface: #fff;
  --canvas: #f5f6f8;
  --sidebar: #161d2b;
  --sidebar-muted: #9ca7b8;
  --blue: #4169e1;
  --green: #16835d;
  --red: #cc4a4a;
  --shadow: 0 4px 18px rgba(25, 37, 57, .045);
}
* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(65,105,225,.2); outline-offset: 1px; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; width: 258px; flex-direction: column; padding: 24px 15px 15px; background: var(--sidebar); color: #fff; }
.product-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 27px; color: white; font-size: 13px; font-weight: 700; text-decoration: none; }
.product-brand small { display: block; margin-top: 5px; color: #7f8ca0; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #496ee1; font-size: 12px; letter-spacing: -.5px; }
.sidebar-caption { padding: 0 10px 10px; color: #728096; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.controller-list { flex: 1; overflow-y: auto; padding-right: 2px; }
.controller-group { margin: 3px 0; }
.controller-group summary { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 7px; color: #d1d8e3; cursor: pointer; font-size: 11px; font-weight: 600; list-style: none; }
.controller-group summary::-webkit-details-marker { display: none; }
.controller-group summary:hover, .controller-group[open] summary { background: rgba(255,255,255,.06); color: #fff; }
.group-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: rgba(103,132,211,.18); color: #a8bcff; font-size: 10px; }
.group-count { margin-left: auto; color: #78849a; font-size: 9px; }
.group-chevron { color: #77849a; font-size: 11px; transition: transform .18s; }
.controller-group[open] .group-chevron { transform: rotate(90deg); }
.endpoint-list { display: grid; gap: 2px; margin: 3px 0 8px 15px; padding-left: 13px; border-left: 1px solid #31394a; }
.endpoint-link { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 7px; border: 0; border-radius: 5px; background: transparent; color: #aeb8c7; cursor: pointer; text-align: left; }
.endpoint-link:hover { background: rgba(255,255,255,.055); color: white; }
.endpoint-link.is-active { background: rgba(74,111,226,.19); color: white; }
.method-mini { width: 30px; flex: 0 0 30px; font-size: 8px; font-weight: 800; letter-spacing: .25px; }
.method-mini.get, .method-text.get { color: #64c99c; }
.method-mini.post, .method-text.post { color: #78a0ff; }
.method-mini.put, .method-text.put { color: #efb75e; }
.method-mini.patch, .method-text.patch { color: #c18cf5; }
.method-mini.delete, .method-text.delete { color: #ef8585; }
.endpoint-path { overflow: hidden; font: 10px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 15px 9px 5px; border-top: 1px solid #2c3545; color: #8692a5; font-size: 9px; }
.sidebar-dot, .state-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa5b5; }
.sidebar-dot { background: #6fc99d; }
.main-area { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; z-index: 10; top: 0; height: 61px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8a94a3; font-size: 11px; }
.breadcrumbs strong { color: #3f4a5d; font-weight: 600; }
.crumb-slash { color: #bec4ce; }
.connection-state { display: flex; align-items: center; gap: 8px; color: #7a8595; font-size: 10px; }
.connection-state.is-online .state-dot { background: #24a575; box-shadow: 0 0 0 3px #e4f4ed; }
.connection-state.is-offline .state-dot { background: #d45454; box-shadow: 0 0 0 3px #f9eaea; }
.mobile-menu { display: none; }
.workspace-content { max-width: 1600px; min-height: calc(100vh - 61px); display: flex; flex-direction: column; padding: 36px 36px 18px; margin: auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: #6078bf; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: #1f2938; font-size: clamp(24px, 3vw, 31px); letter-spacing: -.9px; }
.page-description { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.api-origin { display: grid; gap: 6px; justify-items: end; padding-bottom: 3px; }
.origin-label { color: #98a1af; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.api-origin input { width: min(390px, 70vw); padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #526075; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-origin input::placeholder { color: #9aa4b3; }
.endpoint-empty { flex: 1; display: grid; min-height: 310px; align-content: center; justify-items: center; padding: 30px; border: 1px dashed #dce1e8; border-radius: 11px; background: rgba(255,255,255,.45); text-align: center; }
.empty-symbol { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 14px; border-radius: 13px; background: #ebeffb; color: #526fd0; font-size: 23px; }
.endpoint-empty h2 { margin: 0 0 8px; font-size: 15px; }
.endpoint-empty p { max-width: 320px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.endpoint-workspace { flex: 1; }
.endpoint-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 4px 0 20px; }
.endpoint-kicker { margin-bottom: 6px; color: #6578ae; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.endpoint-heading h2 { margin: 0 0 5px; color: #202a39; font-size: 18px; letter-spacing: -.25px; }
.endpoint-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.mapping-tag { padding: 6px 9px; border: 1px solid #e1e5ec; border-radius: 5px; color: #7c8797; font-size: 9px; }
.request-response-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: start; gap: 16px; }
.panel { min-width: 0; overflow: hidden; border: 1px solid #e7eaf0; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #edf0f4; }
.panel-heading > div { display: flex; align-items: center; gap: 9px; }
.panel-index { color: #a4adba; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.panel-heading h3 { margin: 0; color: #303a49; font-size: 11px; font-weight: 700; }
.panel-caption { color: #9aa3b0; font-size: 9px; }
.request-controls { padding: 15px 16px 12px; }
.control-label { display: block; margin-bottom: 6px; color: #8792a1; font-size: 8px; font-weight: 800; letter-spacing: .8px; }
.url-row { display: flex; gap: 7px; }
.url-row select, .url-row input { height: 37px; border: 1px solid #e2e6ec; border-radius: 5px; background: white; color: #465268; }
.url-row select { width: 74px; flex: 0 0 74px; padding: 0 8px; font-size: 10px; font-weight: 800; }
.method-text { color: var(--green); }
.url-row input { min-width: 0; flex: 1; padding: 0 9px; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.send-button { display: flex; height: 37px; align-items: center; gap: 9px; padding: 0 13px; border: 0; border-radius: 5px; background: var(--blue); color: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.send-button:hover { background: #3458ca; }
.send-button:disabled { opacity: .65; cursor: wait; }
.path-params { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.path-param { display: flex; align-items: center; gap: 6px; color: #7f8998; font-size: 9px; }
.path-param input { width: 100px; height: 27px; padding: 0 7px; border: 1px solid #e2e6ec; border-radius: 4px; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.request-editors { display: grid; gap: 10px; margin-top: 15px; }
.editor-block { min-width: 0; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.editor-heading label { color: #525e70; font-size: 9px; font-weight: 700; }
.editor-heading span { color: #a1aab6; font-size: 8px; }
.editor-block textarea { display: block; width: 100%; min-height: 58px; resize: vertical; padding: 9px 10px; border: 1px solid #e4e8ee; border-radius: 5px; background: #fafbfd; color: #414d60; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; tab-size: 2; }
.body-editor-block textarea { min-height: 180px; }
.editor-block textarea:disabled { color: #aeb6c0; background: #f5f6f8; }
.editor-hint { margin: 6px 0 0; color: #8a95a4; font-size: 9px; line-height: 1.5; }
.editor-hint code { color: #596a8c; }
.upload-block input[type="file"] { width: 100%; padding: 9px; border: 1px dashed #d8dee8; border-radius: 5px; background: #fafbfd; color: #687589; font-size: 10px; }
.request-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #edf0f4; }
.request-tip { color: #9aa3b0; font-size: 8px; }
.clear-button, .copy-button { padding: 4px 6px; border: 0; background: transparent; color: #6078bf; cursor: pointer; font-size: 9px; font-weight: 600; }
.response-summary { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-bottom: 1px solid #edf0f4; }
.status-badge { padding: 5px 8px; border-radius: 4px; background: #e8f5ee; color: #178557; font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.status-badge.is-error { background: #fff0ee; color: #c54f48; }
.response-metric { display: grid; gap: 3px; }
.response-metric strong { color: #455165; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.response-metric small { color: #a1aab6; font-size: 7px; font-weight: 800; letter-spacing: .7px; }
.response-waiting { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 25px; color: #98a2b1; text-align: center; }
.response-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #f0f2f6; color: #75839a; font-size: 18px; }
.response-waiting p { max-width: 200px; margin: 0; font-size: 10px; line-height: 1.6; }
.response-result { min-width: 0; }
.response-headers-block { padding: 13px 15px; border-bottom: 1px solid #edf0f4; }
.response-body-block { padding: 13px 15px 16px; }
.response-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.response-section-title h4 { margin: 0; color: #707c8d; font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.response-result pre { max-height: 145px; overflow: auto; margin: 0; padding: 10px; border: 1px solid #edf0f4; border-radius: 5px; background: #fafbfd; color: #445269; font: 9px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.response-body-block pre { max-height: min(55vh, 520px); min-height: 130px; background: #f9fafc; }
.request-error { margin-top: 12px; padding: 10px 12px; border: 1px solid #f0d8d5; border-radius: 6px; background: #fff7f6; color: #a4443d; font-size: 10px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 14px; padding: 18px 2px 0; margin-top: auto; color: #9ba4b1; font-size: 8px; }
.connection-dialog { width: min(410px, calc(100% - 30px)); padding: 0; border: 1px solid #e4e8ee; border-radius: 13px; background: white; box-shadow: 0 25px 90px rgba(20,29,44,.25); }
.connection-dialog::backdrop { background: rgba(14,22,35,.5); backdrop-filter: blur(3px); }
.connection-content { display: flex; min-height: 310px; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; }
.connection-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 17px; border-radius: 12px; background: #edf1ff; color: #4969cf; font-size: 23px; }
.connection-content .eyebrow { margin-bottom: 7px; }
.connection-content h2 { margin-bottom: 8px; font-size: 19px; letter-spacing: -.4px; }
.connection-content p:not(.eyebrow) { min-height: 34px; margin: 0 0 8px; color: #788394; font-size: 10px; line-height: 1.6; }
.connection-content .loader { width: 18px; height: 18px; margin: 7px 0 17px; border: 2px solid #dce3f4; border-top-color: #4c6bd4; border-radius: 50%; animation: spin .8s linear infinite; }
.connection-dialog:not([aria-busy="true"]) .loader { display: none; }
.retry-button { min-width: 125px; height: 35px; padding: 0 14px; border: 0; border-radius: 5px; background: var(--blue); color: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.retry-button:hover { background: #3458ca; }
.retry-button:disabled { background: #9babe0; cursor: wait; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1120px) {
  .sidebar { width: 230px; }
  .main-area { margin-left: 230px; }
  .workspace-content { padding: 29px 24px 16px; }
  .topbar { padding-inline: 24px; }
  .request-response-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sidebar { width: 258px; box-shadow: 9px 0 30px rgba(10,18,31,.15); transform: translateX(-105%); transition: transform .22s; }
  .sidebar.is-open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { height: 55px; justify-content: flex-start; gap: 13px; padding-inline: 15px; }
  .mobile-menu { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; font-size: 13px; }
  .connection-state { margin-left: auto; font-size: 9px; }
  .workspace-content { min-height: calc(100vh - 55px); padding: 23px 15px 13px; }
  .page-heading { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 23px; }
  .api-origin { justify-items: start; }
  .endpoint-heading { align-items: start; }
  .mapping-tag { margin-top: 3px; white-space: nowrap; }
  .panel-heading { padding-inline: 12px; }
  .request-controls { padding-inline: 12px; }
  .url-row { flex-wrap: wrap; }
  .url-row select { width: 68px; flex-basis: 68px; }
  .url-row input { flex-basis: calc(100% - 150px); }
  .send-button { margin-left: auto; }
  .workspace-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 420px) {
  .breadcrumbs { gap: 6px; font-size: 9px; }
  .endpoint-heading h2 { max-width: 245px; font-size: 16px; overflow-wrap: anywhere; }
  .mapping-tag { font-size: 8px; }
  .panel-caption { font-size: 8px; }
  .url-row input { order: 3; flex: 1 0 100%; }
  .send-button { min-width: 78px; }
  .request-tip { max-width: 190px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
