/* Editorial Atelier — Sprint 5 editorial workspace */

.editorial-workspace-shell {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, .93);
  box-shadow: 0 18px 55px rgba(74, 48, 37, .07);
  overflow: hidden;
}

.workspace-shell-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 2.5vw, 30px);
  border-bottom: 1px solid var(--line);
}
.workspace-shell-head h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(25px, 2.7vw, 36px);
  letter-spacing: -.03em;
}
.workspace-shell-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.workspace-summary {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.workspace-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 180px;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(242, 231, 210, .22);
}
.workspace-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.workspace-toolbar input,
.workspace-toolbar select {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--brown);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.editorial-workspace-shell .article-console {
  margin: 0;
  min-height: 540px;
  grid-template-columns: minmax(360px, .8fr) minmax(470px, 1.2fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.editorial-workspace-shell .article-list-wrap { min-width: 0; background: rgba(251, 247, 238, .32); }
.editorial-workspace-shell .console-title { min-height: 48px; padding: 0 14px; }
.editorial-workspace-shell .console-title h3 { margin: 0; font-size: 13px; }
.editorial-workspace-shell .article-list {
  max-height: none;
  overflow: visible;
  padding: 7px 8px;
}
.editorial-workspace-shell .article-row {
  min-height: 70px;
  padding: 7px;
}
.editorial-workspace-shell .article-select {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
}
.editorial-workspace-shell .article-row img,
.editorial-workspace-shell .article-thumb-empty {
  width: 56px;
  height: 50px;
  border-radius: 8px;
}
.editorial-workspace-shell .article-row strong { font-size: 12px; }
.editorial-workspace-shell .article-row small { font-size: 9px; }
.editorial-workspace-shell .article-row-delete {
  min-width: 54px;
  padding-inline: 8px;
  opacity: .68;
}
.editorial-workspace-shell .article-row:hover .article-row-delete,
.editorial-workspace-shell .article-row[aria-current="true"] .article-row-delete,
.editorial-workspace-shell .article-row-delete:focus-visible { opacity: 1; }
.editorial-workspace-shell .workspace-hidden { display: none !important; }

.workspace-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.workspace-pagination span { color: var(--muted); font-size: 10px; }
.workspace-pagination-actions { display: flex; gap: 7px; }
.workspace-pagination button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--brown);
  font-size: 10px;
  font-weight: 700;
}
.workspace-pagination button:disabled { opacity: .4; cursor: not-allowed; }

.editorial-workspace-shell .article-detail {
  min-width: 0;
  background: var(--paper);
}
.editorial-workspace-shell .article-detail-body { padding: 18px; }
.editorial-workspace-shell .article-detail h3 { font-size: clamp(22px, 2.1vw, 29px); }
.editorial-workspace-shell .article-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-workspace-shell .article-kpis div { min-height: 68px; }
.editorial-workspace-shell .article-kpis strong { font-size: 16px; }

.workspace-data-note {
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(242, 231, 210, .18);
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 1040px) {
  .editorial-workspace-shell .article-console { grid-template-columns: 1fr; }
  .editorial-workspace-shell .article-list-wrap { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .workspace-shell-head { align-items: flex-start; flex-direction: column; }
  .workspace-toolbar { grid-template-columns: 1fr 1fr; }
  .workspace-toolbar label:first-child { grid-column: 1 / -1; }
  .workspace-summary { white-space: normal; }
  .editorial-workspace-shell .article-kpis { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .workspace-toolbar { grid-template-columns: 1fr; }
  .workspace-toolbar label:first-child { grid-column: auto; }
  .editorial-workspace-shell .article-select { grid-template-columns: 48px minmax(0, 1fr); }
  .editorial-workspace-shell .article-row img,
  .editorial-workspace-shell .article-thumb-empty { width: 48px; height: 46px; }
  .editorial-workspace-shell .article-select .draft-state { grid-column: 2; justify-self: start; }
  .workspace-pagination { align-items: flex-start; flex-direction: column; }
  .workspace-pagination-actions { width: 100%; }
  .workspace-pagination button { flex: 1; }
}
