.data-section h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.api-explorer-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.api-explorer-heading {
  margin-bottom: 14px;
}

.api-explorer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  background: #fff;
}

.api-explorer-list {
  min-height: 0;
  overflow: auto;
  padding: 6px;
  border-right: 1px solid #dce3e9;
  background: #f6f8fa;
}

.api-explorer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  width: 100%;
  margin: 0 0 3px;
  padding: 8px 9px;
  color: #294056;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
}

.api-explorer-entry:hover,
.api-explorer-entry.selected {
  background: #d9efeb;
}

.api-explorer-entry code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-explorer-entry small {
  grid-column: 2;
  color: #778697;
  font-size: 10px;
}

.api-method {
  align-self: start;
  min-width: 46px;
  padding: 2px 4px;
  color: #fff;
  border-radius: 3px;
  font: 700 10px/1.2 monospace;
  text-align: center;
}

.api-method-get { background: #3979a8; }
.api-method-post { background: #278978; }
.api-method-patch { background: #a87932; }
.api-method-delete { background: #b55b63; }

.api-explorer-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px;
}

.api-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.api-detail-title h2 {
  margin: 0 0 8px;
}

.api-detail-title code {
  color: #506073;
  overflow-wrap: anywhere;
}

.api-origin-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #506073;
  background: #e9edf1;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.api-origin-badge.generated {
  color: #176c5c;
  background: #d9efeb;
}

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

.api-json-grid h3 {
  margin: 0 0 7px;
  color: #506073;
  font-size: 12px;
  text-transform: uppercase;
}

.api-json-grid pre {
  min-height: 150px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #dbe7f0;
  background: #16212d;
  border-radius: 5px;
  font: 12px/1.5 monospace;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  .api-explorer-layout,
  .api-json-grid {
    grid-template-columns: 1fr;
  }

  .api-explorer-list {
    max-height: 260px;
    border-right: 0;
    border-bottom: 1px solid #dce3e9;
  }
}

.data-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.data-section-heading h2 { margin-bottom: 14px; }

.compact-record-table tbody tr {
  cursor: pointer;
}

.query-result-table tbody tr {
  cursor: default;
}

.query-result-section .data-section-heading small {
  margin-bottom: 14px;
  color: #778697;
}

.compact-record-table tbody tr:hover,
.compact-record-table tbody tr:focus-visible {
  background: #eef8f6;
  outline: 2px solid rgb(39 137 120 / 28%);
  outline-offset: -2px;
}

.compact-record-table th,
.compact-record-table td {
  padding-top: 4px;
  padding-bottom: 4px;
}

.compact-cell-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-detail-heading,
.record-detail-actions {
  display: flex;
  align-items: center;
}

.record-detail-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.record-detail-heading h2 { margin: 0; }
.record-detail-heading small { color: #778697; }
.record-detail-actions { gap: 8px; }

.record-detail-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.record-detail-field {
  min-width: 0;
  max-width: calc(50% - 6px);
  flex: 1 1 calc(50% - 6px);
  padding: 10px;
  background: #f7f9fb;
  border: 1px solid #dce3e9;
  border-radius: 6px;
}

.record-detail-field.dirty-field {
  background: #fff2c9;
  border-color: #e3c56a;
}

.record-detail-label {
  display: block;
  margin-bottom: 6px;
  color: #506073;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.record-detail-field .field-editor,
.record-detail-field .reference-picker-button,
.record-detail-large-editor {
  width: 100%;
}

.record-detail-large-editor {
  min-height: 150px;
  box-sizing: border-box;
  padding: 8px;
  color: #243447;
  background: #fff;
  border: 1px solid #bdc8d3;
  border-radius: 4px;
  font: 13px/1.5 monospace;
  resize: vertical;
}

.record-detail-value { color: #263746; }

@media (max-width: 900px) {
  .record-detail-field {
    max-width: 100%;
    flex-basis: 100%;
  }

  .record-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.data-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dce3e9;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: max-content;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table th,
.data-table td {
  position: relative;
  min-width: 120px;
  max-width: 50%;
  padding: 7px 9px;
  border-right: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  user-select: none;
  color: #506073;
  background: #f6f8fa;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.column-filter { display: block; box-sizing: border-box; width: 100%; min-width: 72px; margin-top: 6px; padding: 4px 6px; border: 1px solid #bdc8d3; border-radius: 4px; font: inherit; font-size: 0.82rem; }

.data-table th:last-child,
.data-table td:last-child { border-right: 0; }

.column-sort {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sort-indicator {
  margin-left: 8px;
  color: #278978;
  font-size: 10px;
}

.column-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  bottom: 0;
  width: 7px;
  cursor: col-resize;
  z-index: 1;
}

.column-resizer.resizing {
  background: #278978;
  box-shadow: 0 0 0 1px #278978, 0 0 12px rgb(39 137 120 / 72%);
}

.large-field-button {
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  color: #236b83;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.large-field-button:hover { text-decoration: underline; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgb(20 34 46 / 42%);
  z-index: 20;
}

.field-modal {
  width: min(760px, 100%);
  max-height: min(720px, 90vh);
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #fff;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgb(20 34 46 / 25%);
}

.field-modal-heading,
.field-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-modal-heading h3 { margin: 0 0 12px; }
.modal-close { color: #506073; background: transparent; border: 0; cursor: pointer; font-size: 22px; }
.large-field-editor,
.large-field-content { min-height: 280px; flex: 1; margin: 0 0 14px; padding: 10px; overflow: auto; border: 1px solid #bdc8d3; border-radius: 5px; font: 13px/1.5 monospace; white-space: pre-wrap; }
.large-field-editor { resize: vertical; }

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table th,
.data-table .new-row td,
.data-table .new-row input[type='text'],
.data-table .new-row select,
.data-table .new-row textarea {
  background: #d9f2ed;
  color: #3e3e3e;
}
.data-table input[type='text'],
.data-table select,
.data-table textarea
{
  /*border-radius:3px;
  box-shadow: 0px 0px 1px rgb(15 24 37 / 0.7) inset;*/
  background:transparent;
  height:32px;
  margin:0;
}
.data-table td:focus,
.data-table input[type='text']:hover,
.data-table select:hover,
.data-table textarea:hover,
.data-table input[type='text']:focus,
.data-table select:focus,
.data-table textarea:focus
{
  /*border-radius:3px;*/
  background: #cdf4ed;
  /*box-shadow: 0px -2px 1px #34836e inset;*/
}

.data-table tr.dirty-row {
  background: #ffde98;
}

.data-table td.dirty-cell {
  background: #ffaa6e;
}

.data-table td.dirty-cell .field-editor,
.data-table td.dirty-cell .reference-picker-button {
  background: transparent;
}

.data-table td.editable-cell {
  padding: 0;
}

.field-editor {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  /*padding: 6px 8px;*/
  color: #243447;
  background: #fff;
  /*border: 1px solid #bdc8d3;
  border-radius: 5px;*/
  border: 0;
  margin: 0;
  padding: 3px 6px;
  outline: 0;
  border-radius: 0;
}

.field-editor:focus {
  border-color: #278978;
  outline: 2px solid rgb(39 137 120 / 14%);
}

.recurrence-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  min-height: 2rem;
  font-weight: 400;
}
.recurrence-input select,
.recurrence-input input {
  min-width: 0;
  height: 2rem;
  box-sizing: border-box;
}
.recurrence-input input[type="number"] { width: 4.5rem; }
.recurrence-input input[type="datetime-local"] { width: min(15.5rem, 100%); }
.recurrence-input small { color: #71869a; white-space: nowrap; }
.recurrence-since { color: #526779; }

.reference-picker-button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 8px;
  color: #236b83;
  background: #fff;
  border: 1px solid #bdc8d3;
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
}

.reference-picker-button.readonly {
  min-width: 0;
  padding: 0;
  color: #236b83;
  background: transparent;
  border: 0;
}

.reference-options {
  display: flex;
  min-height: 120px;
  max-height: 360px;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  overflow: auto;
}

.reference-option {
  padding: 9px 10px;
  color: #26394b;
  background: #f6f8fa;
  border: 1px solid #dce3e9;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.reference-option:hover { background: #d9f2ed; }
.reference-create { display: flex; gap: 8px; margin-bottom: 14px; }
.reference-create input { min-width: 0; flex: 1; padding: 7px 8px; border: 1px solid #bdc8d3; border-radius: 5px; }
.reference-table-wrap { overflow: auto; max-height: 50vh; }
.reference-table { border-collapse: collapse; width: 100%; min-width: max-content; background: #fff; }
.reference-table th, .reference-table td { border: 1px solid #d4dce5; padding: 6px 8px; text-align: left; white-space: nowrap; }
.reference-table th { background: #eef3f7; position: sticky; top: 0; z-index: 1; }

.muted-value {
  color: #8a97a5;
}

.row-actions {
  display: flex;
  min-width: 150px;
  gap: 6px;
}

.small-button {
  padding: 3px 9px;
  color: #26394b;
  background: #edf2f6;
  border: 1px solid #ccd6df;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.small-button:disabled {
  cursor: default;
  filter: grayscale(0.7);
  opacity: 0.55;
}

.danger-button {
  color: #8d3030;
  background: #fff7f7;
  border-color: #e7bebe;
}

.inline-error {
  color: #8d3030;
}

.page-ide {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ide-heading,
.ide-toolbar,
.tree-entry,
.tree-row,
.editor-tab {
  display: flex;
  align-items: center;
}

.ide-heading {
  justify-content: space-between;
}

.ide-heading small {
  color: #778697;
}

.ide-toolbar {
  gap: 8px;
}

.ide-toolbar button:disabled {
  cursor: default;
  filter: grayscale(0.7);
  opacity: 0.5;
}

.ide-layout {
  display: grid;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: 260px 8px minmax(0, 1fr);
  border: 1px solid #d7dfe7;
  border-radius: 0;
  overflow: hidden;
}

.file-tree {
  min-width: 0;
  padding: 8px;
  overflow: auto;
  background: #17202b;
  border-right: 1px solid #2d3b4a;
  color: #d6e1eb;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.ide-splitter {
  position: relative;
  z-index: 2;
  width: 8px;
  min-width: 8px;
  background: #202c39;
  border-right: 1px solid #344657;
  border-left: 1px solid #101923;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
}

.ide-splitter::after {
  position: absolute;
  top: 50%;
  left: 2px;
  width: 2px;
  height: 38px;
  content: "";
  background: #7890a2;
  border-radius: 2px;
  opacity: 0.75;
  transform: translateY(-50%);
}

.ide-splitter:hover,
.ide-splitter:focus-visible,
.ide-layout.resizing-tree .ide-splitter {
  background: #294453;
  outline: 0;
}

.ide-splitter:hover::after,
.ide-splitter:focus-visible::after,
.ide-layout.resizing-tree .ide-splitter::after {
  background: #9ae6d8;
  box-shadow: 0 0 8px rgb(117 213 195 / 65%);
  opacity: 1;
}

.tree-entry {
  min-width: 0;
}

.tree-row {
  min-width: 0;
  height: 20px;
  padding: 0 6px;
  color: #d6e1eb;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
  gap: 6px;
  text-align: left;
}

.tree-marker { width: 14px; color: #a9b7c5; text-align: center; }
.file-type-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-image: url("/icons.svg");
  background-position: var(--icon-x) var(--icon-y);
  background-size: 160px 160px;
  image-rendering: auto;
}
.tree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-folder { color: #e6c27a; }
.tree-jsx { color: #78b7e8; }
.tree-xml { color: #e99a9a; }
.tree-md { color: #86cfaa; }
.tree-other { color: #c4ccd5; }

.tree-row .tree-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-row:hover,
.tree-row.selected {
  background: #263849;
}

.tree-actions {
  display: flex;
  gap: 3px;
  margin-left: auto;
  opacity: 0;
}

.tree-entry:hover .tree-actions,
.tree-row.root:hover .tree-actions {
  opacity: 1;
}

.tree-actions button {
  min-width: 18px;
  height: 18px;
  padding: 0 2px;
  color: #a9b7c5;
  background: #223140;
  border: 1px solid #3b4d60;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  line-height: 15px;
}
.tree-actions button:hover,
.tree-actions button:focus-visible {
  color: #ffffff;
  background: #3d7180;
  border-color: #9ae6d8;
  box-shadow: 0 0 0 2px rgb(117 213 195 / 22%), 0 1px 4px rgb(0 0 0 / 35%);
  transform: translateY(-1px);
}
.tab-save { min-width: 18px; padding: 1px 4px; color: #c8f1e8; background: #294c59; border: 1px solid #4d8b8a; border-radius: 3px; font-size: 10px; line-height: 15px; }
.tab-save:hover { color: #fff; background: #3d7180; border-color: #9ae6d8; }

.editor-workbench {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 38px minmax(0, 1fr) 28px;
  background: #17202b;
}

.editor-tabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  background: #202c39;
}

.editor-tab {
  max-width: 210px;
  padding: 0 10px;
  color: #afbdcb;
  background: #273544;
  border: 0;
  border-right: 1px solid #17202b;
  cursor: pointer;
  gap: 10px;
}

.editor-tab.active {
  color: #f2f6f9;
  background: #17202b;
  box-shadow: inset 0 2px #75d5c3;
}

.editor-tab > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-close {
  color: #8291a0;
}

.code-editor {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.editor-surface,
.editor-selection-layer,
.editor-cursor,
.code-editor textarea {
  box-sizing: border-box;
  margin: 0;
  overflow: hidden;
  color: #d6e1eb;
  background: #17202b;
  border: 0;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  tab-size: 4;
}

.editor-surface {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 14px 12px;
  overflow: auto;
  white-space: pre;
  cursor: text;
  will-change: transform;
}

.editor-line { display: block; min-height: 1.55em; }
.line-gutter { display: inline-flex; width: 40px; height: 1.55em; align-items: center; justify-content: flex-end; margin-right: 12px; color: #667789; line-height: 1.55em; text-align: right; vertical-align: top; user-select: none; }
.line-number { display: inline-block; min-width: 24px; }
.fold-placeholder,
.fold-toggle { display: inline-grid; width: 12px; height: 14px; margin: 0 2px 0 0; place-items: center; }
.fold-toggle { align-self: center; padding: 0; color: #8fa5b8; background: transparent; border: 0; border-radius: 2px; cursor: pointer; font: inherit; font-size: 11px; line-height: 12px; }
.fold-toggle:hover,
.fold-toggle:focus-visible { color: #9ae6d8; background: #294453; outline: 0; }
.fold-preview { display: inline-block; height: 1.55em; padding: 0 4px; color: #8fa5b8; background: transparent; border: 0; border-radius: 2px; cursor: pointer; font: inherit; line-height: 1.55em; vertical-align: top; }
.fold-preview:hover,
.fold-preview:focus-visible { color: #d6e1eb; background: #294453; outline: 0; }
.fold-preview .fold-ellipsis { color: #9ae6d8; }
.line-code { color: #d6e1eb; }
.editor-selection-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: visible; will-change: transform;background:transparent; }
.editor-selection { position: absolute; display: block; height: 1.55em; background: rgb(82 117 150 / 42%); }
.editor-cursor { position: absolute; z-index: 6; display: block; width: 2px; height: 1.55em; background: #75d5c3; box-shadow: 0 0 2px #75d5c3; pointer-events: none; will-change: transform; }

.editor-surface {
  scrollbar-width: none;
}

.code-editor textarea {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 14px 12px 14px 64px;
  color: transparent;
  background: transparent;
  caret-color: transparent;
  resize: none;
  white-space: pre;
  tab-size: 4;
  font-variant-ligatures: none;
  letter-spacing: 0;
  outline: 0;
}

.code-editor textarea::selection {
  color: transparent;
  background: transparent;
}

.syntax-tag,
.syntax-keyword {
  color: #71c7df;
}

.syntax-attribute {
  color: #dfb866;
}

.syntax-string {
  color: #a9d18e;
}

.syntax-comment {
  color: #748596;
  font-style: italic;
}

.syntax-expression {
  color: #d7a8e8;
}

.syntax-parenthesis { color: #f2c777; }
.syntax-operator { color: #f08c8c; }
.syntax-number { color: #9ed7ff; }
.syntax-special { color: #e49ad4; font-style: italic; }
.syntax-react { color: #67d1c1; font-weight: 600; }
.syntax-function { color: #f0b36b; }
.syntax-sql-type { color: #c6a8e8; }
.syntax-sql-function { color: #67d1c1; font-weight: 600; }

.task-master-detail { min-height: 100%; }
.task-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.task-page-actions, .task-detail-actions { display: flex; align-items: center; gap: .4rem; }
.task-filter-panel { padding: .55rem; border-bottom: 1px solid #d1dbe4; background: #f5f8fb; }
.task-filter-row { display: flex; align-items: center; gap: .55rem; margin-bottom: .4rem; }
.task-filter-row > span { width: 4.3rem; flex: none; color: #5d7183; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.task-filter-buttons { display: inline-flex; min-width: 0; overflow: hidden; border: 1px solid #b9c8d4; border-radius: 4px; }
.task-filter-buttons button { min-height: 1.65rem; padding: .15rem .55rem; border: 0; border-right: 1px solid #c8d4dd; background: #fff; color: #405568; cursor: pointer; font-size: .76rem; }
.task-filter-buttons button:last-child { border-right: 0; }
.task-filter-buttons button:hover { background: #e9f3f4; }
.task-filter-buttons button.active { background: #237b78; color: #fff; }
.task-filter-panel .task-list-toolbar { padding: .1rem 0 0; border: 0; }
.task-board-shell { min-height: 620px; border: 1px solid #d1dbe4; border-radius: 8px; overflow: hidden; background: #f5f8fb; }
.task-board-message { margin: .8rem; }
.task-kanban-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: .65rem; min-height: 550px; padding: .65rem; overflow-x: auto; align-items: stretch; }
.task-kanban-lane { display: flex; flex-direction: column; min-width: 0; max-height: 680px; border: 1px solid #ced9e2; border-radius: 6px; background: #eaf0f4; overflow: hidden; }
.task-kanban-lane > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .55rem .65rem; border-bottom: 1px solid #ced9e2; background: #dae5ec; }
.task-kanban-lane > header h2 { margin: 0; color: #30485c; font-size: .9rem; }
.task-lane-actions { display: flex; align-items: center; gap: .3rem; }
.task-lane-actions > span { display: grid; min-width: 1.45rem; height: 1.45rem; padding: 0 .25rem; place-items: center; border-radius: 999px; background: #fff; color: #607487; font-size: .72rem; }
.task-lane-add { display: grid; width: 1.45rem; height: 1.45rem; padding: 0; place-items: center; border: 1px solid #94adb9; border-radius: 4px; background: #f8fbfc; color: #2c6270; cursor: pointer; font-weight: 700; line-height: 1; }
.task-lane-add:hover { border-color: #237b78; background: #237b78; color: #fff; }
.task-lane-quick-create { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .3rem; padding: .4rem; border-bottom: 1px solid #ced9e2; background: #f5f9fb; }
.task-lane-quick-create input { min-width: 0; }
.task-kanban-cards { flex: 1; min-height: 4rem; padding: .45rem; overflow-y: auto; }
.task-kanban-cards .task-card { margin-bottom: .45rem; border: 1px solid #d0dbe4; border-radius: 5px; background: #fff; box-shadow: 0 1px 2px rgb(30 55 75 / 8%); }
.task-kanban-cards .task-card:hover { background: #f5fbfa; box-shadow: 0 2px 5px rgb(30 55 75 / 14%); }
.task-card.dragging { opacity: .45; }
.task-card .stars-value { margin-top: .4rem; }
.task-workspace { display: grid; grid-template-columns: minmax(220px, 28%) minmax(0, 1fr); min-height: 620px; border: 1px solid #d1dbe4; border-radius: 8px; overflow: hidden; background: #fff; }
.task-list-panel { min-width: 0; border-right: 1px solid #d1dbe4; background: #f5f8fb; }
.task-list-primary-action { display: flex; justify-content: flex-end; padding: .5rem .55rem; border-bottom: 1px solid #d1dbe4; background: #eef4f7; }
.task-list-toolbar { display: flex; gap: .5rem; align-items: center; padding: .65rem; border-bottom: 1px solid #d1dbe4; }
.task-list-toolbar input { min-width: 0; flex: 1; }
.task-list-toolbar span, .task-association-card > header > span { color: #607487; font-size: .8rem; }
.task-list { max-height: 680px; overflow: auto; }
.task-list-row { display: block; width: 100%; padding: .7rem .8rem; text-align: left; border: 0; border-bottom: 1px solid #dde5ec; background: transparent; color: #273849; cursor: pointer; }
.task-list-row:hover, .task-list-row.selected { background: #d9f1ed; }
.task-list-row strong, .task-list-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-list-row small { margin-top: .2rem; color: #6b7f90; font-size: .78rem; }
.task-detail-panel { min-width: 0; padding: 1rem; overflow: auto; }
.task-empty-detail { display: grid; min-height: 420px; place-items: center; color: #71869a; }
.task-detail-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #d9e2e9; }
.task-detail-toolbar h2 { margin: 0; }
.task-detail-toolbar small { color: #71869a; }
.task-detail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: 1rem 0; }
.task-detail-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; color: #405568; font-size: .82rem; font-weight: 600; }
.task-detail-field > .field-value, .task-detail-field > .muted-value { min-height: 2rem; padding: .45rem .55rem; border: 1px solid #d3dee7; border-radius: 4px; background: #f8fafc; font-weight: 400; }
.task-detail-field textarea { min-height: 5rem; resize: vertical; }
.task-associations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.task-association-card { min-width: 0; padding: .75rem; border: 1px solid #d4dfe7; border-radius: 6px; background: #f8fafc; }
.task-association-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-bottom: .5rem; border-bottom: 1px solid #dbe4ea; }
.task-association-card h3, .task-association-card h4 { margin: 0; color: #334b60; }
.task-association-card h4 { margin-top: .7rem; font-size: .84rem; }
.task-status-history, .task-comment-list, .task-document-list { max-height: 230px; overflow: auto; }
.task-history-row, .task-document-row { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #e1e8ed; font-size: .83rem; }
.task-history-row span, .task-document-row span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.task-document-row > a { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; color: #2c6d88; }
.task-history-row time, .task-document-row small, .task-comment small { color: #71869a; font-size: .72rem; }
.task-comment { padding: .55rem 0; border-bottom: 1px solid #e1e8ed; }
.task-comment p { margin: 0 0 .3rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .84rem; }
.task-inline-form { display: flex; gap: .4rem; margin-top: .65rem; }
.task-inline-form select, .task-inline-form textarea { min-width: 0; flex: 1; }
.task-comment-form { display: block; }
.task-comment-form textarea { display: block; width: 100%; min-height: 4rem; margin-bottom: .4rem; resize: vertical; box-sizing: border-box; }
.task-document-row .small-button { flex: none; }
.task-document-drop { margin-top: .65rem; padding: .65rem; border: 1px dashed #9ab6c6; border-radius: 5px; background: #eef6f8; color: #526d80; text-align: center; font-size: .8rem; }
.task-document-drop label { display: block; cursor: pointer; }
.task-document-drop span { color: #1e7182; text-decoration: underline; }
.task-document-drop input { display: block; width: 100%; margin-top: .35rem; font-size: .75rem; }
.task-status-actions { justify-content: space-between; }
.stars-value { display: inline-flex; align-items: center; gap: .45rem; color: #627588; font-weight: 600; }
.stars-track { position: relative; display: inline-block; width: 5.25em; height: 1.25em; overflow: hidden; color: #c7d0d8; font-size: 1.08rem; line-height: 1.25; letter-spacing: .05em; white-space: nowrap; }
.stars-background, .stars-foreground { position: absolute; inset: 0 auto auto 0; }
.stars-foreground { overflow: hidden; color: #e8ac24; text-shadow: 0 1px 0 #a97409; }
.stars-number { min-width: 2.2em; font-variant-numeric: tabular-nums; }
.stars-input { position: relative; display: inline-flex; align-items: center; min-height: 2rem; cursor: ew-resize; }
.stars-input > input[type="range"] { position: absolute; inset: 0; width: 5.7em; height: 100%; margin: 0; cursor: ew-resize; opacity: 0; }
.stars-input.disabled { cursor: default; opacity: .75; }
.stars-input.disabled > input[type="range"] { cursor: default; }
.task-report-page .page-heading small { display: block; max-width: 70rem; color: #61778a; }
.task-report-table { width: 100%; border-collapse: collapse; background: #fff; font-variant-numeric: tabular-nums; }
.task-report-table th, .task-report-table td { padding: .55rem .7rem; border: 1px solid #d7e0e7; text-align: left; }
.task-report-table thead th { background: #d8eeeb; color: #30485c; }
.task-report-table tbody th { font-weight: 600; }
.task-report-table .stars-track { width: 5.25em; }
.task-report-number { min-width: 4.5em; text-align: right !important; font-variant-numeric: tabular-nums; }
.task-deadline-report { display: grid; gap: .5rem; }
.task-deadline-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; border: 1px solid #d5dfe7; border-radius: 5px; background: #fff; }
.task-deadline-row strong, .task-deadline-row small { display: block; }
.task-deadline-row small { margin-top: .2rem; color: #6c8091; }
.task-deadline-badge { flex: none; padding: .3rem .55rem; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.task-deadline-badge.late { background: #b94040; }
.task-deadline-badge.today { background: #d37a1c; }
.task-deadline-badge.future { background: #347da1; }
.template-master-detail .task-associations { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) {
  .task-workspace { grid-template-columns: 1fr; }
  .task-list-panel { border-right: 0; border-bottom: 1px solid #d1dbe4; }
  .task-list { max-height: 260px; }
  .task-associations { grid-template-columns: 1fr; }
  .task-kanban-board { grid-auto-columns: minmax(220px, 78vw); }
}
@media (max-width: 640px) {
  .task-detail-fields { grid-template-columns: 1fr; }
  .task-detail-toolbar, .task-page-heading { flex-direction: column; }
  .task-filter-row { align-items: flex-start; flex-direction: column; }
  .task-filter-row > span { width: auto; }
  .task-filter-buttons { max-width: 100%; }
  .task-detail-actions { flex-wrap: wrap; }
}

.language-xml textarea {
  caret-color: #75d5c3;
}

.language-jsx textarea {
  caret-color: #dfb866;
}

.language-markdown textarea {
  caret-color: #a9d18e;
}

.language-javascript textarea,
.language-css textarea,
.language-html textarea,
.language-json textarea,
.language-sql textarea {
  caret-color: #dfb866;
}

.language-text textarea {
  caret-color: #d6e1eb;
}

.markdown-page {
  width: 100%;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
  color: #273849;
  line-height: 1.65;
}

.markdown-layout {
  display: grid;
  grid-template-columns: clamp(300px, 24vw, 400px) minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-height: 100%;
  transition: grid-template-columns 140ms ease;
}

.markdown-layout-no-toc {
  grid-template-columns: minmax(0, 1fr);
}

.markdown-layout[data-toc-state="minimal"] {
  grid-template-columns: 190px minmax(0, 1fr);
}

.markdown-layout[data-toc-state="hidden"] {
  grid-template-columns: 44px minmax(0, 1fr);
}

.markdown-content {
  min-width: 0;
  padding: 28px 34px 56px;
}

.markdown-content > :first-child {
  margin-top: 0;
}

.markdown-content [id] {
  scroll-margin-top: 18px;
}

.markdown-page h1,
.markdown-page h2,
.markdown-page h3 {
  margin: 1.2em 0 0.45em;
  color: #132b40;
  line-height: 1.25;
}

.markdown-page h1:first-child {
  margin-top: 0;
}

.markdown-page code {
  padding: 0.12em 0.34em;
  border-radius: 4px;
  background: #edf2f6;
}

.markdown-page pre {
  padding: 16px;
  overflow: auto;
  border-radius: 7px;
  color: #d6e1eb;
  background: #17202b;
}

.markdown-page pre code {
  padding: 0;
  background: transparent;
}

.markdown-page blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 4px solid #b7c8d7;
  color: #556879;
}

.markdown-toc {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  max-height: 100vh;
  margin: 0;
  padding: 22px 18px 32px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid #d5e0e8;
  border-radius: 0;
  background: #f7fafc;
}

.markdown-toc-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-height: 28px;
  margin: -10px -6px 8px;
}

.markdown-toc-toggle {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #c4d2dc;
  border-radius: 4px;
  color: #29465d;
  background: #fff;
  cursor: pointer;
}

.markdown-toc-state-icon {
  width: 16px;
  height: 16px;
  background-image: url("/icons.svg");
  background-position: var(--icon-x) var(--icon-y);
  background-size: 160px 160px;
  background-repeat: no-repeat;
}

.markdown-toc-state-icon.icon-toc-hidden {
  --icon-x: -112px;
  --icon-y: -16px;
}

.markdown-toc-state-icon.icon-toc-minimal {
  --icon-x: -128px;
  --icon-y: -16px;
}

.markdown-toc-state-icon.icon-toc-normal {
  --icon-x: -144px;
  --icon-y: -16px;
}

.markdown-toc-toggle:hover,
.markdown-toc-toggle:focus-visible {
  border-color: #6e91ac;
  color: #0f304a;
  background: #eaf2f7;
  outline: none;
}

.markdown-toc-toggle:disabled {
  border-color: #d3dce3;
  color: #8d9aa5;
  background: #edf1f4;
  cursor: default;
  opacity: 0.48;
  filter: grayscale(1);
}

.markdown-layout[data-toc-state="minimal"] .markdown-toc li:not(.toc-primary),
.markdown-layout[data-toc-state="hidden"] .markdown-toc-body {
  display: none;
}

.markdown-layout[data-toc-state="hidden"] .markdown-toc {
  padding: 12px 8px;
  overflow: hidden;
}

.markdown-layout[data-toc-state="hidden"] .markdown-toc-toolbar {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.markdown-toc h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.markdown-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.markdown-toc li {
  margin: 4px 0;
  line-height: 1.35;
}

.markdown-toc a {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.markdown-toc a:hover,
.markdown-toc a:focus-visible {
  text-decoration: underline;
}

.markdown-toc .toc-level-3 { padding-left: 14px; }
.markdown-toc .toc-level-4 { padding-left: 28px; }
.markdown-toc .toc-level-5,
.markdown-toc .toc-level-6 { padding-left: 42px; }

.markdown-table-scroll {
  width: 100%;
  margin: 16px 0 24px;
  overflow-x: auto;
}

.markdown-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.markdown-table th,
.markdown-table td {
  padding: 8px 10px;
  border: 1px solid #cfdbe4;
  vertical-align: top;
}

.markdown-table th {
  color: #17334b;
  background: #edf3f7;
}

.markdown-table .align-left { text-align: left; }
.markdown-table .align-center { text-align: center; }
.markdown-table .align-right { text-align: right; }

@media (max-width: 820px) {
  .markdown-layout,
  .markdown-layout[data-toc-state="minimal"],
  .markdown-layout[data-toc-state="hidden"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .markdown-toc {
    position: static;
    max-height: min(42vh, 420px);
    border-right: 0;
    border-bottom: 1px solid #d5e0e8;
  }

  .markdown-layout[data-toc-state="hidden"] .markdown-toc {
    width: 44px;
    border-right: 1px solid #d5e0e8;
  }

  .markdown-content {
    padding: 22px 20px 44px;
  }
}

.server-info-heading {
  align-items: end;
}

.server-info-filter {
  min-width: min(340px, 42vw);
  padding: 8px 11px;
  border: 1px solid #b9c7d3;
  border-radius: 5px;
}

.server-info-group {
  margin-top: 24px;
}

.server-info-group h2 {
  margin-bottom: 8px;
  color: #243b50;
  font-size: 16px;
}

.server-variable-table {
  overflow: hidden;
  border: 1px solid #d3dde5;
  border-radius: 6px;
}

.server-variable-row {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  border-top: 1px solid #e2e9ee;
}

.server-variable-row:first-child {
  border-top: 0;
}

.server-variable-row code {
  padding: 8px 10px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.server-variable-name {
  color: #304b62;
  background: #f4f7f9;
}

.server-variable-value {
  color: #263746;
}

.server-variable-row.redacted .server-variable-value {
  color: #96621f;
  font-style: italic;
}

.server-info-error {
  color: #a12828;
}

.editor-empty {
  display: grid;
  color: #7f8d9b;
  place-items: center;
}

.ide-status {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 5px 10px;
  overflow: hidden;
  color: #9eacb9;
  background: #202c39;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ide-status-message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ide-status-metrics {
  flex: 0 0 auto;
  overflow: hidden;
  color: #aebdcc;
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  text-overflow: clip;
  white-space: pre;
}

.ide-status.error {
  color: #f1aaaa;
}

@media (max-width: 720px) {
  .ide-layout {
    grid-template-columns: 180px 8px minmax(0, 1fr);
  }
}
