.strip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 1.25rem;
  align-items: start;
}

.strip-panel { min-width: 0; }
.strip-upload-block { padding: 1.15rem; }
.strip-drop-zone { min-height: 230px; }
.strip-status {
  min-height: 1.5rem;
  margin: .7rem 0 0;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
.strip-status[data-kind="error"] { color: #982e25; font-weight: 700; }
.strip-status[data-kind="success"] { color: #28663c; font-weight: 700; }

.strip-workspace[hidden], .strip-result[hidden] { display: none; }
.strip-workspace { border-top: 1px solid var(--line); }
.strip-options {
  display: flex;
  align-items: end;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: #fffaf1;
  border-bottom: 1px solid var(--line);
}
.strip-options h3 { width: 100%; margin: 0; }
.strip-field {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}
.strip-field select, .strip-field input {
  display: block;
  min-height: 40px;
  margin-top: .25rem;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.strip-field select { padding-right: 2rem; }
.strip-field input { width: 200px; max-width: 100%; }
.strip-field-note { margin: .3rem 0 0; color: var(--muted); font-size: .74rem; font-weight: 400; }

.strip-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem .5rem;
}
.strip-list-heading h3 { margin: 0; }
.strip-list-heading p { margin: .1rem 0 0; color: var(--muted); font-size: .82rem; }
.strip-cell-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: .5rem 1rem 1rem;
  list-style: none;
}
.strip-cell-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}
.strip-thumb {
  display: grid;
  place-items: center;
  width: 92px;
  height: 72px;
  overflow: hidden;
  border-radius: 9px;
  background: #e5d8c4;
}
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-cell-copy { min-width: 0; }
.strip-cell-name { overflow: hidden; margin: 0; font-size: .91rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.strip-cell-meta { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; }
.strip-cell-controls { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: end; }
.strip-icon-button {
  min-width: 36px;
  min-height: 36px;
  padding: .25rem .55rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
}
.strip-icon-button:hover:not(:disabled), .strip-icon-button:focus-visible:not(:disabled) { border-color: var(--ink); background: var(--yellow); }
.strip-icon-button.remove { color: #a92b23; }
.strip-icon-button:disabled { opacity: .4; cursor: not-allowed; }

.strip-actions { display: flex; justify-content: space-between; gap: .8rem; padding: 1rem; border-top: 1px solid var(--line); }

.strip-result {
  display: grid;
  gap: .7rem;
  justify-items: center;
  padding: 1rem;
  border-top: 1px solid var(--line);
  background: #fffaf1;
}
.strip-result h3 { margin: 0; }
/* 띠는 세로로 길어서 원래 크기로 두면 화면을 넘긴다. 높이로 먼저 맞춘다. */
.strip-result img {
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card);
}
.strip-result-meta { margin: 0; color: var(--muted); font-size: .82rem; text-align: center; }

@media (max-width: 900px) {
  .strip-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .strip-cell-card { grid-template-columns: 72px minmax(0, 1fr); }
  .strip-thumb { width: 72px; height: 64px; }
  .strip-cell-controls { grid-column: 1 / -1; justify-content: stretch; }
  .strip-cell-controls button { flex: 1; }
}
