@font-face {
  font-display: swap;
  font-family: "VelDocMethod";
  src:
    url("../fonts/BMJUA_ttf.ttf") format("truetype"),
    url("../fonts/BMJUA_otf.otf") format("opentype");
}

:root {
  color-scheme: light;
  --side-menu-width: 280px;
  --veldoc-primary: #0e7df5;
  --veldoc-primary-hover: #096edb;
  --veldoc-primary-light: #e8f3ff;
  --veldoc-primary-text: #075eb8;
  --api-primary: #e86d1f;
  --api-primary-hover: hsl(22, 82%, 44%);
  --api-primary-light: hsl(22, 82%, 95%);
  --api-primary-text: hsl(22, 82%, 38%);
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f8f8;
  --color-bg-tertiary: #f0f0f0;
  --color-border: #e5e5e5;
  --color-border-strong: #d0d0d0;
  --color-text-primary: #111111;
  --color-text-secondary: #555555;
  --color-text-muted: #999999;
  --color-success: hsl(142, 60%, 42%);
  --color-success-light: hsl(142, 60%, 95%);
  --color-warning: hsl(38, 90%, 48%);
  --color-warning-light: hsl(38, 90%, 95%);
  --color-danger: #dc2626;
  --color-danger-light: #fee2e2;
  --color-info: hsl(200, 70%, 44%);
  --color-info-light: hsl(200, 70%, 95%);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  font-family: var(--sans);
  letter-spacing: 0;
  margin: 0;
  min-height: 100%;
}

body.home-page {
  --home-primary: var(--veldoc-primary);
  --home-primary-hover: var(--veldoc-primary-hover);
  --home-primary-light: var(--veldoc-primary-light);
  --home-primary-text: var(--veldoc-primary-text);
  background: var(--color-bg-secondary);
  min-height: 100vh;
}

body.api-editor-page {
  --veldoc-primary: var(--api-primary);
  --veldoc-primary-hover: var(--api-primary-hover);
  --veldoc-primary-light: var(--api-primary-light);
  --veldoc-primary-text: var(--api-primary-text);
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

.home-shell {
  align-items: center;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  padding: 28px;
}

.home-help-button {
  border-radius: 50%;
  height: 30px;
  position: fixed;
  right: 22px;
  top: 22px;
  width: 30px;
  z-index: 20;
}

body.home-page .help-topic-card:hover,
body.home-page .help-topic-card:focus-visible,
body.home-page .help-topic-card.active {
  background: var(--home-primary-light);
  border-color: var(--home-primary);
  color: var(--home-primary-text);
}

.home-content {
  display: grid;
  gap: 32px;
  justify-items: center;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
  width: min(100%, 520px);
}

.home-title-block {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.home-title-heading {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
}

.home-title-image {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: min(100%, 420px);
}

.home-title-block p {
  color: var(--color-text-secondary);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.home-folder-group {
  --home-folder-radius: 18px;
  border-radius: var(--home-folder-radius);
  display: flex;
  margin-top: 4px;
  width: min(100%, 360px);
}

.home-folder-group.is-error {
  animation: shake 0.45s ease;
  box-shadow: 0 0 0 3px var(--color-danger-light);
}

.home-title-block .home-folder-help {
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: -2px 0 0;
  text-align: right;
  width: min(100%, 360px);
}

.home-folder-help span {
  margin-right: 4px;
}

.home-folder-input {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--home-folder-radius) 0 0 var(--home-folder-radius);
  border-right: 0;
  color: var(--color-text-muted);
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  height: 42px;
  min-width: 0;
  overflow: hidden;
  padding: 0 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-folder-input:focus {
  border-color: var(--home-primary);
  box-shadow: 0 0 0 3px var(--home-primary-light);
  outline: 0;
}

.home-folder-group.is-error .home-folder-input {
  border-color: var(--color-danger);
  border-right: 0;
}

.home-folder-group.is-error .home-folder-button {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.home-folder-button {
  background: var(--home-primary);
  border: 1px solid var(--home-primary);
  border-radius: 0 var(--home-folder-radius) var(--home-folder-radius) 0;
  color: #ffffff;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
  padding: 0 16px;
}

.home-folder-button:hover,
.home-folder-button:focus-visible {
  background: var(--home-primary-hover);
  border-color: var(--home-primary-hover);
  outline: 0;
}

.home-folder-button:disabled {
  background: var(--color-text-muted);
  border-color: var(--color-border);
  color: #ffffff;
}

.home-actions {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
}

.home-actions-help {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  margin: -20px 0 0;
  text-align: center;
  width: min(100%, 360px);
}

.home-action {
  --home-action-color: var(--home-primary);
  --home-action-bg: var(--home-primary-light);
  --home-action-text: var(--home-primary-text);
  --home-action-shadow: rgba(14, 125, 245, 0.16);
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-xs);
  color: var(--color-text-primary);
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  gap: 8px;
  height: 58px;
  justify-content: center;
  padding: 0 22px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.home-action:hover,
.home-action:focus-visible {
  background: var(--home-action-bg);
  border-color: var(--home-action-color);
  box-shadow: 0 8px 20px var(--home-action-shadow), var(--shadow-sm);
  color: var(--home-action-text);
  outline: 0;
  transform: translateY(-1px);
}

.home-action-wbs {
  --home-action-color: #F6D365;
  --home-action-bg: #fff8df;
  --home-action-text: #927111;
  --home-action-shadow: rgba(246, 211, 101, 0.24);
}

.home-action-srs {
  --home-action-color: #FF6B8A;
  --home-action-bg: #fff0f4;
  --home-action-text: #cc3f60;
  --home-action-shadow: rgba(255, 107, 138, 0.2);
}

.home-action-fs {
  --home-action-color: #7C5CFF;
  --home-action-bg: #f2efff;
  --home-action-text: #563fd0;
  --home-action-shadow: rgba(124, 92, 255, 0.18);
}

.home-action-api {
  --home-action-color: var(--api-primary);
  --home-action-bg: var(--api-primary-light);
  --home-action-text: var(--api-primary-text);
  --home-action-shadow: rgba(232, 109, 31, 0.16);
}

.home-action-db {
  --home-action-color: #84cc16;
  --home-action-bg: #f4fde8;
  --home-action-text: #3f6212;
  --home-action-shadow: rgba(132, 204, 22, 0.18);
}

.home-action-scenario {
  --home-action-color: #00A6A6;
  --home-action-bg: #e6fafa;
  --home-action-text: #047878;
  --home-action-shadow: rgba(0, 166, 166, 0.18);
}

.home-action:disabled,
.home-action[aria-disabled="true"] {
  background: #f3f3f3;
  border-color: #dddddd;
  box-shadow: none;
  color: #9b9b9b;
  transform: none;
}

.home-action:disabled:hover,
.home-action:disabled:focus-visible,
.home-action[aria-disabled="true"]:hover,
.home-action[aria-disabled="true"]:focus-visible {
  background: #f3f3f3;
  border-color: #dddddd;
  box-shadow: none;
  color: #9b9b9b;
  outline: 0;
}

.home-action-title {
  color: inherit;
}

.home-action-status {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
}

.home-footer {
  color: var(--color-text-muted);
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 3px;
  justify-items: center;
  line-height: 1.4;
}

.home-footer p {
  margin: 0;
}

.home-footer a {
  color: var(--home-primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--home-primary);
  outline: 0;
}

.app-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: var(--side-menu-width) minmax(720px, 1fr) minmax(420px, 0.55fr);
  min-height: 100vh;
  padding: 18px;
}

.app-shell.preview-closed {
  grid-template-columns: var(--side-menu-width) minmax(0, 1fr);
}

.app-shell.side-menu-hidden,
.app-shell.side-menu-collapsing {
  grid-template-columns: minmax(720px, 1fr) minmax(420px, 0.55fr);
}

.app-shell.preview-closed.side-menu-hidden,
.app-shell.preview-closed.side-menu-collapsing {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.preview-closed .preview-panel {
  display: none;
}

.app-shell.side-menu-hidden .side-menu {
  display: none;
}

.app-shell.side-menu-collapsing .side-menu {
  display: none;
}

.workspace,
.side-menu,
.preview-panel {
  min-width: 0;
}

.workspace {
  padding-bottom: 104px;
}

.topbar,
.preview-head {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 16px 18px;
}

.topbar {
  position: relative;
}

.file-panel-backdrop {
  background: rgba(0, 0, 0, 0.42);
  border: 0;
  bottom: 0;
  cursor: pointer;
  left: 0;
  padding: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 820;
}

.file-panel-rail {
  align-items: center;
  background: var(--color-bg-tertiary);
  border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: none;
  color: var(--color-text-secondary);
  display: none;
  height: 69px;
  justify-content: center;
  left: 0;
  padding: 0;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  z-index: 810;
}

.file-panel-rail::before {
  border-bottom: 8px solid transparent;
  border-left: 10px solid currentColor;
  border-top: 8px solid transparent;
  content: "";
  display: block;
  height: 0;
  width: 0;
}

body.file-rail-visible .file-panel-rail {
  display: inline-flex;
}

body.file-drawer-open .file-panel-rail {
  display: none;
}

.file-panel-rail:hover,
.file-panel-rail:focus-visible {
  background: var(--color-border-strong);
  outline: 0;
}

.top-button {
  align-items: center;
  background: var(--veldoc-primary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  bottom: 22px;
  box-shadow: 8px 10px 22px rgba(0, 0, 0, 0.24), 2px 4px 8px rgba(0, 0, 0, 0.14);
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 900;
  gap: 4px;
  height: 58px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 22px;
  width: 58px;
  z-index: 700;
}

.top-button::before {
  border-bottom: 8px solid currentColor;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  content: "";
  display: block;
  height: 0;
  width: 0;
}

.top-button:hover,
.top-button:focus-visible {
  background: var(--veldoc-primary-hover);
  box-shadow: 10px 12px 26px rgba(0, 0, 0, 0.28), 3px 5px 10px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  outline: 0;
}

.eyebrow {
  color: var(--veldoc-primary);
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 22px;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
}

h1,
h2,
.field span,
.row-label span,
.check-row label {
  color: var(--color-text-primary);
}

.brand-block {
  align-items: center;
  display: flex;
  gap: 10px;
}

.brand-copy {
  align-items: center;
  display: flex;
  min-height: 36px;
  text-align: center;
}

.brand-mark {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--veldoc-primary);
  border-radius: 8px;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  width: 36px;
}

.brand-mark img {
  display: block;
  height: 30px;
  object-fit: contain;
  width: 30px;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
  outline: 0;
}

.side-menu {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 36px);
  overflow: hidden;
  position: sticky;
  top: 18px;
  transition: opacity 140ms ease, transform 180ms ease;
}

.side-menu-head {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 14px;
}

.side-menu-actions {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 8px;
  justify-content: flex-end;
}

.side-menu.is-narrow .side-menu-head {
  padding: 0 14px 0 10px;
}

.side-menu.is-narrow .side-menu-actions {
  gap: 6px;
}

.side-menu.is-narrow .side-menu-actions .button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 10px;
}

.side-menu-resizer {
  align-items: center;
  background: transparent;
  border: 0;
  bottom: 0;
  cursor: ew-resize;
  display: flex;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 14px;
  z-index: 4;
}

.side-menu-resizer::after {
  background: var(--color-border-strong);
  border-radius: 999px;
  content: "";
  display: block;
  height: 64px;
  transition: background 150ms ease, height 150ms ease;
  width: 4px;
}

.side-menu-resizer:hover::after,
.side-menu-resizer:focus-visible::after,
body.resizing-side-menu .side-menu-resizer::after {
  background: var(--veldoc-primary);
  height: 72px;
}

.side-menu-resizer:focus-visible {
  outline: 0;
}

.file-tree-root {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  padding: 10px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.icon-button:hover {
  background: var(--color-bg-secondary);
}

.help-button {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-text-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 29px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 29px;
}

.help-button:hover,
.help-button:focus-visible {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary-text);
  outline: 0;
}

.file-tree {
  flex: 1;
  overflow: auto;
  padding: 10px;
}

.file-tree-content {
  min-width: max-content;
}

.file-tree-empty {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.file-tree-folder {
  margin: 2px 0;
}

.file-tree-folder summary {
  color: var(--color-text-primary);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 28px;
  min-height: 28px;
  padding: 0 6px;
  white-space: nowrap;
}

.file-tree-content > .file-tree-folder > summary {
  font-size: 14px;
}

.file-tree-content > .file-tree-folder > .file-tree-children > .file-tree-folder > summary {
  font-size: 13px;
}

.file-tree-content
  > .file-tree-folder
  > .file-tree-children
  > .file-tree-folder
  > .file-tree-children
  > .file-tree-folder
  > summary {
  font-size: 12.5px;
}

.file-tree-children {
  border-left: 1px solid var(--color-border-strong);
  margin-left: 7px;
  padding-left: 12px;
}

.file-tree-file {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  min-height: 28px;
  padding: 0 6px;
  text-align: left;
  white-space: nowrap;
  width: 100%;
}

.file-tree-method {
  align-items: center;
  color: var(--color-text-secondary);
  display: inline-flex;
  flex: 0 0 56px;
  font-family: "VelDocMethod", var(--sans);
  font-size: 13px;
  font-weight: 400;
  height: 20px;
  justify-content: flex-start;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  width: 56px;
}

.file-tree-file-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-tree-file:hover {
  background: var(--color-bg-secondary);
}

.file-tree-file.active {
  background: var(--veldoc-primary-light);
  color: var(--veldoc-primary-text);
}

.file-tree-method-get {
  color: #198754;
}

.file-tree-method-post {
  color: var(--api-primary);
}

.file-tree-method-put {
  color: #2563eb;
}

.file-tree-method-patch {
  color: #7c3aed;
}

.file-tree-method-delete {
  color: #dc3545;
}

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

.workspace.viewer-mode .actions {
  display: none;
}

.preview-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.button,
.mini-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  white-space: nowrap;
}

.button {
  height: 38px;
  padding: 0 14px;
}

.actions [data-tooltip] {
  position: relative;
}

.actions [data-tooltip]::before,
.actions [data-tooltip]::after {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 40;
}

.actions [data-tooltip]::before {
  border: 6px solid transparent;
  border-bottom-color: var(--color-text-primary);
  bottom: -9px;
  content: "";
  left: 50%;
  transform: translate(-50%, -2px);
}

.actions [data-tooltip]::after {
  background: var(--color-text-primary);
  border-radius: var(--radius-sm);
  bottom: -42px;
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  line-height: 1;
  padding: 8px 10px;
  transform: translate(-50%, -2px);
  white-space: nowrap;
}

.actions [data-tooltip]:hover::before,
.actions [data-tooltip]:hover::after,
.actions [data-tooltip]:focus-visible::before,
.actions [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.split-button {
  display: inline-flex;
  position: relative;
}

.split-button .split-main {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.split-button .split-arrow {
  align-items: center;
  border-bottom-left-radius: 0;
  border-left: 0;
  border-top-left-radius: 0;
  display: inline-flex;
  font-size: 13px;
  justify-content: center;
  line-height: 1;
  min-width: 34px;
  padding: 0;
  text-align: center;
}

.split-menu {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 4px;
  min-width: 128px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
}

.split-menu-item {
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
  text-align: left;
  white-space: nowrap;
}

.split-menu-item:hover,
.split-menu-item:focus-visible {
  background: var(--color-bg-secondary);
  outline: 0;
}

.compact-button {
  height: 30px;
  padding: 0 10px;
}

.mini-button {
  background: var(--color-bg);
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
  font-size: 12px;
  height: 30px;
  padding: 0 10px;
}

.button.primary {
  background: var(--veldoc-primary);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--veldoc-primary-hover);
}

#saveSplitButton .button.primary,
#tableSaveSplitButton .button.primary,
#wbsSaveSplitButton .button.primary {
  border-color: var(--veldoc-primary-hover);
}

#saveSplitButton .split-main,
#tableSaveSplitButton .split-main,
#wbsSaveSplitButton .split-main {
  border-right-color: var(--veldoc-primary-hover);
}

#saveSplitButton .split-arrow,
#tableSaveSplitButton .split-arrow,
#wbsSaveSplitButton .split-arrow {
  border-left: 1px solid var(--veldoc-primary-hover);
}

#saveSplitButton .button.primary:hover,
#tableSaveSplitButton .button.primary:hover,
#wbsSaveSplitButton .button.primary:hover {
  border-color: var(--veldoc-primary-text);
}

#saveSplitButton .split-main:hover,
#tableSaveSplitButton .split-main:hover,
#wbsSaveSplitButton .split-main:hover {
  border-right-color: var(--veldoc-primary-text);
}

#saveSplitButton .split-arrow:hover,
#tableSaveSplitButton .split-arrow:hover,
#wbsSaveSplitButton .split-arrow:hover {
  border-left-color: var(--veldoc-primary-text);
}

.button.secondary {
  background: var(--color-bg);
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.button.secondary:hover,
.mini-button:hover {
  background: var(--color-bg-secondary);
}

.button.danger {
  background: var(--color-bg);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.button.danger:hover,
.button.danger:focus-visible {
  background: #fff5f5;
  outline: 0;
}

.button:disabled,
.button:disabled:hover,
.mini-button:disabled,
.mini-button:disabled:hover,
.split-menu-item:disabled,
.split-menu-item:disabled:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border);
  color: var(--color-text-muted);
  cursor: default;
}

.button.secondary.active {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary-text);
}

.page-loading-overlay {
  align-items: center;
  background: rgba(120, 120, 120, 0.38);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.loading-box {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-primary);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  padding: 14px 16px;
}

.loading-spinner {
  animation: spin 800ms linear infinite;
  border: 3px solid var(--color-border);
  border-top-color: var(--veldoc-primary);
  border-radius: 50%;
  height: 22px;
  width: 22px;
}

.workspace.is-view-transitioning > .form-grid,
.workspace.is-view-transitioning > .spec-viewer {
  display: none;
}

.viewer-transition-skeleton {
  display: grid;
  gap: 14px;
}

.viewer-transition-skeleton[data-mode="editor"] .transition-skeleton-viewer,
.viewer-transition-skeleton[data-mode="viewer"] .transition-skeleton-editor {
  display: none;
}

.editor-skeleton-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-skeleton-card,
.viewer-skeleton-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.editor-skeleton-card.span-2 {
  grid-column: span 2;
}

.editor-skeleton-card.compact {
  gap: 12px;
}

.editor-skeleton-head,
.viewer-skeleton-group-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.viewer-skeleton-card.viewer-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.viewer-skeleton-card.viewer-filters {
  align-items: center;
  display: flex;
  gap: 10px;
}

.viewer-skeleton-card.viewer-group {
  gap: 14px;
}

.viewer-skeleton-endpoint {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.viewer-skeleton-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewer-skeleton {
  animation: shimmer 1.4s infinite;
  background: linear-gradient(90deg, var(--color-bg-tertiary) 25%, var(--color-bg-secondary) 50%, var(--color-bg-tertiary) 75%);
  background-size: 800px 100%;
  border-radius: var(--radius-md);
  display: block;
}

.viewer-skeleton-title {
  height: 20px;
  width: 68%;
}

.viewer-skeleton-title.medium {
  width: 48%;
}

.viewer-skeleton-title.short {
  width: 34%;
}

.viewer-skeleton-line {
  height: 14px;
  width: 100%;
}

.viewer-skeleton-line.medium {
  width: 76%;
}

.viewer-skeleton-line.short {
  width: 48%;
}

.viewer-skeleton-field {
  height: 38px;
  width: 72%;
}

.viewer-skeleton-field.wide {
  width: 100%;
}

.viewer-skeleton-table-row {
  height: 34px;
  width: 100%;
}

.viewer-skeleton-table-row.short {
  width: 74%;
}

.viewer-skeleton-button {
  height: 28px;
  width: 54px;
}

.viewer-skeleton-badge {
  height: 24px;
  width: 72px;
}

.viewer-skeleton-badge.short {
  width: 42px;
}

.viewer-skeleton-tab {
  height: 34px;
  width: 110px;
}

.viewer-skeleton-tab.medium {
  width: 88px;
}

.viewer-skeleton-tab.short {
  width: 64px;
}

.viewer-skeleton-method {
  height: 24px;
  width: 52px;
}

.viewer-skeleton-chip {
  height: 24px;
  width: 96px;
}

.viewer-skeleton-chip.medium {
  width: 76px;
}

.viewer-skeleton-chip.short {
  width: 56px;
}

.message-dialog-overlay {
  align-items: center;
  background: rgba(30, 30, 30, 0.34);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1100;
}

.message-dialog-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  max-width: 420px;
  overflow: hidden;
  width: min(420px, 100%);
}

.message-dialog-head {
  border-bottom: 1px solid var(--color-border);
  padding: 18px 20px 14px;
}

.message-dialog-box p {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  padding: 18px 20px 0;
  word-break: keep-all;
}

.message-dialog-actions {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
  padding: 14px 20px;
}

.help-dialog-overlay {
  align-items: center;
  background: rgba(30, 30, 30, 0.34);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1100;
}

.help-dialog-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  max-height: min(720px, calc(100vh - 36px));
  max-width: 640px;
  overflow: hidden;
  width: min(640px, 100%);
}

.help-dialog-head {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px 14px;
}

.help-dialog-head h2 {
  margin: 0;
}

.help-dialog-close {
  height: 30px;
  width: 30px;
}

.help-dialog-body {
  display: grid;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 18px 18px;
}

.help-topic-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-topic-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 11px 12px;
  text-align: left;
}

.help-topic-card strong {
  font-size: 13px;
}

.help-topic-card span {
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.help-topic-card:hover,
.help-topic-card:focus-visible,
.help-topic-card.active {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary-text);
  outline: 0;
}

.help-content {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.help-section {
  display: none;
}

.help-section.active {
  display: grid;
  gap: 10px;
}

.help-section h3 {
  font-size: 16px;
  margin: 0;
}

.help-section p {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

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

.help-file-list div {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 6px;
  padding: 10px 12px;
}

.help-file-list dt {
  color: var(--color-text-primary);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.help-file-list dd {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}

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

.help-shortcut-list div {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 132px minmax(0, 1fr);
}

.help-shortcut-list dt {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
}

.help-shortcut-list dd {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.toast-container {
  bottom: 92px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  position: fixed;
  right: 22px;
  z-index: 1200;
}

.toast {
  align-items: flex-start;
  animation: toastIn 220ms ease;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16), 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 10px;
  max-width: min(360px, calc(100vw - 44px));
  min-width: min(280px, calc(100vw - 44px));
  padding: 12px 14px;
  pointer-events: auto;
}

.toast.removing {
  animation: toastOut 220ms ease forwards;
}

.toast-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  margin-top: 1px;
  width: 20px;
}

.toast-icon.success {
  background: var(--color-success-light);
  color: var(--color-success);
}

.toast-icon.warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}

.toast-icon.danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}

.toast-icon.info {
  background: var(--color-info-light);
  color: var(--color-info);
}

.toast-content {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.toast-title {
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.toast-msg {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.toast-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  outline: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-6px);
  }

  30% {
    transform: translateX(6px);
  }

  45% {
    transform: translateX(-4px);
  }

  60% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-2px);
  }

  90% {
    transform: translateX(2px);
  }
}

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

.editor-empty-state {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
  min-height: calc(100vh - 132px);
  padding: 48px 32px;
  text-align: center;
}

.editor-empty-icon {
  align-items: center;
  background: var(--color-bg-tertiary);
  border-radius: 16px;
  display: flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  width: 72px;
}

.editor-empty-icon img {
  display: block;
  height: 64px;
  object-fit: contain;
  width: 64px;
}

.editor-empty-title {
  color: var(--color-text-primary);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
}

.editor-empty-desc {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 340px;
}

.editor-empty-action {
  min-width: 112px;
}

.form-grid.is-file-location-unset > .panel {
  display: none;
}

.panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 16px;
}

.span-2 {
  grid-column: span 2;
}

.panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title-inline {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.panel-head-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.header-preset-bar,
.error-preset-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}

.header-preset-button,
.error-preset-button {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
  position: relative;
}

.header-preset-button:hover,
.header-preset-button:focus-visible,
.error-preset-button:hover,
.error-preset-button:focus-visible {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary-text);
  outline: 0;
}

.header-preset-button[data-tooltip]::before,
.header-preset-button[data-tooltip]::after {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 40;
}

.header-preset-button[data-tooltip]::before {
  border: 6px solid transparent;
  border-top-color: var(--color-text-primary);
  bottom: calc(100% + 4px);
  content: "";
  left: 50%;
  z-index: 41;
}

.header-preset-button[data-tooltip]::after {
  background: var(--color-text-primary);
  border-radius: var(--radius-sm);
  bottom: calc(100% + 22px);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 700;
  left: 50%;
  line-height: 1.35;
  max-width: min(260px, 70vw);
  padding: 8px 10px;
  text-align: left;
  white-space: pre-line;
  width: max-content;
}

.header-preset-button[data-tooltip]:hover::before,
.header-preset-button[data-tooltip]:hover::after,
.header-preset-button[data-tooltip]:focus-visible::before,
.header-preset-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.45s;
}

.success-status-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.success-status-tab {
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 3px 4px 3px 10px;
  position: relative;
}

.success-status-tab:only-child {
  padding: 3px 10px;
}

.success-status-tab.active {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
}

.success-status-tab-button,
.success-status-remove {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-text-primary);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 0;
}

.success-status-tab-button {
  min-height: 24px;
  min-width: 28px;
  text-align: center;
}

.success-status-remove {
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 16px;
  height: 24px;
  width: 24px;
}

.success-status-remove:hover,
.success-status-remove:focus-visible {
  background: var(--color-bg);
  color: var(--color-text-primary);
  outline: 0;
}

.draggable-status-tab {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.draggable-status-tab.dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.draggable-status-tab .success-status-tab-button,
.draggable-status-tab .success-status-remove {
  cursor: inherit;
}

.draggable-status-tab.drag-over-before::before,
.draggable-status-tab.drag-over-after::after {
  background: var(--veldoc-primary);
  border-radius: 999px;
  bottom: -5px;
  content: "";
  position: absolute;
  top: -5px;
  width: 3px;
  z-index: 2;
}

.draggable-status-tab.drag-over-before::before {
  left: -6px;
}

.draggable-status-tab.drag-over-after::after {
  right: -6px;
}

.badge,
.status {
  background: var(--veldoc-primary-light);
  border-radius: 999px;
  color: var(--veldoc-primary-text);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.status {
  background: var(--color-success-light);
  color: var(--color-success);
}

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

.field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field.wide {
  grid-column: span 2;
}

.field-grid.three .field.wide {
  grid-column: span 3;
}

.field span {
  font-size: 12px;
  font-weight: 700;
}

.field-hint {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: -2px 0 0;
}

.form-error {
  color: var(--color-danger);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  margin: -2px 0 0;
  padding-left: 10px;
}

.section-hint {
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.5;
  margin: -8px 0 12px;
}

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

.location-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.location-row .button {
  height: 38px;
}

.computed-text {
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  display: flex;
  font-family: var(--mono);
  font-size: 13px;
  min-height: 38px;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.computed-text:focus {
  background: var(--color-bg);
  border-color: var(--veldoc-primary);
  outline: 2px solid var(--veldoc-primary-light);
}

.param-path-preview {
  margin-bottom: 10px;
}

.auth-details {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 420px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 150ms ease;
}

.auth-top-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(128px, 180px) minmax(0, 1fr);
}

.auth-top-grid.auth-not-required {
  grid-template-columns: minmax(0, 1fr);
}

.auth-details .field:last-child {
  grid-column: 1 / -1;
}

.auth-scheme-field {
  grid-column: 1 / -1;
}

.auth-role-field {
  grid-column: 1 / -1;
}

.auth-policy-scope-field[hidden] {
  display: none;
}

.auth-policy-scope-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.auth-policy-scope-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 46px;
  min-width: 0;
  padding: 8px;
  position: relative;
}

.auth-policy-scope-card:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-strong);
}

.auth-policy-scope-card:focus-within {
  border-color: var(--veldoc-primary);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
}

.auth-policy-scope-card:has(input:checked) {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
}

.auth-policy-scope-card.has-auth-roles::after {
  background: var(--veldoc-primary);
  border-radius: 50%;
  content: "";
  height: 6px;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
}

.auth-policy-scope-card.disabled {
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-policy-scope-card input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.auth-policy-scope-name {
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.auth-policy-scope-path {
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-policy-scope-card:has(input:checked) .auth-policy-scope-name {
  color: var(--veldoc-primary-text);
}

.auth-policy-scope-card:has(input:checked) .auth-policy-scope-path {
  color: var(--color-text-secondary);
}

.auth-scheme-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.auth-scheme-card {
  align-items: start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  gap: 6px;
  min-height: 62px;
  min-width: 0;
  padding: 10px;
  position: relative;
}

.auth-scheme-card:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-strong);
}

.auth-scheme-card:focus-within {
  border-color: var(--veldoc-primary);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
}

.auth-scheme-card:has(input:checked) {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
}

.auth-scheme-card input[type="radio"] {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.auth-scheme-card .auth-scheme-name {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.auth-scheme-card .auth-scheme-desc {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  justify-self: end;
  line-height: 1.25;
  text-align: right;
}

.auth-scheme-card:has(input:checked) .auth-scheme-name {
  color: var(--veldoc-primary-text);
}

.auth-scheme-card:has(input:checked) .auth-scheme-desc {
  color: var(--color-text-secondary);
}

.auth-scheme-custom-card {
  grid-template-rows: auto auto;
}

.auth-scheme-custom-input {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  height: 30px;
  margin-top: 2px;
  min-width: 0;
  padding: 0 8px;
  width: 100%;
}

.auth-scheme-custom-input::placeholder {
  color: var(--color-text-muted);
}

.auth-scheme-custom-card:has(input[type="radio"]:checked) .auth-scheme-custom-input {
  border-color: var(--veldoc-primary);
}

.auth-role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-role-card,
.auth-role-add-card {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  min-width: 0;
  padding: 4px 6px;
}

.auth-role-card {
  color: var(--color-text-muted);
}

.auth-role-card:has(input:checked) {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary-text);
}

.auth-role-card.auth-role-inherited:has(input:checked) {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
}

.auth-role-card.auth-role-inherited .auth-role-remove-button {
  color: var(--color-text-muted);
}

.auth-role-card.auth-role-inherited .auth-role-remove-button:hover,
.auth-role-card.auth-role-inherited .auth-role-remove-button:focus-visible {
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
}

.auth-role-card-label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.auth-role-card-label input {
  height: 14px;
  width: 14px;
}

.auth-role-card-label span {
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-role-remove-button,
.auth-role-add-button {
  align-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.auth-role-remove-button {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
}

.auth-role-remove-button:hover,
.auth-role-remove-button:focus-visible {
  background: var(--color-bg);
  color: var(--color-danger);
  outline: 0;
}

.auth-role-add-card {
  gap: 4px;
  padding: 4px 4px 4px 6px;
}

.auth-role-add-button {
  background: transparent;
  color: var(--veldoc-primary);
  font-size: 18px;
}

.auth-role-add-button:hover,
.auth-role-add-button:focus-visible {
  background: transparent;
  color: var(--veldoc-primary-hover);
  outline: 0;
}

.auth-role-input {
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  min-width: 128px;
  padding: 0 8px;
  width: 150px;
}

.auth-role-input:focus {
  box-shadow: none;
}

.auth-details.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

input,
select,
textarea {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  outline: 0;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input,
select {
  height: 38px;
  padding: 0 10px;
}

select {
  appearance: none;
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 7l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding-right: 36px;
}

textarea {
  --textarea-line-height: 1.55em;
  --textarea-y-padding: 20px;
  line-height: 1.55;
  padding: 10px;
  resize: vertical;
}

input.is-error,
select.is-error,
textarea.is-error,
.computed-text.is-error,
.method-picker-grid.is-error,
.index-column-picker.is-error {
  background-color: #fffafa;
  border-color: var(--color-danger);
}

.computed-text.is-error {
  color: var(--color-danger);
}

.path-grid.is-error input {
  background: #fffafa;
  border-color: var(--color-danger);
}

input.is-error:focus,
select.is-error:focus,
textarea.is-error:focus {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-light);
}

input.shake,
select.shake,
textarea.shake,
.computed-text.shake,
.path-grid.shake,
.method-picker-grid.shake,
.index-column-picker.shake {
  animation: shake 0.45s ease;
}

.method-picker-grid.is-error {
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  padding: 4px;
}

.limited-textarea {
  max-height: calc(var(--textarea-line-height) * 5 + var(--textarea-y-padding));
  min-height: calc(var(--textarea-line-height) * 2 + var(--textarea-y-padding));
  overflow-y: auto;
  resize: vertical;
}

.textarea-1-5 {
  max-height: calc(var(--textarea-line-height) * 5 + var(--textarea-y-padding));
  min-height: calc(var(--textarea-line-height) * 1 + var(--textarea-y-padding));
  overflow-y: auto;
}

.textarea-3-10 {
  max-height: calc(var(--textarea-line-height) * 10 + var(--textarea-y-padding));
  min-height: calc(var(--textarea-line-height) * 3 + var(--textarea-y-padding));
  overflow-y: auto;
}

.textarea-5-20 {
  max-height: calc(var(--textarea-line-height) * 20 + var(--textarea-y-padding));
  min-height: calc(var(--textarea-line-height) * 5 + var(--textarea-y-padding));
  overflow-y: auto;
}

.json-preview-textarea {
  min-height: calc(var(--textarea-line-height) * 10 + var(--textarea-y-padding));
  overflow-y: hidden;
  resize: none;
}

.success-json-preview-textarea {
  max-height: calc(var(--textarea-line-height) * 12 + var(--textarea-y-padding));
  min-height: calc(var(--textarea-line-height) * 4 + var(--textarea-y-padding));
  overflow-y: auto;
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.mini-button:focus-visible,
.remove-button:focus-visible,
.toggle-button:focus-visible {
  border-color: var(--veldoc-primary);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
}

.button:focus-visible,
.mini-button:focus-visible,
.remove-button:focus-visible,
.toggle-button:focus-visible {
  outline: 0;
}

textarea[readonly] {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
}

.code-input,
.preview {
  font-family: var(--mono);
  font-size: 12px;
}

.check-row {
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  min-height: 38px;
  padding: 8px 10px;
}

.check-row.wrap {
  flex-wrap: wrap;
}

.check-row label {
  align-items: center;
  color: var(--color-text-primary);
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
}

.check-row input {
  height: auto;
  width: auto;
}

.method-picker-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.method-picker-card {
  --method-color: var(--color-text-secondary);
  --method-bg: var(--color-bg-secondary);
  align-items: start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  cursor: pointer;
  display: grid;
  gap: 6px;
  grid-template-rows: auto auto;
  min-height: 62px;
  min-width: 0;
  padding: 10px;
  position: relative;
}

.method-picker-card:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-strong);
}

.method-picker-card:focus-within {
  border-color: var(--method-color);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
}

.method-picker-card:has(input:checked) {
  background: var(--method-bg);
  border-color: var(--method-color);
}

.method-picker-card input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.method-picker-card .method-picker-name {
  background: transparent;
  color: var(--color-text-muted);
  font-family: "VelDocMethod", var(--sans);
  font-size: 18px;
  font-weight: 400;
  justify-self: start;
  line-height: 1;
}

.method-picker-card .method-picker-desc {
  background: transparent;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  justify-self: end;
  line-height: 1.25;
  text-align: right;
}

.method-picker-card:has(input:checked) .method-picker-name {
  color: var(--method-color);
}

.method-picker-card:has(input:checked) .method-picker-desc {
  color: var(--color-text-secondary);
}

.method-picker-get {
  --method-color: #198754;
  --method-bg: #edf8f2;
}

.method-picker-post {
  --method-color: var(--api-primary);
  --method-bg: var(--api-primary-light);
}

.method-picker-put {
  --method-color: #2563eb;
  --method-bg: #eff6ff;
}

.method-picker-patch {
  --method-color: #7c3aed;
  --method-bg: #f5f3ff;
}

.method-picker-delete {
  --method-color: #dc3545;
  --method-bg: #fff1f2;
}

.rows {
  display: grid;
  gap: 8px;
}

.top-gap {
  margin-top: 12px;
}

.row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 64px 1fr 1.4fr 32px;
}

.row.compact {
  grid-template-columns: 1fr 1fr 64px 1.4fr 32px;
}

.row.error-row {
  grid-template-columns: 18px 78px 1fr 1.5fr 1.4fr 32px;
}

.row.path-param-row {
  grid-template-columns: 18px 1fr 0.8fr 64px 82px 1fr 1.4fr 32px;
}

.row.query-param-row {
  grid-template-columns: 18px 1fr 0.8fr 64px 1fr 1fr 1.4fr 32px;
}

.row.body-row {
  grid-template-columns: 18px 0.8fr 1fr 0.8fr 64px 1fr 1.4fr 32px;
}

.row.response-row {
  grid-template-columns: 18px 0.8fr 1fr 0.8fr 78px 1fr 1.4fr 32px;
}

.field-table {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  padding: 10px;
}

.field-table-head {
  color: var(--color-text-primary);
  display: grid;
  gap: 8px;
  padding: 0 0 2px;
}

.field-table-head.path-param-row {
  grid-template-columns: 18px 1fr 0.8fr 64px 82px 1fr 1.4fr 32px;
}

.field-table-head.compact {
  grid-template-columns: 1fr 1fr 64px 1.4fr 32px;
}

.field-table-head.query-param-row {
  grid-template-columns: 18px 1fr 0.8fr 64px 1fr 1fr 1.4fr 32px;
}

.row.action-param-row {
  grid-template-columns: 1fr 0.8fr 64px 1fr 1.4fr 32px;
}

.field-table-head.action-param-row {
  grid-template-columns: 1fr 0.8fr 64px 1fr 1.4fr 32px;
}

.field-table-head.body-row {
  grid-template-columns: 18px 0.8fr 1fr 0.8fr 64px 1fr 1.4fr 32px;
}

.field-table-head.response-row {
  grid-template-columns: 18px 0.8fr 1fr 0.8fr 78px 1fr 1.4fr 32px;
}

.field-table-head.error-row {
  grid-template-columns: 18px 78px 1fr 1.5fr 1.4fr 32px;
}

.field-table-head span {
  align-items: center;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: center;
  text-align: center;
}

.field-table .toggle-button,
.field-table .remove-button {
  justify-self: center;
}

.header-preset-button,
.error-preset-button {
  flex: 1 1 140px;
}

.action-param-table {
  margin-bottom: 10px;
}

.inline-table-head {
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.drag-handle {
  align-self: end;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: grab;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  padding: 0;
  width: 18px;
}

.drag-handle:active {
  cursor: grabbing;
}

.draggable-row.dragging {
  opacity: 0.55;
}

.draggable-row {
  position: relative;
}

.draggable-row.drag-over-before::before,
.draggable-row.drag-over-after::after {
  background: var(--veldoc-primary);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.draggable-row.drag-over-before::before {
  top: -6px;
}

.draggable-row.drag-over-after::after {
  bottom: -6px;
}

.header-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  padding: 12px;
  position: relative;
}

.header-card-top {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.2fr);
  padding-right: 38px;
}

.header-description {
  padding-right: 38px;
}

.header-remove {
  position: absolute;
  right: 12px;
  top: 12px;
}

.row-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.row-label span {
  font-size: 10px;
  font-weight: 700;
}

.remove-button {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  height: 38px;
  width: 32px;
}

.remove-button:hover {
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary);
}

.toggle-button {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  width: 64px;
}

.form-toggle {
  width: 144px;
}

.toggle-button.active {
  background: var(--veldoc-primary);
  border-color: var(--veldoc-primary);
  color: #ffffff;
}

.toggle-button:hover {
  border-color: var(--veldoc-primary);
}

.spec-viewer {
  display: grid;
  gap: 12px;
}

.spec-viewer-head {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  justify-content: space-between;
  padding: 16px;
}

.spec-viewer-head p {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 700;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.spec-viewer-note,
.spec-viewer-empty {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  padding: 14px 16px;
}

.spec-viewer-list {
  display: grid;
  gap: 22px;
}

.spec-filter-stack {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.viewer-filter-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 66px minmax(0, 1fr);
}

.viewer-filter-label {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 900;
}

.viewer-tabs {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 0;
  min-height: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px;
  position: relative;
  scrollbar-width: none;
  width: 100%;
}

.viewer-tabs::-webkit-scrollbar {
  display: none;
}

.viewer-tab-indicator {
  background: var(--color-bg);
  border: 1px solid var(--veldoc-primary);
  border-radius: var(--radius-md);
  bottom: 4px;
  box-shadow: var(--shadow-sm);
  left: 4px;
  pointer-events: none;
  position: absolute;
  top: 4px;
  width: 0;
  z-index: 0;
}

.viewer-tab-indicator.is-ready {
  transition:
    left 220ms cubic-bezier(.4, 0, .2, 1),
    width 220ms cubic-bezier(.4, 0, .2, 1);
}

.viewer-tab {
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  flex: 1 0 max(82px, calc(100% / var(--tab-count, 1)));
  min-width: 0;
  overflow: hidden;
  padding: 8px clamp(10px, 2vw, 16px);
  position: relative;
  text-overflow: ellipsis;
  transition:
    color 150ms ease,
    transform 80ms ease;
  white-space: nowrap;
  z-index: 1;
}

.viewer-tab:hover:not([aria-selected="true"]) {
  color: var(--color-text-primary);
}

.viewer-tab[aria-selected="true"] {
  color: var(--veldoc-primary-text);
}

.viewer-tab:active {
  transform: scale(0.97);
}

.viewer-tab:focus-visible,
.spec-tag-heading:focus-visible {
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
  outline: 0;
}

.spec-tag-group {
  border-bottom: 2px solid var(--color-border-strong);
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
}

.spec-tag-heading {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 4px 0 8px;
  text-align: left;
  width: 100%;
}

.spec-tag-heading::before {
  color: var(--veldoc-primary);
  content: "▾";
  font-size: 18px;
  font-weight: 900;
  margin-right: 8px;
}

.spec-tag-group.collapsed .spec-tag-heading::before {
  content: "▸";
}

.spec-tag-heading h3 {
  color: var(--color-text-primary);
  flex: 1;
  font-size: 22px;
  margin: 0;
}

.spec-tag-heading span {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.spec-tag-content {
  display: grid;
  gap: 10px;
}

.spec-tag-group.collapsed .spec-tag-content {
  display: none;
}

.spec-endpoint-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 14px;
  padding: 16px;
}

.method-card-get {
  border-left-color: #198754;
}

.method-card-post {
  border-left-color: var(--api-primary);
}

.method-card-put {
  border-left-color: #2563eb;
}

.method-card-patch {
  border-left-color: #7c3aed;
}

.method-card-delete {
  border-left-color: #dc3545;
}

.spec-card-top {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.spec-route {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
}

.method-badge {
  border-radius: var(--radius-sm);
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  justify-self: start;
  letter-spacing: 0;
  min-width: 58px;
  padding: 6px 9px;
}

.method-get {
  background: #198754;
}

.method-post {
  background: var(--api-primary);
}

.method-put {
  background: #2563eb;
}

.method-patch {
  background: #7c3aed;
}

.method-delete {
  background: #dc3545;
}

.spec-path {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  padding: 7px 9px;
}

.spec-title-block {
  display: grid;
  gap: 5px;
}

.spec-endpoint-card h3 {
  color: var(--color-text-primary);
  font-size: 17px;
  margin: 0;
}

.spec-purpose {
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.spec-chip-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spec-chip {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
}

.spec-chip span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 900;
}

.spec-chip strong {
  color: var(--color-text-primary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.spec-counter-row {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}

.spec-counter {
  align-items: center;
  border-right: 1px solid var(--color-border);
  display: grid;
  gap: 3px;
  justify-items: center;
  min-height: 54px;
  padding: 8px 6px;
}

.spec-counter:last-child {
  border-right: 0;
}

.spec-counter strong {
  color: var(--color-text-primary);
  font-size: 18px;
  line-height: 1;
}

.spec-counter span {
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 900;
}

.spec-meta-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spec-meta-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
}

.spec-meta-item span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.spec-meta-item strong {
  color: var(--color-text-primary);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.spec-detail-grid {
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 12px;
}

.spec-detail-panel {
  border-top: 1px solid var(--color-border);
  padding-top: 4px;
}

.spec-detail-panel summary {
  align-items: center;
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
}

.spec-detail-panel summary::-webkit-details-marker {
  display: none;
}

.spec-detail-panel summary::after {
  color: var(--veldoc-primary);
  content: "▾";
  font-size: 16px;
  font-weight: 900;
  margin-left: 10px;
}

.spec-detail-panel:not([open]) summary::after {
  content: "▸";
}

.spec-detail-panel summary:focus-visible {
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
  outline: 0;
}

.spec-detail-summary-title {
  font-size: 13px;
  font-weight: 900;
}

.spec-detail-summary-meta {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}

.spec-detail-stack {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.spec-detail-panel:not([open]) .spec-detail-stack {
  display: none;
}

.spec-detail-section {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.spec-detail-section-title {
  color: var(--color-text-primary);
  font-size: 13px;
  margin: 0;
}

.spec-section-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-detail-section-error .spec-section-grid {
  grid-template-columns: minmax(0, 1fr);
}

.spec-detail-section-response .spec-section-grid {
  grid-template-columns: minmax(0, 1fr);
}

.spec-success-response {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
}

.spec-success-response-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.spec-success-status {
  background: var(--veldoc-primary-light);
  border-radius: 999px;
  color: var(--veldoc-primary-text);
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
}

.spec-success-meta {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.spec-success-response-body {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-detail-section-error .spec-detail-scroll {
  overflow: visible;
}

.spec-detail-section-error .spec-detail-table table {
  table-layout: fixed;
}

.spec-detail-section-error .spec-detail-table th,
.spec-detail-section-error .spec-detail-table td {
  white-space: normal;
}

.spec-detail-table,
.spec-json-preview {
  min-width: 0;
}

.spec-detail-table h4,
.spec-json-preview h4 {
  color: var(--color-text-primary);
  font-size: 12px;
  margin: 0 0 6px;
}

.spec-detail-scroll {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: auto;
}

.spec-detail-table table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 100%;
  table-layout: auto;
}

.spec-detail-table th,
.spec-detail-table td {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 7px 8px;
  text-align: left;
  white-space: nowrap;
}

.spec-detail-table th {
  background: var(--color-bg-secondary);
  font-size: 11px;
  font-weight: 900;
}

.spec-detail-table tr:last-child td {
  border-bottom: 0;
}

.spec-detail-more {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  margin: 6px 0 0;
}

.spec-json-preview pre {
  background: #101317;
  border-radius: var(--radius-sm);
  color: #e7edf4;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.preview-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  position: sticky;
  top: 18px;
}

.preview-panel .preview-head {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: none;
  margin: 0;
}

.preview {
  background: #101317;
  color: #e7edf4;
  flex: 1;
  line-height: 1.55;
  margin: 0;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

body.table-editor-page {
  --veldoc-primary: #84cc16;
  --veldoc-primary-hover: #65a30d;
  --veldoc-primary-light: #f4fde8;
  --veldoc-primary-text: #3f6212;
  background: var(--color-bg-secondary);
  min-height: 100vh;
}

body.wbs-editor-page {
  --veldoc-primary: #f6d365;
  --veldoc-primary-hover: #e6bd3e;
  --veldoc-primary-light: #fff8df;
  --veldoc-primary-text: #927111;
  background: var(--color-bg-secondary);
  min-height: 100vh;
}

.wbs-readonly-date-field > span {
  align-items: center;
  display: flex;
  gap: 6px;
}

.wbs-auto-badge {
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
}

.wbs-readonly-date-input[readonly] {
  background: linear-gradient(180deg, var(--color-bg-secondary), var(--color-bg-tertiary));
  border-color: var(--color-border);
  color: var(--color-text-secondary);
  cursor: default;
  pointer-events: none;
}

.wbs-readonly-date-input[readonly]:focus {
  box-shadow: none;
}

.wbs-side-title {
  display: grid;
  gap: 4px;
}

.wbs-side-title strong {
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 900;
}

.wbs-side-title span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
}

.wbs-file-meta {
  color: var(--color-text-muted);
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
}

.wbs-task-list {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wbs-task-list::-webkit-scrollbar {
  display: none;
}

.wbs-task-item {
  --wbs-depth-offset: min(calc(var(--wbs-depth, 0) * 24px), 120px);
  display: block;
  margin-left: var(--wbs-depth-offset);
  transition: margin-left 140ms ease;
}

.wbs-task-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--veldoc-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  min-width: 980px;
  padding: 12px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.wbs-task-card:focus-within {
  border-color: var(--veldoc-primary);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light), var(--shadow-xs);
}

.wbs-task-card-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 88px minmax(190px, 1.4fr) 72px 128px 128px 72px 72px minmax(112px, 0.7fr) 32px;
}

.wbs-number-field,
.wbs-card-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.wbs-number-field span,
.wbs-card-field span {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.wbs-number-field .table-required-marker,
.wbs-card-field .table-required-marker {
  color: #ef4444;
}

.wbs-number-field {
  width: 88px;
}

.wbs-task-name-field {
  min-width: 0;
}

.wbs-task-card .table-cell-input {
  height: 38px;
  min-width: 0;
}

.wbs-task-card .table-cell-input[readonly] {
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  cursor: default;
}

.wbs-task-card .table-row-remove {
  align-items: center;
  align-self: end;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.wbs-task-card .table-row-remove:hover,
.wbs-task-card .table-row-remove:focus-visible {
  background: var(--color-bg-secondary);
  border-color: var(--color-danger);
  color: var(--color-danger);
  outline: 0;
}

.table-viewer-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--veldoc-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 14px;
  padding: 16px;
  scroll-margin: 24px;
}

.table-viewer-card-head p {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 4px 0 0;
}

.table-viewer-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.table-viewer-card-head h3 {
  font-size: 18px;
  margin: 0;
}

.table-entity-group {
  border-bottom-width: 1px;
  gap: 8px;
  padding-bottom: 12px;
}

.table-entity-group .spec-tag-heading h3 {
  font-size: 16px;
}

.table-viewer-meta {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.table-viewer-meta-item {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.table-viewer-meta-item dt {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 900;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.table-viewer-meta-item dd {
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

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

.table-viewer-table table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.table-viewer-table th,
.table-viewer-table td {
  border: 1px solid var(--color-border);
  font-size: 12px;
  padding: 8px;
  text-align: left;
}

.table-viewer-table th {
  background: var(--color-bg-secondary);
  font-weight: 900;
}

.table-generated-sql,
.table-viewer-sql pre {
  background: #101317;
  border: 1px solid #202832;
  border-radius: var(--radius-md);
  color: #e7edf4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  margin: 0;
  min-height: 168px;
  overflow: auto;
  padding: 14px;
  white-space: pre;
}

.table-viewer-sql {
  display: grid;
  gap: 8px;
}

.table-viewer-sql h4 {
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.table-viewer-sql pre {
  min-height: 0;
  max-height: 280px;
}

.table-textarea {
  min-height: 82px;
  resize: vertical;
}

.table-definition-rows {
  overflow-x: auto;
}

#tableColumnRows,
#tableIndexRows {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#tableColumnRows::-webkit-scrollbar,
#tableIndexRows::-webkit-scrollbar {
  display: none;
}

.table-definition-field-table {
  min-width: 1440px;
}

.constraint-field-table {
  min-width: 0;
}

.field-table-head.table-column-row,
.row.table-column-row {
  grid-template-columns: 18px repeat(2, minmax(120px, 1fr)) minmax(82px, 0.72fr) repeat(5, 58px) repeat(2, minmax(110px, 0.9fr)) repeat(3, minmax(130px, 1.15fr)) 32px;
}

.field-table-head.table-index-row,
.row.table-index-row {
  grid-template-columns: 18px minmax(150px, 1.1fr) minmax(180px, 1.4fr) 64px minmax(120px, 0.9fr) minmax(180px, 1.4fr) minmax(150px, 1fr) 32px;
}

.field-table-head.table-constraint-row,
.row.table-constraint-row {
  grid-template-columns: 18px minmax(150px, 1.1fr) minmax(118px, 0.8fr) minmax(160px, 1.1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(100px, 0.75fr) minmax(100px, 0.75fr) minmax(180px, 1.35fr) minmax(150px, 1fr) 32px;
}

.field-table-head.table-constraint-summary-row,
.row.table-constraint-summary-row {
  grid-template-columns: 18px minmax(112px, 0.7fr) minmax(140px, 1fr) minmax(180px, 1.4fr) 34px 32px;
}

.row.table-constraint-summary-row {
  align-items: start;
}

.row.table-constraint-summary-row .table-row-drag-handle,
.row.table-constraint-summary-row .remove-button,
.row.table-constraint-summary-row .constraint-expand-button {
  align-self: start;
}

.field-table-head.table-history-row,
.row.table-history-row {
  grid-template-columns: 18px 0.8fr 0.9fr 1fr 2fr 32px;
}

.table-row-drag-handle {
  height: 38px;
}

.constraint-card-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.constraint-card-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.constraint-card-field-aligned {
  align-content: start;
  grid-template-rows: auto 38px minmax(16px, auto);
}

.constraint-card-field.wide,
.constraint-card-hint.wide {
  grid-column: 1 / -1;
}

.constraint-card-field > span {
  color: var(--color-text-primary);
  font-size: 11px;
  font-weight: 900;
}

.constraint-card-field small,
.constraint-card-hint {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}

.constraint-card-field-aligned small {
  min-height: 16px;
}

.constraint-action-control {
  display: block;
  min-width: 0;
  position: relative;
}

.constraint-action-input {
  background-color: var(--color-bg);
  padding-right: 42px;
}

.constraint-action-input[readonly] {
  cursor: default;
}

.constraint-action-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--color-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text-secondary);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 40px;
}

.constraint-action-control.is-open .constraint-action-toggle,
.constraint-action-toggle:hover,
.constraint-action-toggle:focus-visible {
  color: var(--veldoc-primary);
  outline: 0;
}

.constraint-action-toggle-icon {
  background-color: currentColor;
  display: block;
  height: 18px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 7l4 4 4-4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transition: transform 160ms ease;
  width: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 7l4 4 4-4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.constraint-action-toggle[aria-expanded="true"] .constraint-action-toggle-icon {
  transform: rotate(180deg);
}

.constraint-action-menu {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
  left: 0;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 80;
}

.constraint-action-menu[hidden] {
  display: none;
}

.constraint-action-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.constraint-action-option:hover,
.constraint-action-option:focus-visible {
  background: var(--color-bg-secondary);
  outline: 0;
}

.constraint-action-option.active {
  background: var(--veldoc-primary-light);
  color: var(--veldoc-primary-text);
}

.constraint-detail-cell {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.constraint-row-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.constraint-detail-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-left: 26px;
  padding: 10px;
}

.constraint-expand-button {
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.constraint-expand-button:hover,
.constraint-expand-button:focus-visible {
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary);
  outline: 0;
}

.constraint-expand-icon {
  background-color: currentColor;
  display: block;
  height: 18px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 7l4 4 4-4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  transition: transform 160ms ease;
  width: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M5 7l4 4 4-4' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.constraint-expand-button[aria-expanded="true"] .constraint-expand-icon {
  transform: rotate(180deg);
}

.table-section-help,
.table-column-help {
  display: inline-flex;
  position: relative;
}

.section-help-button {
  font-size: 10px;
  height: 16px;
  width: 16px;
}

.table-section-help-popover,
.table-column-help-popover {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
  color: var(--color-text-primary);
  display: grid;
  gap: 10px;
  left: 0;
  padding: 14px 44px 14px 16px;
  position: absolute;
  top: calc(100% + 12px);
  width: min(520px, calc(100vw - 48px));
  z-index: 45;
}

.table-section-help-popover::before,
.table-column-help-popover::before {
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  bottom: 100%;
  content: "";
  height: 10px;
  left: 8px;
  position: absolute;
  top: -6px;
  transform: rotate(45deg);
  width: 10px;
}

.table-section-help-popover strong,
.table-column-help-popover strong {
  font-size: 13px;
  font-weight: 900;
}

.table-section-help-close,
.table-column-help-close {
  align-items: center;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 26px;
}

.table-section-help-close:hover,
.table-section-help-close:focus-visible,
.table-column-help-close:hover,
.table-column-help-close:focus-visible {
  background: var(--veldoc-primary-light);
  border-color: var(--veldoc-primary);
  color: var(--veldoc-primary-text);
  outline: 0;
}

.table-section-help-note,
.table-column-help-note {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.table-section-help-subtitle {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-primary);
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
  padding-top: 10px;
}

.table-section-help-list,
.table-column-help-list {
  display: grid;
  gap: 6px;
  margin: 0;
}

.table-section-help-list div,
.table-column-help-list div {
  display: grid;
  gap: 8px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.table-section-help-list dt,
.table-column-help-list dt {
  color: var(--color-text-primary);
  font-size: 11px;
  font-weight: 900;
}

.table-section-help-list dd,
.table-column-help-list dd {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}

.table-required-marker {
  color: #ef4444;
  display: inline;
  margin-left: 2px;
}

.field .table-required-marker {
  color: #ef4444;
}

.table-cell-input {
  font-size: 12px;
  font-weight: 700;
}

.table-cell-input:disabled {
  background: var(--color-bg-secondary);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.index-column-picker {
  align-items: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 38px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 6px;
  scrollbar-width: none;
  width: 100%;
}

.index-column-picker::-webkit-scrollbar {
  display: none;
}

.index-column-picker:focus-within {
  border-color: var(--veldoc-primary);
  box-shadow: 0 0 0 3px var(--veldoc-primary-light);
}

.index-column-chip-list {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
}

.index-column-chip {
  align-items: center;
  background: var(--veldoc-primary-light);
  border: 1px solid var(--veldoc-primary);
  border-radius: 999px;
  color: var(--veldoc-primary-text);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  height: 26px;
  max-width: 100%;
  padding: 0 4px 0 9px;
  white-space: nowrap;
}

.index-column-chip.invalid {
  background: #fffafa;
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.index-column-chip button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: currentColor;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 18px;
}

.index-column-chip button:hover,
.index-column-chip button:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  outline: 0;
}

.index-column-input {
  background: transparent;
  border: 0;
  box-shadow: none;
  flex: 0 0 92px;
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  min-width: 72px;
  padding: 0 4px;
}

.index-column-input:focus {
  box-shadow: none;
}

.index-column-suggestions {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 4px;
  max-height: 168px;
  overflow: auto;
  padding: 6px;
  position: fixed;
  z-index: 1200;
}

.index-column-suggestion {
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 8px;
  text-align: left;
}

.index-column-suggestion:hover,
.index-column-suggestion:focus-visible {
  background: var(--veldoc-primary-light);
  color: var(--veldoc-primary-text);
  outline: 0;
}

@media (max-width: 1180px) {
  .app-shell,
  .app-shell.preview-closed,
  .app-shell.side-menu-hidden,
  .app-shell.side-menu-collapsing,
  .app-shell.preview-closed.side-menu-hidden,
  .app-shell.preview-closed.side-menu-collapsing {
    display: block;
  }

  .side-menu,
  .preview-panel {
    max-height: 70vh;
    position: static;
  }

  .side-menu {
    border-radius: 0;
    bottom: 0;
    box-shadow: 16px 0 36px rgba(0, 0, 0, 0.18);
    height: 100vh;
    left: 0;
    max-height: none;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    width: min(var(--side-menu-width), 84vw);
    z-index: 830;
  }

  .app-shell.file-drawer-open .side-menu {
    transform: translateX(0);
  }

  .app-shell.side-menu-hidden .side-menu {
    display: flex;
  }

  .side-menu-resizer {
    display: none;
  }

  .preview-panel {
    margin-top: 18px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 10px;
  }

  .top-button {
    bottom: 12px;
    right: 12px;
  }

  .topbar,
  .preview-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .form-grid,
  .field-grid,
  .field-grid.three,
  .path-grid,
  .auth-top-grid,
  .auth-details,
  .spec-meta-grid,
  .spec-detail-grid,
  .spec-card-top,
  .spec-route,
  .spec-chip-row,
  .spec-section-grid,
  .spec-success-response-body,
  .viewer-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-badge {
    justify-self: start;
  }

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

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

  .auth-policy-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-topic-grid,
  .help-shortcut-list div {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-counter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-counter:nth-child(2n) {
    border-right: 0;
  }

  .spec-detail-panel summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .spec-detail-summary-meta {
    margin-left: 0;
  }

  .span-2,
  .field.wide {
    grid-column: auto;
  }

  .row,
  .row.compact,
  .row.path-param-row,
  .row.query-param-row,
  .row.body-row,
  .row.response-row,
  .row.error-row,
  .header-card-top,
  .field-table-head.path-param-row,
  .field-table-head.compact,
  .field-table-head.query-param-row,
  .field-table-head.action-param-row,
  .field-table-head.body-row,
  .field-table-head.response-row,
  .field-table-head.error-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-table-head {
    display: none;
  }

  .remove-button {
    width: 100%;
  }

  .header-remove {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
  }
}

@media (max-width: 820px) {
  .table-viewer-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-viewer-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .constraint-card-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .wbs-task-item {
    margin-left: min(calc(var(--wbs-depth, 0) * 12px), 48px);
  }

  .wbs-task-card {
    min-width: 980px;
  }
}
