:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #101114;
  color: #ededee;
  font-size: 14px;
  --muted: #8a8c96;
  --line: #292b32;
  --accent: #c5f277;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
}
.settings-wide {
  grid-column: 1 / -1;
}
.project-switcher {
  margin-bottom: 14px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
  gap: 16px;
}
.project-card {
  display: block;
  overflow-wrap: anywhere;
}
.project-card:hover,
.project-card:focus-visible {
  border-color: var(--accent);
}
.project-card h2 {
  margin: 0 0 8px;
}
#project-overrides .field-grid {
  margin-top: 12px;
}
.settings-grid h2 {
  margin-top: 0;
}
.settings-grid [role="status"] {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.profile-picture-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.avatar {
  flex-shrink: 0;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-picture {
  width: 72px;
  height: 72px;
  font-size: 26px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.settings-row > div {
  min-width: 0;
}
.settings-row small {
  display: block;
  margin-top: 5px;
}
.device-label {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 700px) {
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings-row {
    flex-wrap: wrap;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button,
a.mcp-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  border: 1px solid #35373f;
  background: #22242b;
  color: #ededee;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 550;
}
button:hover {
  background: #2d3037;
}
a {
  color: inherit;
  text-decoration: none;
}
button.primary,
a.mcp-continue {
  background: var(--accent);
  color: #17230d;
  border-color: var(--accent);
}
button.primary:hover,
a.mcp-continue:hover {
  background: #d5ffa0;
}
button.subtle {
  background: transparent;
  font-size: 12px;
  padding: 6px 9px;
}
button.danger {
  color: #ffa4a4;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
.muted,
small {
  color: var(--muted);
}
aside {
  width: 236px;
  background: #141519;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 10px 52px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.6px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.8px;
  display: block;
  margin-top: 5px;
}
.brand-icon {
  display: block;
  width: 48px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #676a75;
  padding-left: 14px;
  margin-bottom: 14px;
}
nav a {
  display: flex;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 7px;
  color: #979aa6;
  margin: 5px 0;
  font-size: 13px;
  align-items: center;
  line-height: 20px;
}
nav a .nav-text {
  font-size: 13px;
  flex: 1;
}
nav a.active {
  background: #242a20;
  color: #d2f7a0;
}
nav b {
  font-size: 10px;
  background: #343e2a;
  padding: 2px 6px;
  border-radius: 4px;
}
nav a:hover {
  background: #202228;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection {
  font-size: 10px;
  color: #9da48f;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 17px 10px;
  border-bottom: 1px solid var(--line);
}
i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.user {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  margin-top: 15px;
}
.user span:nth-child(2) {
  flex: 1;
}
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: #32313d;
  border: 1px solid #474252;
  border-radius: 50%;
  color: #d6ccef;
}
main {
  margin-left: 236px;
  padding: 0 clamp(20px, 2vw, 36px);
}
header {
  height: 81px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.divider {
  margin: 0 15px;
  color: #535660;
}
.header-tag {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #72757f;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 39px 0 29px;
  gap: 20px;
}
.heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.heading-actions > button {
  height: 40px;
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}
#confirmation {
  width: 420px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 550;
  margin: 8px 0 9px;
}
h2 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 15px;
  font-weight: 550;
  margin: 0;
}
p {
  line-height: 1.6;
}
.page-heading p {
  margin: 0;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 32px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  background: #18191e;
}
.stat-label {
  align-items: center;
  gap: 8px;
  color: #999da6;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.stat strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 12px 0 6px;
}
.stat small {
  font-size: 10px;
}
.stat .hint {
  color: var(--accent);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 17px;
}
.section-heading a {
  font-size: 11px;
  color: #a7aab3;
}
.route-section > .section-heading {
  flex-wrap: wrap;
  gap: 10px;
}
.route-section .heading-actions {
  margin-top: 0;
}
.section-heading h2 span {
  font-size: 10px;
  padding: 3px 7px;
  background: #26282e;
  border-radius: 4px;
  color: #a5a7b2;
  margin-left: 9px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #18191e;
  padding: 23px;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 10px;
}
.project-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #293323;
  color: #c5ef91;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 19px;
}
.card:nth-child(3n + 2) .project-icon {
  background: #2d2639;
  color: #cab0f4;
}
.card:nth-child(3n) .project-icon {
  background: #24313a;
  color: #a6d5f6;
}
.badge {
  border: 1px solid #3b4332;
  color: #b2cf8e;
  font-size: 9px;
  letter-spacing: 0.5px;
  border-radius: 5px;
  padding: 4px 7px;
}
.badge.off {
  border-color: #454047;
  color: #b3a7b4;
}
.repo {
  font-family: monospace;
  font-size: 10px;
  color: #898c98;
  display: block;
  margin-top: 6px;
  word-break: break-all;
}
.description {
  font-size: 12px;
  color: #9b9da6;
  min-height: 38px;
  margin: 15px 0;
}
.project-stats > span,
.section-heading a,
.repo,
.card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.project-stats {
  display: flex;
  gap: 15px;
  font-size: 11px;
  color: #b1b3bb;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  color: #8c909b;
}
.card-foot a {
  color: #ccd1c3;
}
.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
}
.snippet {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.snippet:first-child {
  padding-top: 0;
}
.snippet:last-child {
  border: 0;
}
.snippet-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.snippet-heading small {
  font-size: 9px;
}
.snippet pre {
  margin: 12px 0 0;
  background: #101115;
  border: 1px solid #262831;
  padding: 12px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
  overflow: auto;
  color: #cbd6b7;
}
.snippet-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.snippet-heading {
  align-items: flex-start;
}
.snippet-heading h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.import-snippet {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.import-snippet h3 {
  overflow-wrap: anywhere;
}
.import-snippet .snippet-code pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  max-height: 260px;
  font-size: 12px;
  line-height: 1.6;
}
.import-snippet details {
  margin: 12px 0;
}
#snippet-import-summary {
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}
button.snippet-icon {
  padding: 7px;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.snippet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 4px 0 8px;
}

.snippet-description,
.snippet-notes p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 13px;
}
.snippet-code {
  margin-top: 8px;
  border: 1px solid #262831;
  border-radius: 7px;
  overflow: hidden;
  background: #101115;
}
.code-heading {
  padding: 5px 10px;
  border-bottom: 1px solid #262831;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.snippet-code-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-right: 6px;
}
.snippet-code-body > button {
  margin-top: 4px;
}
.snippet .snippet-code pre {
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  max-height: 340px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.snippet-notes {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--accent);
  background: #15161b;
  font-size: 12px;
}
.snippet-notes p {
  margin: 6px 0 0;
}
.snippet-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
}
.snippet-toolbar > input {
  flex: 1 1 240px;
}
.snippet-toolbar label {
  min-width: 160px;
  margin: 0;
  flex: 0 1 220px;
}
.snippet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}
.snippet-category-section + .snippet-category-section {
  margin-top: 32px;
}
.snippet-category-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.snippet-category-heading h2 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.snippet-grid > .card {
  padding: 16px;
}
.snippet-grid .snippet {
  padding: 0;
}
#modal.snippet-modal {
  width: min(760px, calc(100vw - 24px));
}
.code-block-editor {
  min-width: 0;
  position: relative;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.code-block-editor legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
}
.block-label-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.block-label-row > label {
  margin: 0;
  min-width: 0;
}
.block-controls {
  display: flex;
  gap: 5px;
}
.code-block-editor textarea {
  font-family: monospace;
}
.category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.category-row > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.category-row > div {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
}
.category-list {
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .snippet-toolbar label {
    flex: 1 1 140px;
    min-width: 0;
  }
}
.activity-row {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.activity-row:last-child {
  border: 0;
}
.status-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #263222;
  color: #b5dd92;
  flex-shrink: 0;
}
.status-icon.failed {
  background: #392727;
  color: #f0a0a0;
}
.status-icon.skipped {
  background: #2b2c32;
  color: #aaa;
}
.activity-row strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.activity-row small {
  font-size: 10px;
}
.activity-row time {
  font-size: 9px;
  color: #878b94;
  margin-left: auto;
}
.empty {
  padding: 35px 22px;
  text-align: center;
  border: 1px dashed #363943;
  border-radius: 10px;
  background: #16171b;
}
.empty .empty-icon .icon {
  width: 25px;
  height: 25px;
}
.empty .empty-icon {
  font-size: 25px;
  color: #b9d999;
  margin-bottom: 12px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  color: #9195a0;
  margin: 0 auto 17px;
  max-width: 340px;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 400px;
  margin: 0;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}
.route-url {
  background: #101115;
  border: 1px solid #282b32;
  border-radius: 6px;
  padding: 12px;
  color: #b8d99a;
  font: 11px monospace;
  margin: 17px 0;
  overflow: auto;
}
.target-list {
  font-size: 11px;
  color: #9a9daa;
  line-height: 1.9;
  margin: 12px 0;
}
.target-list strong {
  color: #d4d5db;
  font-weight: 500;
}
.pill {
  font-size: 9px;
  background: #272b23;
  color: #b5d593;
  border-radius: 4px;
  padding: 3px 6px;
  margin-right: 7px;
}
footer {
  margin-top: 45px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #747783;
  display: flex;
  justify-content: space-between;
}
label {
  display: block;
  font-size: 11px;
  color: #b8bac3;
  margin: 16px 0;
}
input,
textarea,
select {
  display: block;
  background: #111216;
  border: 1px solid #363944;
  color: #e6e7eb;
  padding: 11px 12px;
  border-radius: 6px;
  width: 100%;
  margin-top: 8px;
}
textarea {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: #a8ca80;
  outline: 1px solid #a8ca80;
}
label small {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 7px;
}
dialog {
  background: #1a1b21;
  border: 1px solid #3a3c46;
  color: #eee;
  border-radius: 12px;
  padding: 25px;
  width: 780px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.icon-button {
  border: 0;
  background: none;
  padding: 0 8px;
  font-size: 23px;
  color: #aaa;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#form-error,
#login-error {
  color: #ffadad;
  font-size: 12px;
}
.help {
  font-size: 11px;
  color: #9da2ae;
  line-height: 1.7;
}
.help code {
  color: #c5e5a5;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.destination-editor {
  --destination-toggle-inset: clamp(16px, 8%, 60px);
  position: relative;
  margin-top: 16px;
}
.target-editor {
  border: 1px solid #363944;
  border-radius: 8px;
  padding: 16px;
  margin-top: 0;
}
.target-editor .modal-head {
  gap: 16px;
}
.destination-name {
  font-size: 16px;
  font-weight: 600;
  min-width: 0;
  flex: 1;
}
.target-editor h4 {
  font-size: 12px;
  margin-bottom: 8px;
}
.query-parameter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: 10px;
}
.query-parameter input {
  min-width: 0;
}
details {
  margin-top: 17px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
summary {
  cursor: pointer;
  color: #c0c4ce;
  font-size: 12px;
}
.preview-output {
  background: #101115;
  padding: 14px;
  max-height: 320px;
  overflow: auto;
  font: 11px/1.6 monospace;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.check-label input {
  width: auto;
  margin: 0;
}
.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
  margin-bottom: 16px;
  padding: 16px 18px;
}
.activity-filter-fields {
  display: grid;
  flex: 1 1 360px;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.activity-filters label,
.activity-filters select {
  margin: 0;
}
.activity-select {
  position: relative;
  display: block;
  margin-top: 6px;
}
.activity-select select {
  appearance: none;
  padding: 0 34px 0 11px;
  cursor: pointer;
}
.activity-select::after {
  content: "";
  position: absolute;
  inset: 50% 14px auto auto;
  width: 7px;
  height: 7px;
  border: solid #b8bac3;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.activity-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.activity-filters select,
.activity-filter-actions button {
  min-height: 38px;
  font-size: 12px;
}
.activity-filter-actions button {
  padding: 0 11px;
}
.activity-filter-actions button[type="reset"] {
  border-color: transparent;
}
.activity-filter-actions button[type="reset"]:hover {
  background: #22242b;
}
@media (max-width: 480px) {
  .activity-filter-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
  }
}
@media (forced-colors: active) {
  .activity-select select {
    appearance: auto;
    padding-right: 11px;
  }
  .activity-select::after {
    display: none;
  }
}
.calculation-row {
  min-width: 0;
  margin: 0 0 12px;
  padding: 8px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.calculation-row legend {
  padding: 0 6px;
}
.calculation-row > details + button {
  margin-block-start: 10px;
}
.calculation-formula,
.condition-row {
  display: grid;
  gap: 0.625rem;
  align-items: end;
}
.calculation-formula {
  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr) minmax(6rem, 0.65fr)
    minmax(0, 1fr);
}
.condition-row {
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.7fr) minmax(0, 1fr) auto;
  margin-bottom: 0.75rem;
}
.condition-row > button {
  grid-column: 4;
}
.plane-event-row,
.discord-preview-card {
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  padding: 0.75rem;
  margin-block: 0.75rem;
}
.plane-event-header > label {
  flex: 1 1 11rem;
  margin-block: 0;
}
.plane-event-header {
  align-items: end;
}
.template-variables {
  flex-wrap: wrap;
}
.discord-preview-card p {
  margin-bottom: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .calculation-formula,
  .condition-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .condition-row > button {
    grid-column: 2;
  }
}
.forwarded-field {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.forwarded-field label {
  flex: 1;
  min-width: 0;
  margin: 0;
}
#login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(ellipse at 50% 20%, #24301d55, transparent 65%);
}
.login-card {
  width: 390px;
  max-width: 100%;
  padding: 30px;
}
.login-card .brand-icon {
  width: 100px;
  height: 124px;
  margin-bottom: 24px;
}
.login-card h1 {
  font-size: 30px;
  line-height: 1.25;
}
.login-card .primary {
  width: 100%;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}
.mcp-consent .primary {
  width: auto;
  margin-top: 0;
}
.login-card .mcp-continue {
  margin-top: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #d0efa8;
  color: #1d2a12;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 40px #0008;
  z-index: 100;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  color: #8c909c;
  font-weight: 500;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
.token-box {
  font: 12px monospace;
  word-break: break-all;
  background: #101115;
  padding: 18px;
  border: 1px solid #414d34;
  border-radius: 7px;
  color: #c5ef91;
}
@media (max-width: 1150px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .route-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    position: static;
    width: 100%;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar-heading {
    justify-content: space-between;
    gap: 16px;
  }
  .brand {
    margin: 0;
    font-size: 17px;
  }
  .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
  }
  .menu-toggle .icon {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .menu-toggle .menu-close-icon,
  .menu-expanded .menu-open-icon,
  .navigation-panel {
    display: none;
  }
  .menu-expanded .menu-close-icon {
    display: block;
  }
  .menu-expanded .navigation-panel {
    display: flex;
    padding-top: 12px;
  }
  .brand small,
  .nav-label,
  .sidebar-bottom .connection {
    display: none;
  }
  nav a {
    min-height: 44px;
    margin: 4px 0;
    padding: 12px;
    gap: 12px;
  }
  nav a .nav-text {
    font-size: 14px;
  }
  .sidebar-bottom {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .user {
    margin-top: 0;
    min-height: 44px;
  }
  main {
    margin-left: 0;
    padding: 0 20px;
  }
  header {
    height: 56px;
  }
  .page-heading {
    margin: 27px 0 23px;
    align-items: flex-start;
  }
  h1 {
    font-size: 27px;
  }
  .project-grid,
  .snippet-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 27px;
  }
  .header-tag {
    display: none;
  }
  .heading-actions {
    margin-top: 16px;
  }
  .page-heading .primary {
    font-size: 11px;
    white-space: nowrap;
    margin-top: 16px;
  }
  .heading-actions .primary {
    margin-top: 0;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .query-parameter {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
  }
  .query-parameter label {
    grid-column: 1;
  }
  .query-parameter button {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  footer span {
    display: none;
  }
  .card {
    padding: 19px;
  }
}

.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  vertical-align: middle;
}
nav b {
  line-height: 16px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
}
.navigation-panel {
  flex: 1;
  min-height: 0;
  flex-direction: column;
}
@media (min-width: 761px) {
  .menu-toggle {
    display: none;
  }
  .navigation-panel {
    display: flex;
  }
}

.activity-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  width: 100%;
  min-width: 0;
  max-height: 24rem;
  margin: 12px 0 0;
  padding: 12px;
  background: #101115;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
  overflow: auto;
  text-transform: none;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.route-section + .route-section {
  margin-top: 32px;
}
.route-icon-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
button.route-icon {
  width: 34px;
  height: 34px;
  padding: 7px;
}

#modal.route-modal {
  height: min(820px, 90dvh);
  overflow: hidden;
}
.route-modal #editor {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.route-modal #fields {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.route-modal .modal-head,
.route-basics,
.route-tabs,
.route-modal .modal-actions {
  flex-shrink: 0;
}
.route-basics label {
  margin: 12px 0;
}
.route-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.route-tabs button {
  background: transparent;
  border-color: transparent;
}
.route-tabs button[aria-selected="true"] {
  color: var(--accent);
  background: #263020;
  border-color: #48563a;
}
.route-panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 4px 8px 0;
}
.route-modal .modal-actions {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.route-modal #form-error {
  flex-shrink: 0;
  margin: 8px 0;
}
.target-editor > summary {
  cursor: pointer;
  min-height: 36px;
  align-content: center;
  padding-right: calc(var(--destination-toggle-inset) + 32px);
}
.target-editor > summary strong {
  font-size: 13px;
}
.target-editor > summary span {
  display: block;
  margin: 6px 0 0 18px;
  color: #9da2ae;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.destination-fields {
  padding-top: 16px;
}
#target-editors:not(:empty) + .destination-add-actions {
  margin-top: 16px;
}
button.destination-toggle {
  position: absolute;
  top: 35px;
  right: var(--destination-toggle-inset);
  transform: translateY(-50%);
  width: 42px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.destination-toggle::before,
.destination-toggle::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}
.destination-toggle::before {
  inset: 6px 3px;
  border: 1px solid #656976;
  background: #2b2d35;
}
.destination-toggle::after {
  top: 10px;
  left: 7px;
  width: 12px;
  height: 12px;
  background: #c3c6ce;
}
.destination-toggle[aria-checked="true"]::before {
  border-color: var(--accent);
  background: var(--accent);
}
.destination-toggle[aria-checked="true"]::after {
  left: 23px;
  background: #242d1c;
}
.destination-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.target-editor [data-destination-paused] {
  margin-left: 8px;
}
.test-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  #modal.route-modal {
    padding: 16px;
    height: 92dvh;
    max-height: 92dvh;
  }
  .route-basics .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .route-tabs button {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.route-card .card-top {
  flex-wrap: wrap;
  margin-bottom: 0;
}
.route-card .card-top h3 {
  flex: 1;
  min-width: 100px;
  overflow-wrap: anywhere;
}
.route-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.route-icon-actions {
  flex-shrink: 0;
}
.route-card > .route-url,
.route-card > .target-list {
  margin: 0;
}
.route-card > .row-actions {
  margin-top: 4px;
}
.field-grid > label,
.query-parameter > label {
  min-width: 0;
}
.query-parameter {
  align-items: end;
}
.query-parameter > label {
  margin: 12px 0;
}
.query-parameter > button {
  align-self: end;
  margin-bottom: 12px;
  height: 39px;
  min-width: 30px;
}
.target-editor .destination-name {
  margin-top: 0;
}
.target-editor .modal-head > button {
  flex-shrink: 0;
}

.activity-table {
  table-layout: fixed;
  min-width: 1000px;
}
.activity-table col:nth-child(1),
.activity-table col:nth-child(2) {
  width: 16%;
}
.activity-table col:nth-child(3) {
  width: 6%;
}
.activity-table col:nth-child(4) {
  width: 8%;
}
.activity-table col:nth-child(5) {
  width: 15%;
}
.activity-table col:nth-child(6) {
  width: 31%;
}
.activity-table col:nth-child(7) {
  width: 8%;
}
.activity-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.activity-table .activity-details {
  border: 0;
  margin: 0;
  padding: 0;
}
.activity-exchange-content {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
}
.activity-exchange-content p {
  margin: 0;
}

/* Shared workspace design */
:root {
  --muted: #a3a9b5;
  --line: #303745;
  --accent: #bce98b;
  background: #0e1218;
  color: #edf1f5;
}
body {
  background:
    radial-gradient(ellipse at 80% -20%, #1c2e30 0, transparent 45%), #0e1218;
}
aside:not(.activity-inspector) {
  background: #141a22;
}
main {
  min-width: 0;
}
.page-heading {
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(26px, 3vw, 34px);
}
.card,
.stat {
  background: #1a222c;
  border: 1px solid #303b49;
  border-radius: 12px;
  box-shadow: 0 10px 32px #0002;
}
.stat {
  padding: 22px;
}
button,
a.mcp-continue {
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 15px;
}
button.subtle {
  min-height: 38px;
  font-size: 13px;
  padding: 8px 12px;
}
button.snippet-icon,
button.route-icon {
  min-height: 34px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
label {
  font-size: 13px;
  font-weight: 550;
  color: #c5cdd7;
}
input,
textarea,
select {
  background-color: #101720;
  border-color: #3b4858;
  border-radius: 8px;
  min-height: 42px;
}
select,
.activity-select select {
  appearance: none;
  padding: 10px 42px 10px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aab8c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.activity-select::after {
  display: none;
}
.help,
label small {
  font-size: 12px;
}
.snippet-code,
.activity-body {
  background: #101720;
  border: 1px solid #354252;
  border-radius: 8px;
}
.snippet-category-heading {
  margin-bottom: 14px;
}
.badge {
  letter-spacing: 0.03em;
}
dialog {
  background: #1a222c;
  border-color: #405064;
  box-shadow: 0 24px 80px #0009;
}
#modal.route-modal {
  width: min(1200px, calc(100vw - 40px));
  height: min(900px, 94dvh);
  max-height: 94dvh;
}
.route-tabs {
  gap: 8px;
}
.route-panels {
  padding: 20px 12px 12px 6px;
  scroll-padding-block: 6px;
}
.destination-editor,
.plane-event-row {
  background: #151d27;
  border: 1px solid #364354;
  border-radius: 10px;
}
.plane-event-row {
  padding: 16px;
  margin: 12px 0;
}
.template-variables {
  gap: 6px;
}
.template-variables button.subtle {
  min-height: 32px;
  font-size: 12px;
}
.activity-filters {
  align-items: end;
}
.activity-filter-fields {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}
.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}
.activity-list {
  padding: 0;
  overflow: hidden;
  min-width: 0;
}
.activity-list .table-wrap {
  overflow-x: auto;
}
.activity-table {
  width: 100%;
  table-layout: auto;
}
.activity-table td {
  vertical-align: middle;
}
.activity-table tr.selected {
  background: #26362f;
}
.activity-table small {
  display: block;
  margin-top: 5px;
}
button.activity-select-row {
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 4px 0;
  min-height: 40px;
}
.activity-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--muted);
}
.activity-inspector {
  position: static;
  width: auto;
  inset: auto;
  display: block;
  min-width: 0;
  max-height: 75vh;
  overflow: auto;
  padding: 22px;
}
.inspector-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.inspector-heading h2 {
  margin: 5px 0;
  font-size: 19px;
}
.inspector-heading p {
  margin: 0;
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  color: #a8b9a0;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.status-badge {
  display: inline-flex;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  background: #364353;
  color: #d1dae5;
}
.status-success {
  background: #214738;
  color: #a5efc2;
}
.status-failed {
  background: #542d34;
  color: #ffb4bc;
}
.status-skipped {
  background: #51452b;
  color: #f4d898;
}
.activity-error {
  color: #ffb4bc;
  overflow-wrap: anywhere;
}
.exchange-section h3 {
  font-size: 13px;
  margin: 20px 0 8px;
}
.activity-body {
  margin: 0;
  padding: 14px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.json-key {
  color: #8ecaf6;
}
.json-string {
  color: #bce98b;
}
.json-number {
  color: #f5c37d;
}
.json-literal {
  color: #d3abef;
}
@media (max-width: 1100px) {
  .activity-layout {
    grid-template-columns: 1fr;
  }
  .activity-inspector {
    max-height: none;
  }
  .activity-filter-fields {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
@media (max-width: 600px) {
  .activity-filter-fields {
    grid-template-columns: 1fr;
  }
  .activity-pagination {
    flex-wrap: wrap;
  }
  #modal.route-modal {
    width: calc(100vw - 20px);
  }
}

/* Neutral surfaces and compact controls */
:root {
  --line: #34353b;
  --muted: #a7a8af;
  background: #111214;
}
body {
  background: #111214;
}
aside:not(.activity-inspector) {
  background: #18191c;
}
.card,
.stat,
dialog {
  background: #202124;
  border-color: #393a40;
}
input,
textarea,
select,
.snippet-code,
.activity-body {
  background-color: #151619;
  border-color: #42434a;
}
.destination-editor,
.plane-event-row {
  background: #1a1b1e;
  border-color: #393a40;
}
.discord-inline-preview {
  background: #252629;
  border: 1px solid #414249;
  border-radius: 10px;
  padding: 14px;
  align-self: start;
  min-width: 0;
  margin-top: 14px;
}
.discord-inline-preview h4 {
  color: #e7e7e9;
  font-size: 13px;
  margin: 0 0 10px;
}
.discord-inline-preview > small {
  display: block;
  margin-top: 10px;
}
.discord-inline-preview [data-inline-preview] {
  max-height: 248px;
  overflow: auto;
  scrollbar-gutter: stable;
  font-size: 12px;
}
.discord-inline-preview .compose-preview-gallery img {
  max-height: 100px;
}
.discord-message-pane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.65fr);
  gap: 18px;
  align-items: start;
}
.destination-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.destination-tabs button {
  border-color: transparent;
  background: transparent;
}
.destination-tabs button[aria-pressed="true"] {
  background: #31362d;
  color: var(--accent);
  border-color: #505d43;
}
.destination-tabs span {
  color: var(--muted);
  font-size: 11px;
}
.destination-editor {
  --destination-toggle-inset: 0px;
}
.target-editor > summary {
  padding-right: 138px;
}
.destination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  position: absolute;
  top: 14px;
  right: 14px;
}
button.destination-control {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 8px;
}
button.destination-toggle {
  position: relative;
  inset: auto;
  transform: none;
  flex: none;
  width: 42px;
  height: 26px;
  min-height: 26px;
  margin-inline-end: 8px;
  padding: 0;
  border: 1px solid #65666d;
  border-radius: 99px;
  background: #38393e;
}
.destination-toggle::before {
  display: none;
}
.destination-toggle::after {
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: #e4e4e6;
  transition: transform 0.15s ease;
}
button.destination-toggle[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.destination-toggle[aria-checked="true"]::after {
  left: 4px;
  transform: translateX(16px);
  background: #283023;
}
.destination-rename {
  margin: 0 0 14px;
}
.activity-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
}
.activity-table {
  min-width: 0;
}
.activity-table th,
.activity-table td {
  padding: 12px 10px;
}
.activity-table tr[data-action] {
  cursor: pointer;
}
.activity-table tr[data-action]:hover {
  background: #30342e;
}
.activity-table tr[data-action]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.activity-table td:last-child {
  width: 42px;
}
.activity-table td:last-child button {
  min-height: 32px;
  width: 32px;
  padding: 7px;
  border-color: transparent;
}
.activity-table time {
  white-space: nowrap;
}
.activity-list .table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #55565d transparent;
}
select option {
  background: #25262a;
  color: #efeff0;
}
@supports (appearance: base-select) {
  select,
  select::picker(select) {
    appearance: base-select;
  }
  select {
    background-image: none;
  }
  select::picker-icon {
    color: #b6b7bc;
    transition: rotate 0.15s;
  }
  select:open::picker-icon {
    rotate: 180deg;
  }
  select::picker(select) {
    border: 1px solid #494a50;
    border-radius: 9px;
    background: #25262a;
    box-shadow: 0 12px 30px #0008;
    padding: 5px;
    margin-top: 5px;
  }
  select option {
    border-radius: 6px;
    padding: 9px 11px;
  }
  select option:hover,
  select option:focus {
    background: #3b4038;
  }
  select option:checked {
    color: var(--accent);
    font-weight: 650;
  }
  select option::checkmark {
    color: var(--accent);
  }
}
@media (max-width: 1100px) {
  .activity-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .discord-message-pane {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 520px) {
  .target-editor > summary {
    padding-right: 123px;
  }
  .destination-controls {
    right: 8px;
    gap: 2px;
  }
  .activity-table th,
  .activity-table td {
    padding: 10px 6px;
  }
}

/* Align customizable select contents and keep destination edits in the header. */
@supports (appearance: base-select) {
  select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 14px;
  }
  select::picker-icon {
    margin-left: auto;
    flex: none;
  }
}
[data-destination-pane="conditions"] > details {
  border-top: 0;
  margin-top: 0;
  padding-top: 16px;
}
.plane-event-actions {
  margin-top: 16px;
}
.destination-rename {
  position: absolute;
  top: 12px;
  left: 32px;
  right: 145px;
  z-index: 1;
  margin: 0;
}
.destination-rename .destination-name {
  width: min(100%, 320px);
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  font-size: 13px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Keep condition controls aligned regardless of label margins. */
.condition-row > label {
  min-width: 0;
  margin: 0;
}
.condition-row > button {
  min-height: 42px;
}
.conditions-content {
  padding-top: 2px;
}

/* Quieter code surfaces and a denser Plane editor. */
.snippet-code,
.snippet .snippet-code pre {
  background: #1a1b1e;
  border-color: #34353b;
}
.code-heading {
  border-color: #34353b;
}
#modal.plane-route-modal {
  position: fixed;
}
.plane-route-modal .route-basics {
  position: absolute;
  top: 14px;
  left: 48%;
  right: 70px;
}
.plane-route-modal .route-basics label {
  margin: 0;
  font-size: 11px;
}
.plane-route-modal .route-basics input {
  min-height: 36px;
  margin-top: 3px;
  padding: 7px 10px;
}
.plane-route-modal .destination-fields {
  padding-top: 4px;
}
.plane-event-row [data-plane-message] > label {
  margin-bottom: 8px;
}
@media (max-width: 700px) {
  .plane-route-modal .route-basics {
    position: static;
  }
  .plane-route-modal .route-basics label {
    margin: 12px 0;
  }
}

/* Keep form controls consistently sized. */
.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  flex: none;
  accent-color: var(--accent);
}
.forwarded-settings {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.forwarded-settings h3,
.regex-tester h3 {
  font-size: 14px;
  margin: 0;
}
.regex-tester {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
#regex-test-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #202824;
}
.regex-test-match {
  color: #a5efc2;
}
.regex-test-no-match {
  color: #ffb4bc;
  background: #302125 !important;
}
/* Compact test controls and variable chips. */
.template-variables button.subtle {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
}
.template-variables {
  gap: 5px;
}
.activity-filter-fields {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}
.regex-tester {
  margin-top: 14px;
  padding-top: 12px;
}
.regex-tester label {
  margin: 10px 0;
}
.regex-tester textarea {
  min-height: 52px;
  padding: 8px 10px;
}
.regex-tester .help {
  margin: 6px 0;
}
.test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.test-actions > div {
  flex: 0 1 auto;
}
.test-actions p {
  margin: 5px 0;
}
#route-panel-tests > label {
  margin: 10px 0;
}
.plane-test-sample {
  display: flex;
  align-items: end;
  gap: 10px;
}
.plane-test-sample label {
  flex: 1;
  margin: 0;
}
@media (max-width: 700px) {
  .activity-filter-fields {
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  }
}

/* Match the status badge to the adjacent route action buttons. */
.route-status-actions > .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
}

.discord-draft-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-block: 12px 16px;
}
.plane-event-row .discord-draft-toolbar {
  margin-bottom: 0;
}
.discord-format-note {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px solid #48563a;
  border-radius: 7px;
  background: #263020;
  color: #d7edc6;
  font-size: 12px;
}
.discord-draft-format,
.compose-format {
  font-size: 12px;
  white-space: nowrap;
}
.discord-draft-format {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 550;
}
.discord-draft-format::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
[data-v2="true"] .discord-draft-format,
.compose-format {
  color: var(--accent);
}
html:has(#discord-composer[open]) {
  overflow: hidden;
}
#discord-composer[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1360px, calc(100vw - 40px));
  height: min(840px, calc(100dvh - 40px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  background: #17191e;
}
.compose-header,
.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 22px;
  min-height: 0;
  height: auto;
  margin: 0;
  background: transparent;
}
.compose-header {
  grid-row: 1;
  border-bottom: 1px solid var(--line);
}
.compose-header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.compose-variables {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
}
.compose-variables summary {
  border: 1px solid #42434a;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #eceef1;
}
.compose-variables ul {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  z-index: 1;
  width: min(360px, calc(100vw - 44px));
  max-height: 42dvh;
  overflow: auto;
  list-style: none;
  padding: 6px 12px;
  margin: 0;
  border: 1px solid #454852;
  border-radius: 8px;
  background: #25272d;
  box-shadow: 0 8px 24px #0007;
}
.compose-variables li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 12px;
  padding: 7px 2px;
  overflow-wrap: anywhere;
}
.compose-variables li + li {
  border-top: 1px solid var(--line);
}
.compose-variables code {
  color: var(--accent);
}
.compose-footer {
  grid-row: 4;
  border-top: 1px solid var(--line);
}
.compose-header h2,
.compose-header p,
.compose-footer p {
  margin: 0;
  overflow-wrap: anywhere;
}
.compose-footer p {
  flex: 1 1 180px;
  color: #ffadad;
}
.compose-footer p:empty {
  flex-basis: 0;
}
.compose-footer .row-actions {
  margin: 0 0 0 auto;
}
.compose-tabs {
  grid-row: 2;
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.compose-workspace {
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(290px, 1.5fr) minmax(
      300px,
      1fr
    );
  min-height: 0;
}
.compose-workspace > section {
  padding: 20px;
  overflow-y: auto;
  min-width: 0;
  min-height: 0;
  scrollbar-gutter: stable;
}
.compose-workspace h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.compose-blocks {
  border-inline-end: 1px solid var(--line);
}
.compose-preview {
  border-inline-start: 1px solid var(--line);
  background: #1d1f25;
}
.compose-preview > .help {
  margin: -8px 0 16px;
}
.compose-block-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.compose-block-list .compose-block-list {
  margin: 7px 0 0 9px;
  padding-inline-start: 8px;
  border-inline-start: 1px solid #454852;
}
.compose-block-list button {
  display: block;
  width: 100%;
  text-align: start;
}
.compose-block-list button small {
  display: block;
  max-width: 100%;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #afb2bc;
}
#discord-composer button[aria-pressed="true"] {
  color: var(--accent);
  border-color: #8fae64;
  background: #263121;
}
.compose-settings-head,
.compose-item-head,
.compose-order {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.compose-settings-head,
.compose-item-head {
  justify-content: space-between;
}
.compose-settings-head {
  margin-bottom: 16px;
}
.compose-settings-head h3,
.compose-item-head h4 {
  margin: 0;
}
.compose-items {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.compose-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d1f25;
}
.compose-item > :last-child {
  margin-bottom: 0;
}
#discord-composer .compose-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}
#discord-composer .compose-icon.compose-remove {
  width: 44px;
}
.compose-icon .icon {
  width: 16px;
  height: 16px;
}
.compose-add,
.compose-item-picker {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 14px;
}
.compose-add select,
.compose-item-picker label {
  flex: 1 1 125px;
  min-width: 0;
  margin: 0;
}
.compose-item-picker label select {
  margin-bottom: 0;
}
.compose-settings .compose-check {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.35;
}
#discord-composer .compose-check input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 18px;
  height: 18px;
  min-height: 0;
  flex: none;
  padding: 0;
  margin: 0;
  border-radius: 5px;
  border: 1px solid #757881;
  background: #151619;
}
#discord-composer .compose-check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
#discord-composer .compose-check input:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border: solid #17191e;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
.compose-color {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.compose-color legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 550;
}
#discord-composer .compose-color input {
  width: 115px;
  margin: 0;
}
#discord-composer .compose-color input[type="color"] {
  width: 44px;
  padding: 4px;
  cursor: pointer;
}
.compose-advanced {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-block: 16px;
}
.compose-advanced > summary {
  color: #bec0c8;
}
.compose-preview-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  overflow-wrap: anywhere;
}
.compose-preview-author > span {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  color: #161b12;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 700;
}
.compose-preview-message,
.compose-preview-container,
.compose-preview-container > details[open] {
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}
.compose-preview-container {
  border: 1px solid #454852;
  border-inline-start-width: 3px;
  border-radius: 8px;
  background: #282b33;
  padding: 14px;
}
.compose-preview-text {
  white-space: pre-wrap;
}
.compose-preview-heading {
  font-weight: 700;
  font-size: 15px;
}
.compose-preview-heading.level-1 {
  font-size: 20px;
}
.compose-preview-heading.level-2 {
  font-size: 17px;
}
.compose-spoiler-text {
  background: #101114;
  color: transparent;
}
.compose-preview-link {
  color: #9bc7ff;
}
.compose-separator {
  min-height: 6px;
  display: grid;
  align-items: center;
}
.compose-separator.large {
  min-height: 18px;
}
.compose-separator hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid #4a4d57;
}
.compose-preview-buttons,
.compose-preview-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: start;
}
.compose-preview-buttons > span,
.compose-image-placeholder {
  padding: 6px 9px;
  border-radius: 6px;
  background: #353944;
}
.compose-preview-gallery img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 5px;
  object-fit: contain;
}
@media (max-width: 1050px) {
  .compose-tabs {
    display: flex;
  }
  .compose-tabs [data-view="blocks"] {
    display: none;
  }
  .compose-workspace {
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 2fr);
  }
  .compose-header-tools {
    justify-content: space-between;
    width: 100%;
  }
  #discord-composer:not([data-view="preview"]) .compose-preview,
  #discord-composer[data-view="preview"] .compose-settings {
    display: none;
  }
  .compose-preview {
    border-inline-start: 0;
  }
}
@media (forced-colors: active) {
  #discord-composer .compose-check input {
    appearance: auto;
  }
  #discord-composer .compose-check input:checked::before {
    content: none;
  }
}
@media (max-width: 650px) {
  #discord-composer[open] {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .compose-tabs [data-view="blocks"] {
    display: initial;
  }
  .compose-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .compose-blocks {
    border-inline-end: 0;
  }
  #discord-composer:not([data-view="blocks"]) .compose-blocks,
  #discord-composer:not([data-view="settings"]) .compose-settings {
    display: none;
  }
}
