:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f8;
  color: #182126;
}

body {
  margin: 0;
}

html.is-suite-embedded [data-openrewi-suite-header] {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 34vw) 1fr;
  min-height: calc(100vh - 76px);
}

html.is-suite-embedded .layout {
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid #d9e0e4;
  background: #ffffff;
  padding: 14px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

input, textarea, button {
  font: inherit;
}

input, textarea {
  border: 1px solid #c7d0d5;
  border-radius: 6px;
  padding: 9px 10px;
  background: #ffffff;
}

button {
  border: 1px solid #b9c4ca;
  border-radius: 6px;
  padding: 9px 11px;
  background: #eef3f5;
  cursor: pointer;
}

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

.tree {
  display: grid;
  gap: 4px;
}

.tree-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
}

.tree-row.active {
  background: #e2eef1;
}

.tree-children {
  margin-left: 18px;
  border-left: 1px solid #d9e0e4;
  padding-left: 8px;
}

.detail {
  padding: 22px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.detail h1 {
  margin: 0;
  font-size: 24px;
}

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

.editor label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #53636b;
}

.editor .wide {
  grid-column: 1 / -1;
}

textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid #d9e0e4;
  }
  .editor {
    grid-template-columns: 1fr;
  }
}
