:root {
  --canvas: #f5f4f1;
  --surface: #ffffff;
  --surface-raised: #faf9f6;
  --ink: #1a1916;
  --muted: #5c5a55;
  --faint: #9c9a95;
  --line: #e8e6e1;
  --line-strong: #c8c6c0;
  --accent: #5bacd1;
  --accent-hover: #4a9bb8;
  --accent-soft: #eaf6fb;
  --accent-ink: #2d718f;
  --comment: #5bacd1;
  --comment-soft: #eaf6fb;
  --comment-ink: #2d718f;
  --required: #b9434b;
  --required-soft: #fbedee;
  --code: #2c2e36;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.07);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  min-width: 320px;
  font-size: 14px;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(91, 172, 209, 0.55);
  outline-offset: 2px;
}

code,
kbd,
.schema-name,
.schema-path,
.schema-value {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.app-shell {
  display: grid;
  grid-template-rows: 60px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  background: var(--canvas);
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #92d4f3;
  color: #2c2e36;
  font-size: 12px;
  font-weight: 650;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.brand-copy span {
  color: var(--muted);
  font-size: 11px;
}

.view-tabs {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-raised);
}

.view-tab {
  display: inline-flex;
  height: 30px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.view-tab svg {
  width: 15px;
  height: 15px;
}

.view-tab.is-active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(26, 25, 22, 0.12);
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-self: end;
}

.save-state {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.save-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b9b70;
}

.save-state.is-saving > span {
  background: var(--comment);
}

.save-state.is-error > span {
  background: var(--required);
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.view {
  display: none;
  min-height: 0;
}

.view.is-active {
  display: grid;
}

#review-view {
  grid-template-columns: 264px minmax(480px, 1fr) 0;
  transition: grid-template-columns 180ms ease;
}

#review-view.thread-open {
  grid-template-columns: 264px minmax(480px, 1fr) 410px;
}

.outline-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-raised);
}

.outline-head {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.schema-switcher {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.schema-switcher > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.schema-switcher select {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.schema-switcher select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 172, 209, 0.13);
}

.search-control {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.search-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 172, 209, 0.13);
}

.search-control svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}

.search-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-control input::placeholder {
  color: var(--faint);
}

kbd {
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
  background: var(--surface-raised);
  color: var(--faint);
  font-size: 9px;
}

.filter-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.filter-chip {
  display: inline-flex;
  height: 28px;
  gap: 5px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.filter-chip svg {
  width: 13px;
  height: 13px;
}

.filter-chip.is-active {
  border-color: #92d4f3;
  background: var(--comment-soft);
  color: var(--comment-ink);
}

#required-filter.is-active {
  border-color: #df9da3;
  background: var(--required-soft);
  color: #8f252e;
}

.outline-label {
  display: flex;
  justify-content: space-between;
  padding: 15px 16px 8px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.outline-list {
  min-height: 0;
  overflow: auto;
  padding: 2px 8px 18px;
}

.outline-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 38px;
  gap: 7px;
  align-items: center;
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.outline-item:hover,
.outline-item.is-active {
  background: #f0efec;
  color: var(--ink);
}

.outline-item.is-active {
  box-shadow: inset 3px 0 var(--accent);
}

.outline-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.outline-icon svg {
  width: 12px;
  height: 12px;
}

.outline-name {
  overflow: hidden;
  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-count {
  display: grid;
  min-width: 21px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--comment-soft);
  color: var(--comment-ink);
  font-size: 9px;
  font-weight: 650;
}

.outline-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}

.outline-foot a {
  color: var(--accent);
  text-decoration: none;
}

.schema-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--surface);
}

.workspace-toolbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
}

.workspace-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workspace-title > div {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.eyebrow {
  color: var(--faint);
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.workspace-title h1,
.summary-control-head h1 {
  overflow: hidden;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-total {
  padding: 3px 7px;
  border-radius: 10px;
  background: var(--comment-soft);
  color: var(--comment-ink);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

.toolbar-actions,
.summary-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 34px;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.button svg {
  width: 14px;
  height: 14px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.button.secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--surface-raised);
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.schema-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px 22px 80px;
  scroll-behavior: smooth;
}

.schema-key {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding: 0 2px 10px;
  color: var(--faint);
  font-size: 9px;
}

.schema-key > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.key-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.key-dot.required {
  background: var(--required);
}

.key-dot.commented {
  background: var(--comment);
}

.schema-tree {
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.schema-node {
  position: relative;
}

.schema-node + .schema-node {
  border-top: 1px solid var(--line);
}

.schema-node.is-hidden {
  display: none;
}

.schema-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 48px;
  gap: 8px;
  align-items: start;
  padding: 8px 11px 8px 8px;
  background: var(--surface);
}

.schema-row:hover,
.schema-node.is-selected > .schema-row {
  background: #f7fbfd;
}

.schema-node.is-selected > .schema-row {
  box-shadow: inset 3px 0 var(--accent);
}

.schema-toggle {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}

.schema-toggle:hover {
  background: var(--surface-raised);
  color: var(--ink);
}

.schema-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.schema-node.is-collapsed > .schema-row .schema-toggle svg {
  transform: rotate(-90deg);
}

.schema-toggle.is-leaf {
  cursor: default;
  opacity: 0.28;
}

.schema-main {
  min-width: 0;
  padding-top: 1px;
}

.schema-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.schema-name {
  overflow-wrap: anywhere;
  color: #2c2e36;
  font-size: 12px;
  font-weight: 500;
}

.required-mark {
  color: var(--required);
  font-size: 13px;
  font-weight: 650;
}

.schema-badge {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.schema-badge.type-object,
.schema-badge.type-array {
  border-color: #92d4f3;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.schema-badge.ref {
  border-color: var(--line-strong);
  background: #eeece8;
  color: var(--muted);
}

.schema-description {
  max-width: 760px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
}

.schema-constraints {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.constraint {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eeece8;
  color: #5c5a55;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8px;
}

.comment-pin {
  position: sticky;
  right: 8px;
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  padding: 0 7px;
  border: 1px solid #92d4f3;
  border-radius: 14px;
  background: var(--comment-soft);
  color: var(--comment-ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 650;
}

.comment-pin:hover,
.comment-pin.is-active {
  border-color: var(--comment);
  background: #d9eff9;
}

.comment-pin svg {
  width: 13px;
  height: 13px;
}

.comment-pin.add-comment {
  visibility: hidden;
  border-color: var(--line);
  background: var(--surface);
  color: var(--faint);
}

.schema-row:hover .comment-pin.add-comment,
.schema-node.is-selected > .schema-row .comment-pin.add-comment {
  visibility: visible;
}

.schema-children {
  position: relative;
  margin-left: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.schema-node.is-collapsed > .schema-children {
  display: none;
}

.schema-children > .schema-node::before {
  position: absolute;
  top: 23px;
  left: -14px;
  width: 13px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.schema-root > .schema-row {
  min-height: 58px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--surface-raised);
}

.schema-root > .schema-children {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.schema-root > .schema-children > .schema-node::before {
  display: none;
}

.schema-empty {
  display: grid;
  min-height: 240px;
  place-items: center;
  padding: 40px;
  color: var(--muted);
}

.thread-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: var(--surface-raised);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.thread-open .thread-panel {
  transform: translateX(0);
}

.thread-head {
  display: flex;
  min-height: 90px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 17px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.thread-head > div {
  min-width: 0;
}

.thread-head h2 {
  max-width: 300px;
  margin: 4px 0 5px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-head code {
  display: block;
  max-width: 320px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-list {
  min-height: 0;
  overflow: auto;
  padding: 15px;
}

.thread-empty {
  display: grid;
  min-height: 160px;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.thread-empty svg {
  width: 24px;
  height: 24px;
  margin-bottom: 9px;
  color: var(--faint);
}

.thread-empty p {
  max-width: 220px;
  font-size: 11px;
  line-height: 1.45;
}

.thread-comment {
  position: relative;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #b9deef;
  border-radius: 7px;
  background: #f3fafe;
}

.thread-comment.is-resolved {
  border-color: var(--line);
  background: #f5f4f1;
  opacity: 0.75;
}

.comment-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.comment-author {
  display: flex;
  min-width: 0;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  font-weight: 650;
}

.comment-avatar {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #2c2e36;
  color: #fff;
  font-size: 8px;
}

.comment-source {
  color: var(--faint);
  font-size: 8px;
  font-weight: 500;
}

.resolve-button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  padding: 0;
  border: 1px solid #b9deef;
  border-radius: 5px;
  background: transparent;
  color: var(--accent-ink);
  cursor: pointer;
}

.resolve-button:hover,
.is-resolved .resolve-button {
  border-color: #92d4f3;
  background: #eaf6fb;
  color: var(--accent-ink);
}

.resolve-button svg {
  width: 14px;
  height: 14px;
}

.comment-body {
  color: #2c2e36;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.comment-decision {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #cfe9f4;
  color: var(--accent-ink);
  font-size: 10px;
  line-height: 1.45;
}

.comment-date {
  margin-top: 9px;
  color: var(--faint);
  font-size: 8px;
}

.comment-form {
  display: grid;
  gap: 9px;
  padding: 14px 15px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.comment-form label,
.field-control {
  display: grid;
  gap: 5px;
}

.comment-form label > span,
.field-control > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.comment-form input,
.comment-form textarea,
.field-control input,
.field-control textarea,
.field-control select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

.comment-form input,
.field-control input,
.field-control select {
  height: 35px;
  padding: 0 9px;
}

.comment-form textarea,
.field-control textarea {
  min-height: 70px;
  padding: 9px;
  resize: vertical;
  line-height: 1.45;
}

.comment-form input:focus,
.comment-form textarea:focus,
.field-control input:focus,
.field-control textarea:focus,
.field-control select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 172, 209, 0.12);
}

.comment-form .button {
  justify-self: end;
}

.summary-view {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  min-height: 0;
}

.summary-controls {
  min-height: 0;
  overflow: auto;
  padding: 28px 26px 60px;
  border-right: 1px solid var(--line);
  background: var(--surface-raised);
}

.summary-control-head {
  margin-bottom: 24px;
}

.summary-control-head h1 {
  margin-top: 5px;
}

.summary-controls .field-control {
  margin-bottom: 16px;
}

.context-control textarea {
  min-height: 210px;
}

.endpoint-disclosure {
  margin: 6px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.endpoint-disclosure > button {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.endpoint-disclosure > button > span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.endpoint-disclosure svg {
  width: 14px;
  height: 14px;
}

.endpoint-disclosure.is-open > button > svg {
  transform: rotate(180deg);
}

.endpoint-fields {
  display: none;
  padding: 3px 0 4px;
}

.endpoint-disclosure.is-open .endpoint-fields {
  display: block;
}

.summary-actions {
  justify-content: flex-end;
}

.summary-output {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: var(--surface);
}

.summary-output-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px;
  border-bottom: 1px solid var(--line);
}

.summary-output-head h2 {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 650;
}

.markdown-body {
  min-height: 0;
  overflow: auto;
  padding: 34px clamp(28px, 7vw, 92px) 100px;
  color: #2c2e36;
  font-size: 12px;
  line-height: 1.7;
}

.markdown-body > * {
  max-width: 850px;
}

.markdown-body h1 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
}

.markdown-body h2 {
  margin: 30px 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.markdown-body ul {
  margin: 8px 0 20px;
  padding-left: 20px;
}

.markdown-body li {
  margin-bottom: 8px;
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #eeece8;
  color: var(--code);
  font-size: 10px;
}

.empty-summary {
  display: grid;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-summary svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: var(--faint);
}

.empty-summary p {
  max-width: 260px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 360px;
  padding: 10px 13px;
  border: 1px solid #b9deef;
  border-radius: 6px;
  background: #f3fafe;
  box-shadow: var(--shadow);
  color: var(--accent-ink);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-error {
  border-color: #e4b3b7;
  background: #fff1f2;
  color: #8f252e;
}

@media (max-width: 1180px) {
  #review-view,
  #review-view.thread-open {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .thread-panel {
    position: absolute;
    top: 60px;
    right: 0;
    bottom: 0;
    width: min(410px, calc(100vw - 40px));
    box-shadow: var(--shadow);
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .brand-copy,
  .save-state,
  .topbar-actions .icon-button {
    display: none;
  }

  .view-tabs {
    justify-self: end;
  }

  #review-view,
  #review-view.thread-open {
    grid-template-columns: 1fr;
  }

  .outline-panel {
    display: none;
  }

  .workspace-toolbar {
    min-height: 68px;
    padding: 10px 13px;
  }

  .toolbar-actions .icon-button {
    display: none;
  }

  .button {
    padding: 0 9px;
  }

  .schema-scroll {
    padding: 10px 8px 70px;
  }

  .schema-key {
    display: none;
  }

  .schema-tree {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .schema-children {
    margin-left: 9px;
    padding-left: 7px;
  }

  .schema-children > .schema-node::before {
    left: -7px;
    width: 6px;
  }

  .summary-view {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .summary-controls,
  .summary-output {
    overflow: visible;
  }

  .summary-controls {
    padding: 22px 18px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-output {
    min-height: 600px;
  }

  .markdown-body {
    overflow: visible;
    padding: 26px 18px 80px;
  }
}
