/* Draft Shelf — guided.html, tutor.html 공통 컴포넌트
   2026-05-15 07-misc.css에서 분리 (gallery 페이지가 아닌 작성 흐름에서 사용) */
.draft-shelf {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.draft-shelf__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.draft-shelf__head h2,
.draft-shelf__head h3 {
  margin: 4px 0 0;
}
.draft-shelf__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.draft-shelf__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fz-13);
  color: var(--ink-soft);
}
.draft-shelf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.draft-shelf__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 12px 14px;
}
.draft-shelf__item-main {
  min-width: 0;
}
.draft-shelf__item-main strong,
.draft-shelf__item-main p,
.draft-shelf__item-main span {
  display: block;
}
.draft-shelf__item-main p,
.draft-shelf__item-main span {
  margin: 4px 0 0;
  font-size: var(--fz-13);
  color: var(--ink-mute);
}
.draft-shelf__item-main p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.draft-shelf__item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.draft-shelf__empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .draft-shelf__item {
    flex-direction: column;
    align-items: stretch;
  }
  .draft-shelf__item-actions {
    justify-content: flex-end;
  }
}
