:root {
  color-scheme: dark;
  --theme-name: dark;
  --theme-is-dark: 1;
  --theme-is-light: 0;
  --bg: #0c1117;
  --bg-top: #162536;
  --bg-bottom: #091019;
  --panel: #121a23;
  --panel-2: #182231;
  --panel-gradient-end: #101823;
  --surface-1: #121a23;
  --surface-2: #182231;
  --surface-3: #101823;
  --surface-4: #0f1721;
  --surface-hover: #122233;
  --surface-strong: #16314a;
  --surface-strong-hover: #1f3d59;
  --border: #27364a;
  --border-strong: #355777;
  --text: #d8e3f1;
  --text-strong: #dceaff;
  --text-inverse: #f7fbff;
  --muted: #93a9c1;
  --link: #81c9ff;
  --accent: #3fa9f5;
  --focus-ring: rgba(72, 129, 240, 0.2);
  --overlay: rgba(8, 12, 18, 0.65);
  --modal-surface: #101a26;
  --modal-border: #335474;
  --modal-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
  --drawer-surface: linear-gradient(180deg, #111d2c, #0d1621);
  --drawer-border: #325272;
  --drawer-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  --left-rail-start: #101c2a;
  --left-rail-end: #0a121c;
  --shell-card-border: rgba(76, 120, 180, 0.45);
  --shell-card-bg:
    linear-gradient(180deg, rgba(11, 22, 37, 0.96), rgba(8, 16, 28, 0.96)),
    linear-gradient(120deg, rgba(94, 70, 247, 0.15), rgba(79, 143, 247, 0.12));
  --shell-card-shadow: 0 12px 32px rgba(2, 8, 20, 0.32);
  --brand-gradient-start: #5e46f7;
  --brand-gradient-end: #4f8ff7;
  --brand-shadow: 0 10px 24px rgba(78, 134, 247, 0.24);
  --primary-btn-bg: #1f6cab;
  --primary-btn-border: #2f86d0;
  --interactive-surface: #0f1721;
  --interactive-surface-hover: #142435;
  --interactive-surface-border: #223349;
  --tab-surface: #101d2a;
  --tab-surface-active: #132739;
  --tab-border: #2a3d53;
  --tab-border-active: #3a6b94;
  --button-subtle-border: #30465e;
  --button-subtle-hover: #122233;
  --selection-surface: #17324a;
  --splitter-handle-bg: #101b29;
  --splitter-handle-hover-bg: #15283b;
  --menu-hover-bg: #162638;
  --menu-danger-hover-bg: #3a1920;
  --menu-surface: #0f1721;
  --menu-border: #30465e;
  --menu-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --menu-danger-text: #ffb7bf;
  --input-label-color: #dceaff;
  --copy-btn-color: #c7d8ef;
  --copy-btn-hover-color: #eef5ff;
  --info-banner-border: #33557a;
  --info-banner-bg: linear-gradient(180deg, rgba(29, 47, 69, 0.94) 0%, rgba(17, 28, 41, 0.96) 100%);
  --inline-secret-border: #31475f;
  --inline-secret-bg: rgba(10, 16, 25, 0.94);
  --inline-secret-text: #d9e6f3;
  --compact-action-border: rgba(53, 87, 119, 0.55);
  --compact-action-bg: rgba(22, 49, 74, 0.52);
  --compact-action-text: rgba(220, 234, 255, 0.72);
  --compact-action-hover-border: rgba(79, 143, 247, 0.75);
  --compact-action-hover-bg: rgba(24, 51, 76, 0.88);
  --compact-action-hover-text: rgba(220, 234, 255, 0.92);
  --request-dirty-bg: linear-gradient(180deg, #78b8ff, #4794ff);
  --request-dirty-shadow: 0 0 0 1px rgba(71, 148, 255, 0.18), 0 0 10px rgba(71, 148, 255, 0.24);
  --drop-target-border: rgba(88, 153, 226, 0.52);
  --drop-target-bg: rgba(21, 39, 59, 0.92);
  --drop-target-shadow: inset 0 0 0 1px rgba(88, 153, 226, 0.18);
  --hover-card-border: rgba(94, 133, 182, 0.5);
  --hover-card-bg: linear-gradient(180deg, rgba(16, 27, 40, 0.98), rgba(10, 17, 26, 0.98));
  --hover-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  --button-default-border: #355777;
  --button-default-bg: #16314a;
  --button-default-hover-bg: #1f3d59;
  --button-default-text: #dceaff;
  --button-danger-bg: #4a1f25;
  --button-danger-border: #83313b;
  --editor-surface-border: #30465e;
  --editor-surface-bg: #0c141e;
  --editor-surface-text: #d2e3f6;
  --table-border-color: #26384b;
  --placeholder-text: rgba(147, 169, 193, 0.52);
  --toggle-track-bg: #24384c;
  --toggle-track-border: #355777;
  --toggle-thumb-bg: linear-gradient(180deg, #dbe9f8, #b8d0ea);
  --toggle-thumb-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  --toggle-active-bg: linear-gradient(135deg, #21598a, #1f6cab);
  --toggle-active-border: #4c8ec5;
  --toggle-focus-outline: rgba(92, 165, 255, 0.85);
  --badge-border: #3a4f67;
  --badge-bg: #1a2a3c;
  --badge-text: #d3e6fb;
  --badge-gql-bg: #3a1e4f;
  --badge-gql-border: #7045a0;
  --method-default-bg: #223245;
  --method-get-bg: #134b38;
  --method-get-border: #209167;
  --method-post-bg: #173d61;
  --method-post-border: #2a6da7;
  --method-put-bg: #5a3e0f;
  --method-put-border: #8d6824;
  --method-patch-bg: #4f2f63;
  --method-patch-border: #7a4c97;
  --method-delete-bg: #5f1f26;
  --method-delete-border: #9a3b47;
  --method-head-bg: #164a53;
  --method-head-border: #2b8a97;
  --method-options-bg: #5f341d;
  --method-options-border: #a05e33;
  --running-card-text: #dceaff;
  --running-card-border: rgba(123, 193, 255, 0.5);
  --running-card-bg: radial-gradient(circle at top left, rgba(62, 141, 222, 0.18), transparent 36%), linear-gradient(180deg, rgba(19, 41, 61, 0.98), rgba(11, 22, 33, 0.98));
  --running-card-bg-prominent: radial-gradient(circle at top left, rgba(62, 141, 222, 0.16), transparent 40%), linear-gradient(180deg, rgba(20, 43, 64, 0.98), rgba(10, 21, 31, 0.98));
  --running-card-shadow: 0 18px 40px rgba(4, 12, 18, 0.34);
  --running-card-shadow-prominent: 0 20px 42px rgba(4, 12, 18, 0.34);
  --spinner-border: rgba(220, 234, 255, 0.18);
  --spinner-top-border: #7bc1ff;
  --auth-section-border: #26384b;
  --auth-section-bg: rgba(14, 24, 36, 0.78);
  --status-ready-bg: #153c30;
  --status-ready-border: #209167;
  --status-attention-bg: #4f3113;
  --status-attention-border: #c98929;
  --status-attention-text: #ffebc6;
  --status-risk-low-bg: #173842;
  --status-risk-low-border: #2c7282;
  --status-risk-high-bg: #4a1820;
  --status-risk-high-border: #d65f6f;
  --status-risk-high-text: #ffe4e8;
  --warning-text-color: #fbbf24;
  --lint-panel-border: #30465e;
  --lint-panel-bg: rgba(12, 20, 30, 0.88);
  --lint-valid-border: rgba(32, 145, 103, 0.55);
  --lint-valid-bg: linear-gradient(180deg, rgba(13, 37, 30, 0.92), rgba(11, 24, 22, 0.92));
  --lint-invalid-border: rgba(154, 59, 71, 0.55);
  --lint-invalid-bg: linear-gradient(180deg, rgba(45, 18, 25, 0.9), rgba(27, 12, 16, 0.92));
  --lint-invalid-text: #f5d7dc;
  --toast-border: #2d5478;
  --toast-bg: #10263a;
  --import-summary-border: #274768;
  --import-summary-bg: #0e1824;
  --footer-link-color: #89a7c8;
  --footer-link-hover: #d7e8fb;
  --footer-separator: #5e7a97;
  --search-highlight-bg: rgba(111, 74, 255, 0.24);
  --search-highlight-text: #f7f9ff;
  --matrix-header-border: rgba(63, 103, 140, 0.45);
  --matrix-header-bg: linear-gradient(180deg, rgba(18, 37, 56, 0.92) 0%, rgba(13, 26, 40, 0.92) 100%);
  --matrix-header-shadow: inset 0 1px 0 rgba(125, 177, 230, 0.08);
  --matrix-header-hover-border: rgba(88, 138, 184, 0.72);
  --matrix-header-hover-shadow: inset 0 1px 0 rgba(165, 212, 255, 0.12), 0 0 0 1px rgba(58, 104, 147, 0.18);
  --matrix-input-bg: rgba(8, 18, 28, 0.88);
  --matrix-count-border: rgba(76, 120, 180, 0.45);
  --matrix-count-bg: rgba(16, 28, 42, 0.92);
  --pin-surface: #132131;
  --scrollbar-track: #0f1722;
  --scrollbar-track-border: #223246;
  --scrollbar-thumb-start: #4b6d8f;
  --scrollbar-thumb-end: #385471;
  --scrollbar-thumb-hover-start: #5d84aa;
  --scrollbar-thumb-hover-end: #446482;
  --tab-scroll-track-start: #0f1721;
  --tab-scroll-track-end: #0b121b;
  --tab-scroll-track-border: rgba(40, 58, 79, 0.85);
  --tab-scroll-thumb-start: #6f98bf;
  --tab-scroll-thumb-end: #4b6f92;
  --tab-scroll-thumb-hover-start: #83acd2;
  --tab-scroll-thumb-hover-end: #5b7fa3;
  --success: #34d399;
  --danger: #ef4444;
  --method-get: #10b981;
  --method-post: #3b82f6;
  --method-put: #f59e0b;
  --method-patch: #8b5cf6;
  --method-delete: #ef4444;
  --method-head: #06b6d4;
  --method-options: #f97316;
}

:root[data-theme="light"] {
  color-scheme: light;
  --theme-name: light;
  --theme-is-dark: 0;
  --theme-is-light: 1;
  --bg: #f4f8fc;
  --bg-top: #ffffff;
  --bg-bottom: #e9f0f8;
  --panel: #ffffff;
  --panel-2: #f4f8fc;
  --panel-gradient-end: #e6eef8;
  --surface-1: #ffffff;
  --surface-2: #f4f8fc;
  --surface-3: #edf3fb;
  --surface-4: #f8fbff;
  --surface-hover: #e6f0fb;
  --surface-strong: #1f6cab;
  --surface-strong-hover: #165486;
  --border: #bfd0e2;
  --border-strong: #2d5f8f;
  --text: #102235;
  --text-strong: #0b1a29;
  --text-inverse: #f7fbff;
  --muted: #3e5973;
  --link: #155ba0;
  --accent: #1f6cab;
  --focus-ring: rgba(31, 108, 171, 0.2);
  --overlay: rgba(8, 18, 30, 0.35);
  --modal-surface: #f8fbff;
  --modal-border: #b9cade;
  --modal-shadow: 0 18px 44px rgba(16, 34, 53, 0.16);
  --drawer-surface: linear-gradient(180deg, #fbfdff, #eef4fb);
  --drawer-border: #b9cade;
  --drawer-shadow: 0 14px 38px rgba(16, 34, 53, 0.16);
  --left-rail-start: #f4f8fc;
  --left-rail-end: #edf3fb;
  --shell-card-border: rgba(31, 108, 171, 0.35);
  --shell-card-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 252, 0.98)),
    linear-gradient(120deg, rgba(31, 108, 171, 0.09), rgba(27, 83, 131, 0.08));
  --shell-card-shadow: 0 10px 24px rgba(16, 34, 53, 0.14);
  --brand-gradient-start: #1f6cab;
  --brand-gradient-end: #4f8ff7;
  --brand-shadow: 0 10px 24px rgba(31, 108, 171, 0.18);
  --primary-btn-bg: #18588d;
  --primary-btn-border: #2a6da7;
  --interactive-surface: #edf4fb;
  --interactive-surface-hover: #dfeaf6;
  --interactive-surface-border: #b7cce0;
  --tab-surface: #edf4fb;
  --tab-surface-active: #dbe9f8;
  --tab-border: #b9cade;
  --tab-border-active: #6b96c1;
  --button-subtle-border: #a8bfd6;
  --button-subtle-hover: #dfeaf6;
  --selection-surface: #dceaf8;
  --splitter-handle-bg: #d7e4f2;
  --splitter-handle-hover-bg: #c8d9eb;
  --menu-hover-bg: #dfeaf6;
  --menu-danger-hover-bg: #f8dce0;
  --menu-surface: #f8fbff;
  --menu-border: #b9cade;
  --menu-shadow: 0 12px 30px rgba(16, 34, 53, 0.16);
  --menu-danger-text: #9b2233;
  --input-label-color: #14324b;
  --copy-btn-color: #335c84;
  --copy-btn-hover-color: #173c5f;
  --info-banner-border: #a9c1da;
  --info-banner-bg: linear-gradient(180deg, rgba(247, 250, 254, 0.98) 0%, rgba(232, 240, 248, 0.98) 100%);
  --inline-secret-border: #bfd0e2;
  --inline-secret-bg: rgba(239, 245, 252, 0.98);
  --inline-secret-text: #14324b;
  --compact-action-border: rgba(110, 142, 177, 0.58);
  --compact-action-bg: rgba(226, 237, 248, 0.96);
  --compact-action-text: rgba(20, 50, 75, 0.82);
  --compact-action-hover-border: rgba(80, 126, 171, 0.7);
  --compact-action-hover-bg: rgba(211, 226, 241, 0.98);
  --compact-action-hover-text: rgba(11, 26, 41, 0.95);
  --request-dirty-bg: linear-gradient(180deg, #2f8ddd, #1f6cab);
  --request-dirty-shadow: 0 0 0 1px rgba(31, 108, 171, 0.16), 0 0 10px rgba(31, 108, 171, 0.18);
  --drop-target-border: rgba(80, 126, 171, 0.52);
  --drop-target-bg: rgba(218, 232, 245, 0.96);
  --drop-target-shadow: inset 0 0 0 1px rgba(80, 126, 171, 0.14);
  --hover-card-border: rgba(125, 156, 189, 0.58);
  --hover-card-bg: linear-gradient(180deg, rgba(251, 253, 255, 0.99), rgba(238, 244, 251, 0.99));
  --hover-card-shadow: 0 12px 30px rgba(16, 34, 53, 0.16);
  --button-default-border: #a8bfd6;
  --button-default-bg: #edf4fb;
  --button-default-hover-bg: #dfeaf6;
  --button-default-text: #102235;
  --button-danger-bg: #f8dce0;
  --button-danger-border: #d28c97;
  --editor-surface-border: #bfd0e2;
  --editor-surface-bg: #f8fbff;
  --editor-surface-text: #102235;
  --table-border-color: #d4dfeb;
  --placeholder-text: rgba(62, 89, 115, 0.6);
  --toggle-track-bg: #d9e6f2;
  --toggle-track-border: #9eb7d0;
  --toggle-thumb-bg: linear-gradient(180deg, #ffffff, #e6eef6);
  --toggle-thumb-shadow: 0 1px 2px rgba(16, 34, 53, 0.16);
  --toggle-active-bg: linear-gradient(135deg, #2b79b9, #1f6cab);
  --toggle-active-border: #5a93c5;
  --toggle-focus-outline: rgba(31, 108, 171, 0.72);
  --badge-border: #bfd0e2;
  --badge-bg: #edf4fb;
  --badge-text: #14324b;
  --badge-gql-bg: #efe4fb;
  --badge-gql-border: #b795da;
  --method-default-bg: #e6eff8;
  --method-get-bg: #dcf3ea;
  --method-get-border: #67b895;
  --method-post-bg: #dcecfb;
  --method-post-border: #6b9aca;
  --method-put-bg: #f6ead1;
  --method-put-border: #c7a159;
  --method-patch-bg: #ede0f7;
  --method-patch-border: #ad87c9;
  --method-delete-bg: #f8dce0;
  --method-delete-border: #cf8894;
  --method-head-bg: #d9eef1;
  --method-head-border: #69aab4;
  --method-options-bg: #f5e3d9;
  --method-options-border: #c89269;
  --running-card-text: #0b1a29;
  --running-card-border: rgba(80, 126, 171, 0.42);
  --running-card-bg: radial-gradient(circle at top left, rgba(31, 108, 171, 0.12), transparent 36%), linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(235, 243, 250, 0.98));
  --running-card-bg-prominent: radial-gradient(circle at top left, rgba(31, 108, 171, 0.1), transparent 40%), linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(232, 240, 248, 0.98));
  --running-card-shadow: 0 18px 40px rgba(16, 34, 53, 0.16);
  --running-card-shadow-prominent: 0 20px 42px rgba(16, 34, 53, 0.16);
  --spinner-border: rgba(80, 126, 171, 0.2);
  --spinner-top-border: #1f6cab;
  --auth-section-border: #bfd0e2;
  --auth-section-bg: rgba(247, 250, 254, 0.96);
  --status-ready-bg: #dcf3ea;
  --status-ready-border: #67b895;
  --status-attention-bg: #f8ebd6;
  --status-attention-border: #c89b46;
  --status-attention-text: #6c4d12;
  --status-risk-low-bg: #d9eef1;
  --status-risk-low-border: #69aab4;
  --status-risk-high-bg: #f8dce0;
  --status-risk-high-border: #d36a79;
  --status-risk-high-text: #7a1f2d;
  --warning-text-color: #9a6113;
  --lint-panel-border: #bfd0e2;
  --lint-panel-bg: rgba(248, 251, 255, 0.98);
  --lint-valid-border: rgba(103, 184, 149, 0.62);
  --lint-valid-bg: linear-gradient(180deg, rgba(235, 247, 241, 0.98), rgba(223, 243, 234, 0.98));
  --lint-invalid-border: rgba(207, 136, 148, 0.68);
  --lint-invalid-bg: linear-gradient(180deg, rgba(252, 239, 242, 0.98), rgba(248, 220, 224, 0.98));
  --lint-invalid-text: #7a1f2d;
  --toast-border: #a9c1da;
  --toast-bg: #f8fbff;
  --import-summary-border: #bfd0e2;
  --import-summary-bg: #f8fbff;
  --footer-link-color: #4b6d8f;
  --footer-link-hover: #173c5f;
  --footer-separator: #7c97b2;
  --search-highlight-bg: rgba(95, 111, 201, 0.22);
  --search-highlight-text: #102235;
  --matrix-header-border: rgba(125, 156, 189, 0.5);
  --matrix-header-bg: linear-gradient(180deg, rgba(247, 250, 254, 0.98) 0%, rgba(232, 240, 248, 0.98) 100%);
  --matrix-header-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  --matrix-header-hover-border: rgba(80, 126, 171, 0.62);
  --matrix-header-hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 0 0 1px rgba(80, 126, 171, 0.12);
  --matrix-input-bg: rgba(255, 255, 255, 0.98);
  --matrix-count-border: rgba(125, 156, 189, 0.48);
  --matrix-count-bg: rgba(233, 241, 249, 0.98);
  --pin-surface: #eef4fb;
  --scrollbar-track: #edf3fb;
  --scrollbar-track-border: #c7d6e6;
  --scrollbar-thumb-start: #9cb5cf;
  --scrollbar-thumb-end: #7f9ab6;
  --scrollbar-thumb-hover-start: #89a9c8;
  --scrollbar-thumb-hover-end: #6687a7;
  --tab-scroll-track-start: #edf3fb;
  --tab-scroll-track-end: #e1eaf4;
  --tab-scroll-track-border: rgba(183, 204, 224, 0.9);
  --tab-scroll-thumb-start: #97b2cd;
  --tab-scroll-thumb-end: #7695b2;
  --tab-scroll-thumb-hover-start: #84a7c9;
  --tab-scroll-thumb-hover-end: #5f84ab;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg) 38%, var(--bg-bottom) 100%);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  min-height: 100%;
}

html {
  scrollbar-color: var(--scrollbar-thumb-end) var(--scrollbar-track);
  scrollbar-width: thin;
}

* {
  scrollbar-color: var(--scrollbar-thumb-end) var(--scrollbar-track);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-left: 1px solid var(--scrollbar-track-border);
  border-top: 1px solid var(--scrollbar-track-border);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollbar-thumb-start) 0%, var(--scrollbar-thumb-end) 100%);
  border: 2px solid var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover-start) 0%, var(--scrollbar-thumb-hover-end) 100%);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

a {
  color: var(--link);
  text-decoration: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.app-frame {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
}

.left-nav-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, var(--left-rail-start) 0%, var(--left-rail-end) 100%);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
}

.rail-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
  background: linear-gradient(145deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  box-shadow: var(--brand-shadow);
}

.rail-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.rail-bottom {
  margin-top: auto;
}

.rail-link {
  display: block;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 74px;
  padding: 9px 12px;
  color: var(--text);
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
  line-height: 1.2;
}

.rail-link-button {
  width: 100%;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.rail-link:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--text);
}

.app-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.theme-toggle-btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-4);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: var(--surface-hover);
}

.shell-account {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--shell-card-border);
  background: var(--shell-card-bg);
  box-shadow: var(--shell-card-shadow);
}

.shell-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-inverse);
  background: linear-gradient(145deg, var(--brand-gradient-start) 0%, var(--brand-gradient-end) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.shell-account-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.shell-account-name,
.shell-account-email {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shell-account-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.shell-account-email {
  color: var(--muted);
  font-size: 11px;
}

.shell-account-signout {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--shell-card-border);
  background: var(--surface-4);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.shell-account-signout:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(280px, var(--workspace-explorer-width, 336px)) minmax(0, 1fr);
  flex: 1 1 auto;
  gap: 12px;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.workspace-explorer-host {
  position: relative;
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.workspace-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, max-content);
  gap: 10px;
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.workspace-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.workspace-action-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.workspace-action-groups {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.workspace-matrix-btn {
  min-width: 92px;
}

.workspace-group-menu,
.request-tools-dropdown {
  min-width: 180px;
}

.workspace-secondary-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.workspace-secondary-modal-medium {
  width: min(980px, calc(100vw - 64px));
  height: min(78vh, 820px);
}

.workspace-secondary-modal-large {
  width: min(1280px, calc(100vw - 64px));
  height: min(86vh, 940px);
}

.workspace-secondary-modal-body {
  min-height: 0;
  overflow: auto;
}

.workspace-variables-modal {
  width: min(1500px, calc(100vw - 64px));
  max-width: 1500px;
  height: min(86vh, 980px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.workspace-variables-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.workspace-variables-modal-header h3 {
  margin: 0 0 6px;
}

.workspace-variables-modal-header .muted {
  margin: 0;
}

.workspace-variables-modal-body {
  min-height: 0;
  overflow: hidden;
  padding-right: 4px;
}

.workspace-variables-modal-body.workspace-secondary-modal-body {
  overflow: auto;
}

.workspace-variables-modal-body .matrix-panel {
  border: 0;
  min-height: 0;
}

.panel {
  border: 1px solid var(--border);
  background-color: var(--panel);
  background-image: linear-gradient(180deg, var(--panel) 0%, var(--panel-gradient-end) 100%);
  border-radius: 12px;
  padding: 10px;
}

.workspace-explorer {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.workspace-explorer-content {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.workspace-explorer::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.workspace-explorer::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-left: 1px solid var(--scrollbar-track-border);
}

.workspace-explorer::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scrollbar-thumb-start) 0%, var(--scrollbar-thumb-end) 100%);
  border: 2px solid var(--scrollbar-track);
  border-radius: 999px;
}

.workspace-explorer::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scrollbar-thumb-hover-start) 0%, var(--scrollbar-thumb-hover-end) 100%);
}

.workspace-explorer-edge-resizer {
  position: absolute;
  top: 0;
  right: -14px;
  bottom: 0;
  width: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  z-index: 1;
}

.workspace-explorer-edge-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(63, 169, 245, 0.08) 0%, rgba(63, 169, 245, 0.22) 50%, rgba(63, 169, 245, 0.08) 100%);
  transition: background 120ms ease, width 120ms ease;
}

.workspace-explorer-edge-resizer:hover::before {
  width: 2px;
  background: linear-gradient(180deg, rgba(63, 169, 245, 0.2) 0%, rgba(63, 169, 245, 0.46) 50%, rgba(63, 169, 245, 0.2) 100%);
}

.explorer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.explorer-header h3 {
  margin: 0;
  font-size: 16px;
}

.explorer-group h4 {
  margin: 10px 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.explorer-section-header {
  border-radius: 8px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.request-drop-zone {
  border: 1px dashed transparent;
  padding: 0 4px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.request-row {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.request-row.dragging {
  opacity: 0.55;
}

.request-row.active .link-btn {
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px var(--focus-ring);
  background: var(--selection-surface);
}

.request-row-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.link-btn.request-open-btn {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  overflow: hidden;
}

.request-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 28px;
  min-width: 28px;
  flex: 0 0 28px;
}

.folder-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.folder-open-btn {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-open-btn:hover {
  color: var(--text-strong);
}

.folder-section {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.folder-tree-level {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.folder-children {
  display: grid;
  gap: 6px;
  margin-left: 22px;
  padding-left: 6px;
  border-left: 1px solid var(--border);
  min-width: 0;
  max-width: calc(100% - 22px);
  box-sizing: border-box;
}

.folder-children > .line-list {
  margin-left: 8px;
  min-width: 0;
  max-width: calc(100% - 8px);
}

.folder-children > .line-list .link-btn {
  margin-left: 18px;
  width: calc(100% - 18px);
}

.folder-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.folder-toggle.active {
  border-color: var(--border-strong);
  box-shadow: inset 0 0 0 1px var(--focus-ring);
  background: var(--selection-surface);
}

.folder-caret-btn {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 22px;
  padding: 0;
  font-size: 12px;
}

.folder-caret-btn:hover {
  background: var(--interactive-surface-hover);
  color: var(--text);
}

.folder-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.toolbar-menu {
  position: relative;
  display: inline-flex;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.menu-caret {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.compact-icon {
  min-width: 28px;
  min-height: 28px;
  padding: 4px 8px;
}

.folder-actions .compact-icon {
  min-width: 24px;
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 6px;
  border-color: var(--compact-action-border);
  background: var(--compact-action-bg);
  color: var(--compact-action-text);
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
}

.request-actions .compact-icon {
  min-width: 24px;
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 6px;
  border-color: var(--compact-action-border);
  background: var(--compact-action-bg);
  color: var(--compact-action-text);
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
}

.folder-actions .compact-icon:hover {
  border-color: var(--compact-action-hover-border);
  background: var(--compact-action-hover-bg);
  color: var(--compact-action-hover-text);
}

.request-actions .compact-icon:hover {
  border-color: var(--compact-action-hover-border);
  background: var(--compact-action-hover-bg);
  color: var(--compact-action-hover-text);
}

.folder-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--menu-border);
  border-radius: 10px;
  background: var(--menu-surface);
  box-shadow: var(--menu-shadow);
  z-index: 20;
}

.toolbar-dropdown {
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 140px;
}

.folder-menu-item {
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  font: inherit;
}

.folder-menu-item:hover {
  background: var(--menu-hover-bg);
}

.folder-menu-item.danger {
  color: var(--menu-danger-text);
}

.folder-menu-item.danger:hover {
  background: var(--menu-danger-hover-bg);
}

.folder-name-input {
  width: 100%;
}

.command-name {
  width: min(560px, 100%);
  min-width: 260px;
  max-width: 100%;
}

.command-tags {
  width: min(560px, 100%);
  min-width: 260px;
  max-width: 100%;
}

.link-btn {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--interactive-surface-border);
  background: var(--interactive-surface);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

.link-btn:hover {
  background: var(--interactive-surface-hover);
}

.request-name-label,
.environment-name-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.request-dirty-indicator {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--request-dirty-bg);
  box-shadow: var(--request-dirty-shadow);
  flex: 0 0 8px;
}

.drop-target {
  border-color: var(--drop-target-border) !important;
  background: var(--drop-target-bg) !important;
  box-shadow: var(--drop-target-shadow);
}

.tab-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
  min-height: 56px;
  height: 56px;
  padding: 8px 10px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  height: auto;
  min-height: 0;
  align-self: center;
  scrollbar-width: thin;
  scrollbar-color: var(--tab-scroll-thumb-end) var(--tab-scroll-track-start);
}

.tabs::-webkit-scrollbar {
  height: 12px;
}

.tabs::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--tab-scroll-track-start), var(--tab-scroll-track-end));
  border-radius: 999px;
  border: 1px solid var(--tab-scroll-track-border);
}

.tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--tab-scroll-thumb-start), var(--tab-scroll-thumb-end));
  border-radius: 999px;
  border: 2px solid var(--tab-scroll-track-start);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tabs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--tab-scroll-thumb-hover-start), var(--tab-scroll-thumb-hover-end));
}

.tabs::-webkit-scrollbar-corner {
  background: transparent;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  max-width: 360px;
  border: 1px solid var(--tab-border);
  background: var(--tab-surface);
  border-radius: 8px;
  color: var(--text);
  min-height: 36px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

.tab-item.active {
  border-color: var(--tab-border-active);
  background: var(--tab-surface-active);
}

.tab-item-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.close-btn {
  flex: 0 0 auto;
  color: var(--muted);
  padding-left: 2px;
}

.dirty-dot {
  color: var(--warning-text-color);
  font-weight: 700;
}

.tab-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  justify-self: end;
  flex-wrap: nowrap;
  white-space: nowrap;
  height: auto;
  min-height: 0;
}

.tab-actions > .action-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  text-wrap: nowrap;
  min-height: 30px;
  height: 30px;
  align-self: center;
}

.command-bar,
.toolbar-row,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-support-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-version-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-4);
  color: var(--text);
}

.home-version-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-version-chip code {
  color: var(--text-strong);
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
  font-size: 0.92rem;
}

.command-bar {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.command-bar-name-row,
.command-bar-request-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.command-bar-name-row {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.command-bar-request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.command-bar-request-main {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.command-bar-request-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  position: relative;
  z-index: 3;
}

.command-url-field-shell {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  z-index: 1;
}

.command-url-field-shell > .field {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.command-url-hover-card {
  position: fixed;
  left: 0;
  right: auto;
  top: 0;
  bottom: auto;
  transform: translateY(-100%);
  z-index: 40;
  width: max-content;
  max-width: min(720px, calc(100vw - 160px));
  padding: 10px 12px;
  border: 1px solid var(--hover-card-border);
  border-radius: 10px;
  background: var(--hover-card-bg);
  box-shadow: var(--hover-card-shadow);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  pointer-events: none;
}

.command-bar-trailing-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
  justify-self: end;
  position: relative;
  z-index: 3;
}

.command-bar-trailing-actions > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

.command-bar-trailing-actions > .action-btn {
  padding: 8px 9px;
}

.matrix-toolbar-row {
  align-items: center;
}

.matrix-import-target-modal {
  width: min(560px, calc(100vw - 48px));
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: var(--input-label-color);
  font-size: 13px;
  font-weight: 700;
}

.button-column {
  display: grid;
  gap: 8px;
}

.field {
  border: 1px solid var(--border-strong);
  background: var(--surface-4);
  border-radius: 8px;
  color: var(--text-strong);
  min-height: 36px;
  padding: 8px 12px;
  line-height: 1.25;
}

.field.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

select.field {
  min-width: 92px;
  padding-right: 30px;
}

.field.grow {
  flex: 1;
}

.action-btn,
.icon-btn {
  border: 1px solid var(--button-default-border);
  background: var(--button-default-bg);
  color: var(--button-default-text);
  border-radius: 8px;
  min-height: 34px;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1.2;
}

.action-btn:hover,
.icon-btn:hover {
  background: var(--button-default-hover-bg);
}

.action-btn.primary {
  background: var(--primary-btn-bg);
  border-color: var(--primary-btn-border);
}

.action-btn.subtle {
  background: transparent;
  border-color: var(--button-subtle-border);
  color: var(--muted);
}

.action-btn.subtle:hover {
  background: var(--button-subtle-hover);
  color: var(--text);
}

.action-btn.disabled,
.action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.action-btn.danger,
.icon-btn.danger {
  background: var(--button-danger-bg);
  border-color: var(--button-danger-border);
}

.action-btn.small,
.icon-btn {
  font-size: 12px;
  min-height: 30px;
  padding: 6px 10px;
}

.editor {
  min-height: 340px;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.workspace-request-layout {
  position: relative;
  display: grid;
  min-height: 100%;
  min-width: 0;
  overflow: visible;
  padding-bottom: 24px;
  --workspace-inline-response-height: max(560px, 58vh);
}

.workspace-editor-pane,
.workspace-response-pane {
  min-height: 0;
}

.workspace-editor-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.workspace-editor-pane .editor {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.workspace-editor-pane > .command-bar,
.workspace-editor-pane > .workspace-pane-region:not(.editor) {
  flex: 0 0 auto;
}

.workspace-editor-pane > .editor {
  max-height: 100%;
}

.lifecycle-panel {
  max-height: min(170px, 24vh);
  overflow: hidden;
}

.lifecycle-panel-body {
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.lifecycle-panel .toolbar-row {
  align-items: center;
}

.lifecycle-panel .toolbar-row > .input-field,
.lifecycle-panel .toolbar-row > .field,
.lifecycle-panel .toolbar-row > select {
  min-width: 176px;
  flex: 1 1 176px;
  max-width: 100%;
}

.lifecycle-panel .toolbar-row > .action-btn {
  flex: 0 0 auto;
}

.workspace-response-pane {
  display: flex;
  overflow: hidden;
}

.workspace-pane-region {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.workspace-pane-region-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-pane-region-header h3 {
  margin: 0;
  font-size: 14px;
}

.workspace-pane-region-header .muted {
  margin: 4px 0 0;
  font-size: 12px;
}

.collaboration-panel {
  height: min(230px, 26vh);
  max-height: min(230px, 26vh);
  overflow: hidden;
}

.collaboration-grid {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.collaboration-grid > section {
  display: grid;
  gap: 6px;
  min-height: max-content;
}

.collaboration-grid h4,
.collaboration-grid p {
  margin: 0;
}

.collaboration-grid .line-list {
  max-height: 96px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.collaboration-grid .toolbar-row {
  align-items: center;
}

.collaboration-grid .field {
  min-width: min(220px, 100%);
}

.workspace-ai-review-card {
  flex: 0 0 auto;
}

.workspace-ai-review-body {
  display: grid;
  gap: 10px;
  max-height: min(320px, 38vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.workspace-response-region {
  width: 100%;
  gap: 8px;
}

.workspace-response-panel-stack {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.workspace-response-panel-instance {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.workspace-response-panel-instance.hidden {
  display: none;
}

.workspace-response-pane .workspace-response-region .response-panel {
  width: 100%;
  flex: 1 1 auto;
}

.workspace-splitter-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 18px;
  z-index: 2;
  background: var(--surface-2);
}

.workspace-splitter-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
  transform: translateY(-50%);
}

.workspace-splitter-handle {
  position: relative;
  z-index: 3;
  min-width: 34px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--splitter-handle-bg);
  color: var(--muted);
  cursor: ns-resize;
}

.workspace-splitter-handle:hover {
  color: var(--text);
  background: var(--splitter-handle-hover-bg);
}

.workspace-splitter-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.workspace-splitter-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.95;
}

.workspace-resize-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  cursor: ns-resize;
}

body.workspace-resizing {
  cursor: ns-resize;
  user-select: none;
}

body.workspace-explorer-resizing {
  cursor: ew-resize;
  user-select: none;
}

.section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.testing-section-tabs {
  overflow-x: auto;
  padding-bottom: 2px;
}

.testing-section-tabs .section-tab {
  flex: 0 0 auto;
}

.section-tab {
  border: 1px solid var(--tab-border);
  background: var(--tab-surface);
  color: var(--text);
  border-radius: 8px;
  min-height: 34px;
  padding: 7px 12px;
  cursor: pointer;
  line-height: 1.2;
}

.workspace-explorer input.field.compact {
  width: 100%;
}

.section-tab.active {
  background: var(--tab-surface-active);
  border-color: var(--tab-border-active);
}

.editor-area {
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--editor-surface-border);
  background: var(--editor-surface-bg);
  color: var(--editor-surface-text);
  border-radius: 8px;
  padding: 10px;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
}

.editor-area.tall {
  min-height: 260px;
}

.testing-panel {
  display: block;
  min-height: 1px;
}

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

.testing-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.testing-editor {
  min-height: 140px;
}

.testing-suite-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.6fr);
  gap: 12px;
  align-items: start;
}

.api-catalog-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(520px, 1.6fr);
}

.testing-suite-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.testing-suite-panel.wide {
  min-width: 0;
}

.api-catalog-layout .testing-suite-panel.wide {
  grid-column: 1 / -1;
}

.testing-request-picker {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}

.testing-suite-receipt {
  margin-top: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--table-border-color);
  padding: 6px;
  text-align: left;
  vertical-align: top;
}

.data-table.compact td,
.data-table.compact th {
  padding: 4px;
}

.api-generated-docs-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.api-catalog-table {
  table-layout: fixed;
  min-width: 720px;
}

.api-catalog-method-cell {
  width: 80px;
  white-space: nowrap;
}

.api-catalog-cell-wrap {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-catalog-url-cell,
.api-catalog-headers-cell {
  font-family: var(--mono-font, ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace);
}

.settings-card-list {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}

.settings-row-card {
  width: 100%;
  min-width: 0;
}

.settings-form-stack {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.settings-form-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.settings-form-row > .field {
  width: 100%;
  min-width: 0;
}

.settings-organization-closure {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.settings-mcp-grants-panel {
  min-width: 0;
}

.settings-mcp-grants-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.settings-mcp-grants-table {
  min-width: 100%;
}

.settings-mcp-grants-table th,
.settings-mcp-grants-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-mcp-grants-client-cell,
.settings-mcp-grants-workspace-cell,
.settings-mcp-grants-scopes-cell {
  min-width: 0;
}

.kv-grid-null::placeholder,
.kv-grid .field::placeholder {
  color: var(--placeholder-text);
}

.grid-enabled-cell {
  width: 56px;
  text-align: center;
}

.grid-enabled-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.grid-enabled-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--toggle-track-bg);
  border: 1px solid var(--toggle-track-border);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.grid-enabled-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--toggle-thumb-bg);
  box-shadow: var(--toggle-thumb-shadow);
  transition: transform 120ms ease, background-color 120ms ease;
}

.grid-enabled-toggle.active .grid-enabled-track {
  background: var(--toggle-active-bg);
  border-color: var(--toggle-active-border);
}

.grid-enabled-toggle.active .grid-enabled-thumb {
  transform: translateX(14px);
}

.grid-enabled-toggle:focus-visible {
  outline: 2px solid var(--toggle-focus-outline);
  outline-offset: 3px;
  border-radius: 999px;
}

.matrix-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.matrix-scroll-shell {
  min-height: 0;
  overflow: hidden;
}

.matrix-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}

.matrix-scroll-region {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}

.matrix-env-column {
  min-width: 200px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.matrix-env-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name delete"
    "count scope";
  gap: 6px 8px;
  min-width: 180px;
  padding: 6px 8px;
  border: 1px solid var(--matrix-header-border);
  border-radius: 10px;
  background: var(--matrix-header-bg);
  box-shadow: var(--matrix-header-shadow);
}

.matrix-env-name-btn {
  grid-area: name;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.matrix-env-name-btn:hover {
  color: var(--text-strong);
}

.matrix-env-name-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-env-header:focus-within,
.matrix-env-header:hover {
  border-color: var(--matrix-header-hover-border);
  box-shadow: var(--matrix-header-hover-shadow);
}

.matrix-env-name-input {
  grid-area: name;
  flex: 1;
  min-width: 0;
  background: var(--matrix-input-bg);
}

.matrix-env-count-pill {
  grid-area: count;
  justify-self: start;
}

.matrix-env-access-scope {
  grid-area: scope;
  min-width: 0;
  width: 100%;
}

.matrix-env-delete {
  grid-area: delete;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  flex: 0 0 24px;
  align-self: start;
}

.matrix-variable-column {
  min-width: 220px;
}

.matrix-variable-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name delete"
    "count delete";
  gap: 6px 8px;
}

.matrix-variable-name-btn {
  grid-area: name;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.matrix-variable-name-btn:hover {
  color: var(--text-strong);
}

.matrix-variable-name-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-variable-name-input {
  grid-area: name;
  flex: 1;
  min-width: 0;
}

.matrix-variable-count-pill {
  grid-area: count;
  justify-self: start;
}

.matrix-variable-delete {
  grid-area: delete;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  flex: 0 0 24px;
  align-self: start;
}

.matrix-count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--matrix-count-border);
  background: var(--matrix-count-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.matrix .pin {
  position: sticky;
  background: var(--pin-surface);
  z-index: 1;
}

.matrix .pin:nth-child(1) {
  left: 0;
  min-width: 220px;
}

.matrix .pin:nth-child(2) {
  left: 220px;
  min-width: 180px;
}

.matrix .pin:nth-child(3) {
  left: 400px;
}

.matrix-secret-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.matrix-secret-track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--toggle-track-bg);
  border: 1px solid var(--toggle-track-border);
  transition: background-color 120ms ease, border-color 120ms ease;
}

.matrix-secret-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--toggle-thumb-bg);
  transition: transform 120ms ease, background-color 120ms ease;
}

.matrix-secret-toggle.active {
  color: var(--text);
}

.matrix-secret-toggle.active .matrix-secret-track {
  background: var(--toggle-active-bg);
  border-color: var(--toggle-active-border);
}

.matrix-secret-toggle.active .matrix-secret-thumb {
  transform: translateX(14px);
}

.matrix-secret-label {
  min-width: 24px;
  font-size: 12px;
  font-weight: 600;
}

.badge,
.method,
.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  color: var(--badge-text);
}

.badge.gql {
  background: var(--badge-gql-bg);
  border-color: var(--badge-gql-border);
}

.method-method {
  background: var(--method-default-bg);
}

.method-get {
  background: var(--method-get-bg);
  border-color: var(--method-get-border);
}

.method-post {
  background: var(--method-post-bg);
  border-color: var(--method-post-border);
}

.method-put {
  background: var(--method-put-bg);
  border-color: var(--method-put-border);
}

.method-patch {
  background: var(--method-patch-bg);
  border-color: var(--method-patch-border);
}

.method-delete {
  background: var(--method-delete-bg);
  border-color: var(--method-delete-border);
}

.method-head {
  background: var(--method-head-bg);
  border-color: var(--method-head-border);
}

.method-options {
  background: var(--method-options-bg);
  border-color: var(--method-options-border);
}

.response-panel {
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.response-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.response-running-summary,
.response-running-card,
.response-running-banner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--running-card-text);
  font-size: 15px;
  font-weight: 600;
}

.response-running-summary.prominent,
.response-running-card.prominent,
.response-running-banner.prominent {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.response-running-banner {
  width: 100%;
  max-width: 100%;
  padding: 24px 28px;
  border: 1px solid var(--running-card-border);
  border-radius: 20px;
  background: var(--running-card-bg);
  box-shadow: var(--running-card-shadow);
}

.response-running-summary.prominent,
.response-running-card.prominent {
  width: fit-content;
  max-width: 100%;
  min-width: min(100%, 520px);
  padding: 32px 36px;
  border: 1px solid var(--running-card-border);
  border-radius: 20px;
  background: var(--running-card-bg-prominent);
  box-shadow: var(--running-card-shadow-prominent);
}

.response-running-state-empty {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.response-running-banner.prominent {
  min-height: 124px;
  padding: 28px 32px;
  border-radius: 20px;
}

.response-running-spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid var(--spinner-border);
  border-top-color: var(--spinner-top-border);
  animation: response-running-spin 0.8s linear infinite;
  flex: 0 0 auto;
}

.response-running-summary.prominent .response-running-spinner,
.response-running-card.prominent .response-running-spinner,
.response-running-banner.prominent .response-running-spinner {
  width: 42px;
  height: 42px;
  border-width: 6px;
}

.response-running-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.response-running-title {
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.response-body-layout {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.response-body-shell {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  padding-bottom: 4px;
}

.response-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--editor-surface-border);
  padding-bottom: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.response-panel-actions {
  flex: 0 0 auto;
}

@keyframes response-running-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.status-badge.ok {
  background: var(--method-get-bg);
  border-color: var(--method-get-border);
}

.status-badge.fail {
  background: var(--method-delete-bg);
  border-color: var(--method-delete-border);
}

.response-body {
  box-sizing: border-box;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-4);
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable both-edges;
}

.response-body-shell .response-body {
  height: 100%;
}

.content-copy-shell {
  position: relative;
}

.content-copy-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 1;
  opacity: 0.82;
  padding: 0;
  min-width: 0;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--copy-btn-color);
}

.content-copy-btn:hover,
.content-copy-btn:focus-visible {
  opacity: 1;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--copy-btn-hover-color);
}

.info-banner {
  padding: 12px 14px;
  border: 1px solid var(--info-banner-border);
  border-radius: 14px;
  background: var(--info-banner-bg);
}

.inline-secret {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid var(--inline-secret-border);
  border-radius: 12px;
  background: var(--inline-secret-bg);
  color: var(--inline-secret-text);
  white-space: nowrap;
}

.response-body.pretty {
  line-height: 1.45;
}

.response-body.raw {
  line-height: 1.35;
}

.response-format-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.response-diagnostics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.response-diagnostics-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.response-diagnostics-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--lint-panel-border);
  border-radius: 10px;
  background: var(--lint-panel-bg);
}

.response-diagnostics-card.content-copy-shell {
  padding-right: 36px;
}

.response-diagnostics-card.content-copy-shell .content-copy-btn {
  top: 12px;
  right: 14px;
}

.response-diagnostics-card h4 {
  margin: 0;
  font-size: 13px;
}

.response-visualizer {
  display: grid;
  gap: 12px;
}

.response-visualizer-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.response-visualizer-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.response-analysis-metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--lint-panel-border);
  border-radius: 10px;
  background: var(--lint-panel-bg);
}

.response-analysis-metric.tone-up {
  border-color: var(--warning-text);
}

.response-analysis-metric.tone-down {
  border-color: var(--method-get-border);
}

.response-diff-list {
  display: grid;
  gap: 10px;
}

.response-diff-row {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--editor-surface-border);
  border-radius: 10px;
  background: var(--surface-4);
}

.response-diff-row pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 12px;
}

.response-diff-added {
  border-color: var(--method-get-border);
}

.response-diff-removed {
  border-color: var(--method-delete-border);
}

.response-diff-changed {
  border-color: var(--section-tab-active-bg);
}

.workspace-response-popout-btn {
  min-width: 84px;
}

.popout-layout {
  min-height: 100vh;
  padding: 14px;
  background: radial-gradient(circle at top, var(--bg-top) 0%, var(--bg) 38%, var(--bg-bottom) 100%);
}

.response-popout-shell {
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.response-popout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.response-popout-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.response-popout-context {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.response-popout-panel {
  min-height: 0;
  display: flex;
}

.response-popout-panel .response-panel {
  width: 100%;
}

.response-search-highlight {
  background: var(--search-highlight-bg);
  color: var(--search-highlight-text);
  border-radius: 3px;
  padding: 0 1px;
}

.drawer {
  position: fixed;
  top: 18px;
  right: 16px;
  bottom: 18px;
  width: min(620px, calc(100vw - 40px));
  overflow: auto;
  border: 1px solid var(--drawer-border);
  background-color: var(--surface-2);
  background: var(--drawer-surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--drawer-shadow);
  z-index: 30;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.drawer-header h3 {
  margin: 0;
  color: var(--text-strong);
}

.drawer label {
  color: var(--text);
}

.diff-item {
  border: 1px solid var(--editor-surface-border);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 8px;
}

.page-section {
  display: grid;
  gap: 12px;
}

.page-section > h1:focus,
.page-section > h1:focus-visible {
  outline: none;
}

.page-section.narrow {
  max-width: 480px;
}

.auth-screen {
  min-height: calc(100vh - 28px);
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(24, 61, 101, calc(0.18 - (var(--theme-is-light) * 0.08))), transparent 24%),
    linear-gradient(225deg, rgba(39, 82, 146, calc(0.12 - (var(--theme-is-light) * 0.04))), transparent 30%),
    radial-gradient(circle at top, rgba(44, 118, 205, calc(0.12 - (var(--theme-is-light) * 0.03))), transparent 28%),
    linear-gradient(180deg, var(--surface-1), var(--surface-2));
}

.auth-stage {
  width: min(560px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand > div {
  display: grid;
  gap: 2px;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.auth-brand span {
  color: var(--muted);
  font-size: 12px;
}

.auth-brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(120, 82, 255, 0.92), rgba(69, 146, 236, 0.92)),
    linear-gradient(180deg, rgba(10, 18, 34, 0.9), rgba(8, 14, 26, 0.94));
  border: 1px solid rgba(164, 191, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 22px rgba(66, 116, 221, 0.24);
}

.auth-brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(0deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.08) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255, 255, 255, 0.08) calc(100% - 1px));
  background-size: auto, 100% 13px, 13px 100%;
  pointer-events: none;
}

.auth-brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.auth-brand-mark-text {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: block;
  color: #eef6ff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  transform: translate(-50%, -42%);
  white-space: nowrap;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 40px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--shell-card-border);
  border-radius: 28px;
  background:
    var(--shell-card-bg),
    linear-gradient(90deg, rgba(64, 112, 194, calc(0.08 - (var(--theme-is-light) * 0.03))), transparent 46%);
  box-shadow: 0 28px 80px rgba(16, 34, 53, calc(0.42 - (var(--theme-is-light) * 0.28)));
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(91, 78, 245, calc(0.14 - (var(--theme-is-light) * 0.05))), transparent 24%),
    linear-gradient(0deg, transparent 0, transparent calc(100% - 1px), rgba(76, 102, 147, calc(0.12 - (var(--theme-is-light) * 0.06))) calc(100% - 1px)),
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(76, 102, 147, calc(0.12 - (var(--theme-is-light) * 0.06))) calc(100% - 1px));
  background-size: auto, 100% 64px, 64px 100%;
  pointer-events: none;
  opacity: 0.8;
}

.auth-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(116, 76, 249, 0.9), rgba(68, 147, 234, 0.9), rgba(116, 76, 249, 0));
  pointer-events: none;
}

.auth-card-header,
.auth-mode-toggle,
.auth-status,
.auth-form,
.auth-divider,
.auth-provider-grid,
.auth-footer {
  position: relative;
  z-index: 1;
}

.auth-card-header h2 {
  margin: 0 0 10px;
  font-size: 42px;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.auth-card-header p {
  margin: 0;
  color: var(--muted);
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 22px 0 18px;
  padding: 5px;
  border: 1px solid var(--interactive-surface-border);
  border-radius: 16px;
  background: var(--interactive-surface);
}

.auth-mode-btn {
  border: 0;
  min-height: 42px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.auth-mode-btn.active {
  background: linear-gradient(135deg, #6e45f5, #3a8de3);
  color: #f6fbff;
  font-weight: 700;
}

.auth-status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.auth-status.info {
  background: rgba(34, 88, 145, calc(0.22 - (var(--theme-is-light) * 0.08)));
  border: 1px solid rgba(88, 153, 226, calc(0.34 - (var(--theme-is-light) * 0.12)));
  color: var(--text);
}

.auth-status.error {
  background: rgba(110, 28, 40, calc(0.26 - (var(--theme-is-light) * 0.14)));
  border: 1px solid rgba(208, 78, 104, calc(0.36 - (var(--theme-is-light) * 0.12)));
  color: var(--text);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-input {
  min-height: 48px;
  border-radius: 14px;
  border-color: var(--interactive-surface-border);
  background: var(--surface-1);
  color: var(--text);
}

.auth-input:focus {
  outline: none;
  border-color: #5ca7ff;
  box-shadow: 0 0 0 3px rgba(72, 129, 240, 0.18);
}

.auth-submit-btn {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #6e45f5, #4493ea);
  color: #f7fbff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 32px rgba(57, 103, 219, 0.24);
}

.auth-submit-btn:hover {
  filter: brightness(1.06);
}

.auth-inline-link {
  align-self: center;
  border: 0;
  padding: 4px 8px;
  background: transparent;
  color: #8e6bff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: color 120ms ease, text-shadow 120ms ease;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
  color: #a98bff;
  text-shadow: 0 0 18px rgba(110, 69, 245, 0.2);
  outline: none;
}

.auth-divider {
  position: relative;
  margin: 22px 0 18px;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  position: relative;
  padding: 0 10px;
  background: var(--surface-1);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--interactive-surface-border);
  border-radius: 14px;
  background: var(--surface-1);
  color: var(--text-strong);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth-provider-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.auth-footer {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.auth-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.panel-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel-grid > .panel {
  min-width: 0;
}


.onboarding-card-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  max-width: 980px;
}

.onboarding-settings-card {
  display: grid;
  gap: 14px;
}

.onboarding-field-stack {
  display: grid;
  gap: 14px;
}

.onboarding-field-group {
  display: grid;
  gap: 6px;
  align-content: start;
}

.onboarding-divider-group {
  padding-top: 14px;
  border-top: 1px solid var(--shell-card-border);
}

.auth-editor-panel {
  display: grid;
  gap: 0;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.auth-editor-panel.auth-editor-panel-compact {
  height: auto;
  max-height: none;
  align-self: start;
}

.auth-editor-shell {
  display: grid;
  align-content: start;
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
  padding-right: 6px;
  scroll-padding-bottom: 16px;
}

.auth-editor-shell.auth-editor-shell-compact {
  height: auto;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.auth-editor-shell .field {
  scroll-margin-bottom: 16px;
}

.auth-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--auth-section-border);
  border-radius: 12px;
  background: var(--auth-section-bg);
}

.auth-section-header {
  display: grid;
  gap: 6px;
}

.auth-section-title {
  margin: 0;
  font-size: 14px;
}

.auth-section-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.auth-form-grid {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.auth-field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.auth-field-wide {
  grid-column: 1 / -1;
}

.auth-field-compact {
  max-width: 380px;
}

.auth-field-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-auth-shell {
  display: grid;
  gap: 16px;
  align-content: start;
}

.folder-auth-shell.folder-auth-shell-compact {
  gap: 12px;
  grid-auto-rows: max-content;
}

.folder-auth-header {
  display: grid;
  gap: 8px;
}

.folder-auth-header.folder-auth-header-compact {
  gap: 6px;
  align-content: start;
}

.folder-auth-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.folder-auth-title-row h3 {
  margin: 0;
}

.folder-auth-shell.folder-auth-shell-compact .auth-editor-panel {
  align-self: start;
  justify-self: stretch;
}

.folder-auth-shell.folder-auth-shell-compact .auth-section {
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.folder-auth-shell.folder-auth-shell-compact .auth-resolution-card {
  gap: 6px;
  padding: 10px;
}

.folder-auth-shell.folder-auth-shell-compact .auth-resolution-badges {
  gap: 6px;
}

.folder-auth-shell.folder-auth-shell-compact .auth-help {
  line-height: 1.35;
}

.auth-editor-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.auth-help,
.auth-status {
  margin: 0;
}

.auth-share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--text);
}

.auth-resolution-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--shell-card-border);
  border-radius: 10px;
  background-color: var(--panel-2);
  background-image: var(--shell-card-bg);
  box-shadow: var(--shell-card-shadow);
}

.execution-preview-card {
  position: relative;
}

.execution-preview-card.collapsed {
  align-content: start;
  min-height: 54px;
  overflow: hidden;
}

.execution-preview-card.collapsed .execution-preview-summary {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.execution-preview-risk-block {
  display: grid;
  gap: 6px;
}

.execution-preview-risk-list {
  gap: 4px;
}

.execution-preview-risk-signal {
  display: grid;
  gap: 2px;
}

.execution-preview-toggle {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
}

.expandable-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.expandable-panel-toggle {
  position: static;
  flex: 0 0 auto;
}

.auth-resolution-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.auth-resolution-list {
  gap: 4px;
  font-size: 12px;
}

.request-variable-resolution-card {
  margin-top: 10px;
}

.auth-readiness-ready {
  background: var(--status-ready-bg);
  border-color: var(--status-ready-border);
}

.auth-readiness-needs-attention {
  background: var(--status-attention-bg);
  border-color: var(--status-attention-border);
  color: var(--status-attention-text);
}

.execution-risk-low {
  background: var(--status-risk-low-bg);
  border-color: var(--status-risk-low-border);
}

.execution-risk-moderate {
  background: var(--status-attention-bg);
  border-color: var(--status-attention-border);
  color: var(--status-attention-text);
}

.execution-risk-high {
  background: var(--status-risk-high-bg);
  border-color: var(--status-risk-high-border);
  color: var(--status-risk-high-text);
}

.auth-flow-toolbar {
  align-items: stretch;
}

.auth-device-panel {
  margin-top: 0;
}

.warning-text {
  color: var(--warning-text-color);
  margin: 4px 0;
}

.json-lint-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lint-panel-border);
  background: var(--lint-panel-bg);
}

.json-lint-panel.valid {
  border-color: var(--lint-valid-border);
  background: var(--lint-valid-bg);
}

.json-lint-panel.invalid {
  border-color: var(--lint-invalid-border);
  background: var(--lint-invalid-bg);
}

.json-lint-header,
.json-lint-title-row,
.json-lint-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.json-lint-header {
  justify-content: space-between;
}

.json-lint-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.json-lint-detail,
.json-lint-meta {
  color: var(--muted);
  font-size: 12px;
}

.json-lint-message {
  margin: 0;
  color: var(--lint-invalid-text);
  font-size: 12px;
  line-height: 1.45;
}

.muted {
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 6px;
  z-index: 100;
}

.toast-item {
  border: 1px solid var(--toast-border);
  background: var(--toast-bg);
  border-radius: 8px;
  padding: 8px 10px;
  min-width: 220px;
  display: grid;
  gap: 3px;
}

.toast-context {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.toast-message {
  color: var(--text);
  font-size: 12px;
}

.toast-time {
  color: var(--muted);
  font-size: 11px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: grid;
  place-items: center;
  z-index: 60;
}

.modal-card {
  background: var(--modal-surface);
  border: 1px solid var(--modal-border);
  border-radius: 12px;
  box-shadow: var(--modal-shadow);
  padding: 12px;
  min-width: 320px;
}

.workspace-import-modal {
  width: min(880px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
}

.workspace-import-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-import-modal-header h3,
.workspace-import-modal-header p {
  margin: 0;
}

.workspace-import-modal-header > div {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.workspace-modal-close {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 34px;
}

.workspace-import-modal-body {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.workspace-import-modal-footer {
  justify-content: flex-end;
}

.workspace-import-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-import-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workspace-import-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workspace-import-file-name {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.workspace-import-textarea {
  width: 100%;
  min-height: 240px;
  resize: vertical;
  font-family: var(--mono);
  max-width: 100%;
}

.workspace-import-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.workspace-import-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--import-summary-border);
  border-radius: 10px;
  background: var(--import-summary-bg);
}

.workspace-import-errors {
  margin: 0;
}

.workspace-import-collisions {
  display: grid;
  gap: 8px;
}

.workspace-import-collisions .line-list {
  min-width: 0;
}

.workspace-import-collisions li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.workspace-import-collisions li span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.app-shell-footer {
  padding: 0 22px 18px;
}

.legal-footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-link-color);
  font-size: 0.92rem;
}

.legal-footer-link {
  color: inherit;
  text-decoration: none;
}

.legal-footer-link:hover {
  color: var(--footer-link-hover);
  text-decoration: underline;
}

.legal-footer-separator {
  color: var(--footer-separator);
}

.legal-page {
  max-width: 780px;
}

.export-detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.export-detail-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}

.export-detail-card h2 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.export-detail-card p {
  margin: 0;
}

@media (max-width: 960px) {
  .api-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-form-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .api-catalog-table {
    min-width: 640px;
  }
}

@media (max-width: 1120px) {
  .auth-card {
    padding: 34px 22px 24px;
  }

  .auth-provider-grid {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-explorer-edge-resizer {
    display: none;
  }

  .left-nav-rail {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .app-frame {
    grid-template-columns: 1fr;
    min-width: 0;
    overflow: hidden;
  }

  .rail-links,
  .rail-bottom {
    flex-direction: row;
    margin-top: 0;
    width: auto;
  }

  .app-shell-header {
    justify-content: flex-start;
  }

}

@media (max-width: 720px) {
  .auth-screen {
    padding: 10px;
  }

  .auth-stage {
    border-radius: 20px;
  }
}

.selected-table-row {
  background: rgba(79, 70, 229, 0.12);
}

.workflow-builder-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 3fr) minmax(18rem, 1fr);
  margin-top: 1rem;
}

.workflow-canvas-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-builder-toolbar {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.workflow-canvas {
  position: relative;
  min-height: 40rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    rgba(15, 23, 42, 0.36);
  background-size: 160px 160px;
  overflow: hidden;
}

.workflow-canvas-edges {
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.workflow-edge-line {
  stroke: rgba(96, 165, 250, 0.72);
  stroke-width: 4px;
  stroke-linecap: round;
}

.workflow-edge-label {
  fill: rgba(226, 232, 240, 0.9);
  font-size: 0.85rem;
  text-anchor: middle;
}

.workflow-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, 10rem);
  min-height: 40rem;
}

.workflow-grid-cell {
  border-right: 1px dashed rgba(148, 163, 184, 0.14);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
  padding: 0.75rem;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.workflow-grid-cell-label {
  align-self: end;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.8rem;
}

.workflow-node-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.workflow-node-card-armed {
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.25);
}

.workflow-node-card-selected {
  border-color: rgba(129, 140, 248, 0.72);
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.25);
}

.workflow-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.workflow-node-kind {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.92);
}

.workflow-node-label {
  font-weight: 600;
}

.workflow-node-meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.82);
}

.workflow-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.workflow-edge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 1100px) {
  .workflow-builder-shell {
    grid-template-columns: 1fr;
  }

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