.rest-client-view { width: min(1340px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 72px; color: var(--of-ink); }
.rest-client-view[hidden], .rest-tab-panel[hidden] { display: none !important; }
.rest-breadcrumb { margin: 0 0 14px; color: var(--of-muted); font-size: 12px; }
.rest-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.rest-heading h1 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.rest-heading p { max-width: 760px; margin: 0; color: var(--of-muted); line-height: 1.6; }
.rest-local-note { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(16,185,129,.28); border-radius: 999px; background: rgba(16,185,129,.08); color: #10b981; font-size: 11px; font-weight: 800; }
.rest-panel { border: 1px solid var(--of-border); border-radius: 12px; background: var(--panel); box-shadow: 0 18px 46px rgba(2,10,24,.1); overflow: hidden; }
.rest-request-bar { display: grid; grid-template-columns: 116px minmax(220px,1fr) 150px 104px 90px; gap: 8px; padding: 14px; border-bottom: 1px solid var(--of-border); }
.rest-control, .rest-input, .rest-textarea { width: 100%; border: 1px solid var(--of-border); border-radius: 7px; background: var(--panel-2,var(--panel)); color: var(--of-ink); font: inherit; }
.rest-control, .rest-input { height: 40px; padding: 0 11px; }
.rest-textarea { min-height: 190px; padding: 12px; resize: vertical; font: 13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
.rest-button { height: 40px; padding: 0 14px; border: 1px solid var(--of-border); border-radius: 7px; background: var(--panel); color: var(--of-ink); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.rest-button:hover { border-color: var(--of-blue); color: var(--of-blue); }
.rest-button.primary { border-color: var(--of-blue); background: var(--of-blue); color: #fff; }
.rest-button.danger { color: #ef4444; }
.rest-button:disabled { opacity: .45; cursor: not-allowed; }
.rest-download-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.rest-download-link.is-disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }
.rest-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--of-border); }
.rest-tab { padding: 9px 13px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--of-muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.rest-tab.is-active { border-bottom-color: var(--of-blue); color: var(--of-blue); }
.rest-tab-panel { padding: 16px; }
.rest-row-list { display: grid; gap: 8px; }
.rest-kv-row { display: grid; grid-template-columns: 22px minmax(130px,.7fr) minmax(180px,1fr) 72px; gap: 8px; align-items: center; }
.rest-kv-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--of-blue); }
.rest-add-row { margin-top: 10px; }
.rest-body-toolbar, .rest-auth-grid { display: grid; grid-template-columns: 180px minmax(220px,1fr); gap: 10px; margin-bottom: 10px; }
.rest-auth-fields { display: grid; grid-template-columns: repeat(2,minmax(180px,1fr)); gap: 10px; }
.rest-url-preview { margin-top: 10px; padding: 10px 12px; overflow-wrap: anywhere; border-radius: 7px; background: var(--soft-blue); color: var(--of-muted); font: 12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.rest-response { margin-top: 18px; }
.rest-response-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--of-border); }
.rest-response-meta, .rest-response-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rest-status { padding: 5px 9px; border-radius: 999px; background: var(--soft-blue); color: var(--of-blue); font-size: 12px; font-weight: 900; }
.rest-status.ok { background: rgba(16,185,129,.1); color: #10b981; }
.rest-status.bad { background: rgba(239,68,68,.1); color: #ef4444; }
.rest-response-code { min-height: 270px; max-height: 520px; margin: 0; padding: 16px; overflow: auto; background: var(--panel-2,var(--panel)); color: var(--of-ink); font: 12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.rest-empty { color: var(--of-muted); }
.rest-history { margin-top: 18px; }
.rest-history-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--of-border); }
.rest-history-list { display: grid; }
.rest-history-item { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border: 0; border-bottom: 1px solid var(--of-border); background: transparent; color: var(--of-ink); text-align: left; cursor: pointer; }
.rest-history-item:last-child { border-bottom: 0; }
.rest-history-item:hover { background: var(--soft-blue); }
.rest-history-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rest-cors-note { margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(245,158,11,.25); border-radius: 9px; background: rgba(245,158,11,.07); color: var(--of-muted); font-size: 12px; line-height: 1.55; }
@media (max-width: 900px) { .rest-request-bar { grid-template-columns: 100px minmax(0,1fr); } .rest-request-bar .rest-sample { grid-column: 1/-1; } .rest-request-bar .rest-button { width: 100%; } .rest-heading { flex-direction: column; } }
@media (max-width: 620px) { .rest-client-view { width: min(100% - 24px,1340px); padding-top: 24px; } .rest-request-bar,.rest-kv-row,.rest-body-toolbar,.rest-auth-grid,.rest-auth-fields { grid-template-columns: 1fr; } .rest-kv-row { padding-bottom: 10px; border-bottom: 1px solid var(--of-border); } .rest-tabs { overflow-x: auto; } .rest-response-head { align-items: flex-start; flex-direction: column; } }
