.editor-body {
  min-height: 100vh;
  background: #faf6f6;
}

.editor-header {
  height: 61px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 25px;
  background: #fff;
  border-bottom: 1px solid #fae6e6;
}

.editor-header .brand { font-size: 16px; color: #7f1d1d; }
.editor-divider { width: 1px; height: 22px; background: #fae6e6; }
.editor-name { color: #6e4a4a; font-size: 11px; font-weight: 700; }
.editor-public-link { margin-left: auto; color: #991b1b; font-size: 10px; font-weight: 600; text-decoration: none; }
.editor-public-link span { margin-left: 4px; }
.editor-user { display: flex; align-items: center; gap: 7px; margin-left: 10px; color: #735959; font-size: 9px; }
.editor-user i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fee2e2; color: #991b1b; font-style: normal; font-weight: 700; }

.editor-shell { display: grid; grid-template-columns: 194px minmax(0, 1fr); min-height: calc(100vh - 90px); }
.editor-sidebar { position: relative; padding: 22px 12px; background: #fff; border-right: 1px solid #fae6e6; }
.editor-nav-label { margin: 0 9px 11px; color: #a38a8a; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.editor-nav-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 5px; background: transparent; color: #7a6161; font: 500 10px 'DM Sans', sans-serif; text-align: left; cursor: pointer; }
.editor-nav-item > span { width: 16px; color: #9a7d7d; font-size: 14px; text-align: center; }
.editor-nav-item b { margin-left: auto; color: #991b1b; font-size: 9px; }
.editor-nav-item.active { background: #fdf2f2; color: #7f1d1d; font-weight: 700; }
.editor-nav-item.active > span { color: #991b1b; }
.editor-sidebar-bottom { position: absolute; bottom: 17px; left: 20px; display: flex; align-items: center; gap: 7px; color: #9e8484; font-size: 8px; }
.editor-sidebar-bottom .status-dot { background: #b89e9e; }

.editor-main { width: 100%; max-width: 1300px; margin: 0 auto; padding: 24px 28px 40px; }
.editor-demo-note { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 9px 12px; border: 1px solid #fecaca; border-radius: 5px; background: #fdf2f2; color: #991b1b; }
.editor-demo-note > span { font-size: 12px; }
.editor-demo-note p { margin: 0; font-size: 9px; line-height: 1.5; }
.editor-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.editor-heading h1 { margin: 0; color: #2e1e1e; font: 700 25px 'Manrope', sans-serif; letter-spacing: -.6px; }
.editor-heading > div > p:last-child { margin: 6px 0 0; color: #826e6e; font-size: 10px; }
.editor-filter-button { padding: 8px 10px; border: 1px solid #e7dfdf; border-radius: 4px; background: #fff; color: #7f6a6a; font: 500 9px 'DM Sans', sans-serif; }
.editor-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 17px 0; }
.editor-stats > div { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #fae6e6; border-radius: 5px; background: #fff; }
.editor-stats span { color: #856e6e; font-size: 9px; }
.editor-stats strong { color: #991b1b; font: 700 16px 'Manrope', sans-serif; }
.editor-workspace { display: grid; grid-template-columns: minmax(270px, 350px) minmax(400px, 1fr); align-items: start; gap: 13px; }
.queue-column, .review-panel { overflow: hidden; border: 1px solid #fae6e6; border-radius: 6px; background: #fff; }
.queue-tabs { display: flex; gap: 15px; padding: 0 13px; border-bottom: 1px solid #fae6e6; }
.queue-tab { height: 39px; border: 0; border-bottom: 2px solid transparent; background: none; color: #8a7a7a; font: 500 9px 'DM Sans', sans-serif; cursor: pointer; }
.queue-tab span { margin-left: 4px; color: #a69898; }
.queue-tab.active { border-color: #991b1b; color: #7f1d1d; font-weight: 700; }
.queue-tab.active span { color: #991b1b; }
.queue-list { padding: 5px; }
.queue-card { width: 100%; display: block; margin: 3px 0; padding: 12px 11px; border: 1px solid transparent; border-radius: 5px; background: #fff; text-align: left; cursor: pointer; }
.queue-card:hover { background: #fdfafa; }
.queue-card.selected { border-color: #fca5a5; background: #fdf2f2; }
.queue-card-top { display: flex; justify-content: space-between; gap: 6px; }
.queue-card-top .tag { font-size: 7px; }
.queue-time { color: #9c8a8a; font-size: 8px; }
.queue-card h2 { margin: 7px 0 5px; color: #3d2c2c; font: 700 11px/1.45 'Manrope', sans-serif; }
.queue-card > p { margin: 0; color: #877474; font-size: 9px; line-height: 1.5; }
.queue-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 9px; }
.queue-card-bottom .place-tag { font-size: 8px; white-space: normal; }
.queue-warning { padding: 4px 5px; border-radius: 3px; background: #fdf2f2; color: #991b1b; font-size: 7px; white-space: nowrap; }

.review-panel { padding: 17px 19px; }
.review-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.draft-state { display: flex; align-items: center; gap: 6px; color: #991b1b; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.draft-state i { width: 6px; height: 6px; border-radius: 50%; background: #dc2626; }
.review-age { color: #9e8989; font-size: 8px; }
.review-panel > .eyebrow { margin-bottom: 7px; }
.review-title { margin: 0 0 8px; color: #2e1c1c; font: 700 19px/1.35 'Manrope', sans-serif; letter-spacing: -.4px; }
.review-summary { margin: 0; color: #7e6969; font-size: 10px; line-height: 1.6; }
.review-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid #fae6e6; }
.review-section-heading { display: flex; align-items: center; justify-content: space-between; }
.review-section-heading h3 { margin: 0; color: #493333; font: 700 10px 'Manrope', sans-serif; }
.mini-edit { border: 0; background: transparent; color: #937f7f; font: 500 8px 'DM Sans', sans-serif; }
.review-chips { display: flex; gap: 5px; margin-top: 9px; }
.review-chips span { padding: 5px 7px; border: 1px solid #fca5a5; border-radius: 4px; background: #fdf2f2; color: #7f1d1d; font-size: 8px; }
.review-hint { margin: 7px 0 0; color: #9c8787; font-size: 8px; }
.missing-source { display: flex; align-items: flex-start; gap: 9px; max-width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #fae6e6; border-radius: 4px; background: #fdfafa; }
.missing-source > span { width: 20px; height: 20px; display: grid; flex: none; place-items: center; border-radius: 4px; background: #fee2e2; color: #991b1b; font-size: 11px; }
.missing-source strong { display: block; color: #6e4848; font-size: 9px; overflow-wrap: anywhere; }
.missing-source p { max-width: 350px; margin: 3px 0 0; color: #8f7979; font-size: 8px; line-height: 1.5; overflow-wrap: anywhere; }
.review-section-heading .source-missing { display: inline; padding: 0; border: 0; background: transparent; color: #b91c1c; font-size: 8px; }
.review-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 9px 0 0; padding: 0; list-style: none; }
.review-checklist li { display: flex; align-items: center; gap: 6px; color: #877474; font-size: 8px; }
.review-checklist i { width: 11px; height: 11px; display: block; border: 1px solid #d1bcbc; border-radius: 3px; }
.review-actions { display: flex; gap: 7px; margin-top: 16px; }
.review-actions button { padding: 9px 12px; border-radius: 4px; font: 700 8px 'DM Sans', sans-serif; opacity: .48; }
.return-button { border: 1px solid #e3d5d5; background: #fff; color: #735b5b; }
.publish-button { border: 1px solid #991b1b; background: #991b1b; color: #fff; }
.publish-blocker { margin: 8px 0 0; color: #991b1b; font-size: 8px; line-height: 1.5; }

.editor-empty { min-height: 270px; display: flex; align-items: center; justify-content: center; flex-direction: column; margin-top: 17px; padding: 25px; border: 1px solid #fae6e6; border-radius: 6px; background: #fff; text-align: center; }
.editor-empty > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #fee2e2; color: #991b1b; font-size: 16px; }
.editor-empty h2 { margin: 12px 0 6px; color: #492e2e; font: 700 16px 'Manrope', sans-serif; }
.editor-empty p { max-width: 440px; margin: 0; color: #857070; font-size: 10px; line-height: 1.7; }
.editor-empty button { margin-top: 13px; padding: 8px 12px; border: 1px solid #e8dbdb; border-radius: 4px; background: #fdfafa; color: #826c6c; font: 600 9px 'DM Sans', sans-serif; }
.aux-view[hidden], .editor-view[hidden] { display: none; }

@media (max-width: 900px) {
  .editor-shell { grid-template-columns: 160px minmax(0, 1fr); }
  .editor-main { padding: 20px 16px; }
  .editor-workspace { grid-template-columns: minmax(230px, 310px) minmax(340px, 1fr); gap: 9px; }
  .review-panel { padding: 14px; }
  .review-title { font-size: 17px; }
}

@media (max-width: 680px) {
  .editor-header { gap: 9px; padding: 0 13px; }
  .editor-header .brand { font-size: 14px; }
  .editor-user span { display: none; }
  .editor-public-link { font-size: 8px; }
  .editor-shell { display: block; }
  .editor-sidebar { display: flex; align-items: center; gap: 4px; overflow: auto; padding: 7px 10px; border-right: 0; border-bottom: 1px solid #e6e8e2; }
  .editor-nav-label, .editor-sidebar-bottom { display: none; }
  .editor-nav-item { width: auto; padding: 8px; font-size: 9px; white-space: nowrap; }
  .editor-nav-item b { display: none; }
  .editor-main { padding: 13px 10px; }
  .editor-heading h1 { font-size: 21px; }
  .editor-stats { gap: 5px; }
  .editor-stats > div { gap: 5px; padding: 8px; }
  .editor-stats span { font-size: 8px; }
  .editor-stats strong { font-size: 14px; }
  .editor-workspace { display: flex; flex-direction: column; }
  .queue-column, .review-panel { width: 100%; }
  .queue-list { display: flex; gap: 6px; overflow-x: auto; }
  .queue-card { min-width: 235px; max-width: 260px; }
  .review-panel { padding: 15px; }
}
