:root {
  color-scheme: light;
  --primary: #6457e6;
  --primary-strong: #5145cd;
  --primary-soft: #f0efff;
  --primary-border: #d9d5ff;
  --ink: #1d1d27;
  --ink-soft: #4e4e5f;
  --muted: #737386;
  --line: #e6e6ee;
  --line-strong: #d6d6e1;
  --surface: #ffffff;
  --surface-subtle: #f8f8fb;
  --canvas: #f4f5f9;
  --success: #14865c;
  --success-soft: #e9f8f1;
  --warning: #a5620c;
  --warning-soft: #fff6e3;
  --danger: #c23b4b;
  --danger-soft: #fff0f2;
  --code-bg: #171821;
  --shadow: 0 10px 30px rgba(31, 31, 51, 0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  font-family:
    SUIT, Pretendard, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  border: 0;
}

code,
.code-input,
.response-output {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.skip-link:focus {
  opacity: 1;
  outline: 3px solid var(--primary-border);
  pointer-events: auto;
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 220, 230, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  width: min(1440px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #7d72f1, #5547d4);
  box-shadow: 0 7px 16px rgba(100, 87, 230, 0.24);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  place-items: center;
}

.brand__copy {
  display: grid;
  line-height: 1.15;
}

.brand__copy strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand__copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__nav a {
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.topbar__nav a:hover {
  background: var(--surface-subtle);
  color: var(--primary-strong);
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.72fr);
  gap: 48px;
  align-items: end;
  padding: 8px 4px 28px;
}

.eyebrow {
  display: flex;
  margin-bottom: 13px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.type-badge {
  display: inline-flex;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.type-badge--api {
  background: #e9f4ff;
  color: #176eb1;
}

.type-badge--ui {
  background: #f1edff;
  color: #6a4bc0;
}

.type-badge--storage {
  background: #e8f8f3;
  color: #14765c;
}

.type-badge--compute {
  background: #fff2e7;
  color: #a15713;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.hero__main > p {
  max-width: 700px;
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.hero__meta {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
}

.hero__meta div {
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid var(--line);
}

.hero__meta div:first-child {
  border-left: 0;
}

.hero__meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__meta dd {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.hero__meta code {
  font-size: 10px;
  font-weight: 500;
}

.workflow-strip {
  display: grid;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid #4285c5;
  border-radius: var(--radius-md);
  grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  background: var(--surface);
}

.workflow-strip--ui {
  border-left-color: #7559c5;
}

.workflow-strip--storage {
  border-left-color: #168165;
}

.workflow-strip--compute {
  border-left-color: #b6661d;
}

.workflow-strip__intro h2 {
  margin: 2px 0 0;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.workflow-strip__intro p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.workflow-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.workflow-shortcut {
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-subtle);
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.workflow-shortcut:hover,
.workflow-shortcut.is-selected,
.workflow-shortcut[aria-pressed="true"] {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.workflow-shortcut:hover {
  transform: translateY(-1px);
}

.workflow-shortcut > span {
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
}

.workflow-shortcut strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-shortcut small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel__heading {
  display: flex;
  padding: 20px 22px 16px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel__heading h2,
.contract-panel h2 {
  margin: 2px 0 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.section-kicker {
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.auth-panel {
  margin-bottom: 18px;
}

.auth-panel__heading {
  padding-bottom: 10px;
}

.auth-state {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.auth-state[data-state="authenticated"] {
  border-color: #b9e5d3;
  background: var(--success-soft);
  color: var(--success);
}

.auth-state[data-state="anonymous"] {
  border-color: #f0d9af;
  background: var(--warning-soft);
  color: var(--warning);
}

.auth-state[data-state="error"] {
  border-color: #efc6cc;
  background: var(--danger-soft);
  color: var(--danger);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.auth-grid {
  display: grid;
  padding: 8px 22px 22px;
  grid-template-columns: minmax(250px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
}

.auth-modes {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  align-content: start;
  gap: 8px;
}

.auth-modes legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 58px;
  padding: 11px 12px 11px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.choice-card input {
  position: absolute;
  left: 13px;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
}

.choice-card span {
  display: grid;
  min-width: 0;
}

.choice-card strong {
  font-size: 12px;
}

.choice-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.auth-detail {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
}

.inline-notice {
  margin: 0 0 10px;
  padding: 8px 9px;
  border: 1px solid #f0d9af;
  border-radius: 7px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 10px;
}

.session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.session-summary > div:first-child {
  display: grid;
  min-width: 0;
}

.session-summary strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button-row {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.button {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--primary,
.button--execute {
  background: var(--primary);
  color: #fff;
}

.button--primary:hover:not(:disabled),
.button--execute:hover:not(:disabled) {
  background: var(--primary-strong);
}

.button--secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
}

.permission-strip {
  display: flex;
  min-height: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 5px;
}

.permission-chip {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 650;
}

.permission-strip:empty::before {
  content: "로그인 후 발급된 permission이 표시됩니다.";
  color: var(--muted);
  font-size: 10px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.code-input,
input[type="text"],
input[type="search"],
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: 0;
}

input[type="text"],
input[type="search"],
select {
  height: 38px;
  padding: 0 11px;
  font-size: 12px;
}

select {
  cursor: pointer;
}

.code-input {
  display: block;
  padding: 11px 12px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.6;
}

.token-input {
  min-height: 84px;
}

.field-help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.action-panel {
  position: sticky;
  top: 82px;
  min-width: 0;
  overflow: hidden;
}

.count-badge {
  display: grid;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  place-items: center;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.action-filters {
  display: grid;
  padding: 0 16px 14px;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 8px;
}

.search-box {
  position: relative;
  display: block;
}

.search-box > span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-54%);
}

.search-box input {
  padding-left: 31px;
}

.action-list {
  display: grid;
  max-height: 600px;
  padding: 4px 10px 12px;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #d4d4df transparent;
  scrollbar-width: thin;
}

.action-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  grid-template-columns: 48px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.action-item:hover {
  background: var(--surface-subtle);
}

.action-item.is-selected,
.action-item[aria-pressed="true"] {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}

.method-badge {
  display: inline-flex;
  width: 48px;
  min-height: 24px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  background: #edf3ff;
  color: #3466ad;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.method-badge--post {
  background: var(--success-soft);
  color: var(--success);
}

.method-badge--put,
.method-badge--patch {
  background: var(--warning-soft);
  color: var(--warning);
}

.method-badge--delete {
  background: var(--danger-soft);
  color: var(--danger);
}

.action-item__copy {
  display: grid;
  min-width: 0;
}

.action-item__copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-item__copy code {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-item__contract {
  display: flex;
  min-width: 0;
  margin-top: 5px;
  gap: 4px;
}

.action-item__contract span {
  display: block;
  min-width: 0;
  padding: 2px 5px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-item__contract span:first-child {
  flex: 0 1 auto;
  color: var(--primary-strong);
}

.action-item__contract span:last-child {
  flex: 1 1 auto;
}

.action-item__arrow {
  color: #a0a0af;
  font-size: 18px;
}

.empty-state {
  margin: 8px 16px 20px;
  padding: 22px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.request-panel {
  min-width: 0;
  overflow: hidden;
}

.request-heading {
  align-items: center;
}

.selected-contract {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.selected-contract span {
  display: inline-flex;
  max-width: 240px;
  padding: 4px 7px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#request-form {
  padding: 2px 22px 22px;
}

.request-line {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 9px;
}

.method-field select {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 750;
}

.path-field input {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.contract-line {
  display: flex;
  min-height: 34px;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 10px;
}

.contract-line code {
  color: var(--ink-soft);
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
}

.editor-tabs {
  display: flex;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.editor-tab {
  position: relative;
  padding: 9px 1px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.editor-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.editor-tab.is-active {
  color: var(--primary-strong);
}

.editor-tab.is-active::after {
  background: var(--primary);
}

.editor-toolbar {
  display: flex;
  min-height: 41px;
  padding: 7px 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.editor-toolbar label {
  margin-right: auto;
}

.editor-toolbar select {
  width: 210px;
  height: 28px;
  padding: 0 8px;
  font-size: 10px;
}

.text-button {
  padding: 5px 7px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.text-button:hover:not(:disabled) {
  background: var(--surface-subtle);
  color: var(--primary-strong);
}

.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.body-input {
  min-height: 220px;
  border-color: #30313d;
  background: var(--code-bg);
  color: #e8e8ef;
  caret-color: #fff;
  tab-size: 2;
}

.body-input:disabled {
  border-color: var(--line);
  background: #f3f3f7;
  color: #9191a0;
  cursor: not-allowed;
}

.request-actions {
  display: flex;
  margin-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.request-actions p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.button--execute {
  min-width: 130px;
  min-height: 40px;
  box-shadow: 0 7px 16px rgba(100, 87, 230, 0.18);
}

.response-panel {
  margin-top: 18px;
  overflow: hidden;
}

.response-heading {
  padding-bottom: 14px;
  align-items: center;
}

.response-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.response-view-switch {
  display: inline-flex;
  margin-right: 3px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-subtle);
}

.response-view-switch .text-button {
  min-width: 38px;
  padding: 3px 6px;
}

.response-view-switch .text-button.is-active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 31, 51, 0.08);
  color: var(--primary-strong);
}

.response-status {
  display: inline-flex;
  min-width: 64px;
  min-height: 25px;
  margin-right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.response-status[data-tone="success"] {
  background: var(--success-soft);
  color: var(--success);
}

.response-status[data-tone="client-error"],
.response-status[data-tone="server-error"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.response-status[data-tone="pending"] {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.response-meta {
  min-height: 34px;
  padding: 9px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid #2a2b35;
  background: #f9f9fb;
  color: var(--muted);
  font-size: 10px;
}

.response-output {
  min-height: 270px;
  max-height: 560px;
  margin: 0;
  padding: 18px 22px 24px;
  overflow: auto;
  background: var(--code-bg);
  color: #e7e7ee;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.contract-panel {
  display: grid;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 30px;
  background: rgba(255, 255, 255, 0.6);
}

.contract-panel p {
  max-width: 400px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.permission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.permission-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.permission-card code {
  display: block;
  overflow: hidden;
  color: var(--primary-strong);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.permission-card p {
  min-height: 32px;
  margin: 5px 0 8px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.permission-card span {
  color: var(--muted);
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(22, 22, 33, 0.24);
  color: #fff;
  font-size: 11px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(100, 87, 230, 0.22);
  outline-offset: 2px;
}

.code-input:focus,
input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
  border-color: var(--primary);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .workflow-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .workspace {
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  }

  .action-filters {
    grid-template-columns: 1fr;
  }

  .action-list {
    max-height: 650px;
  }
}

@media (max-width: 860px) {
  .page-shell,
  .topbar__inner {
    width: min(100% - 28px, 720px);
  }

  .topbar__nav a {
    display: none;
  }

  .topbar__nav a:first-child {
    display: inline-flex;
  }

  .auth-grid,
  .workspace,
  .contract-panel {
    grid-template-columns: 1fr;
  }

  .workflow-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-panel {
    position: static;
  }

  .action-filters {
    grid-template-columns: minmax(0, 1fr) 140px;
  }

  .action-list {
    max-height: 330px;
  }

  .contract-panel {
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .topbar__inner {
    width: calc(100% - 20px);
  }

  .page-shell {
    padding-top: 24px;
  }

  .brand__copy small {
    display: none;
  }

  .hero {
    padding-right: 2px;
    padding-left: 2px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .hero__meta div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero__meta div:first-child {
    border-top: 0;
  }

  .workflow-strip {
    padding: 16px;
  }

  .workflow-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel__heading,
  .auth-grid,
  #request-form,
  .contract-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .session-summary,
  .request-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .action-filters,
  .request-line {
    grid-template-columns: 1fr;
  }

  .action-list {
    max-height: 360px;
  }

  .selected-contract {
    display: none;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .editor-toolbar label {
    width: 100%;
  }

  .editor-toolbar select {
    width: min(100%, 230px);
  }

  .request-actions .button {
    width: 100%;
  }

  .response-heading {
    align-items: flex-start;
  }

  .response-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .permission-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
