/* Stitch Quiet Luxury â€” shared overrides */
body { font-family: Inter, system-ui, sans-serif; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.card-shadow { box-shadow: 0 8px 32px rgba(15,23,42,0.06); transition: all 0.3s ease; }
.card-shadow:hover { box-shadow: 0 16px 48px rgba(15,23,42,0.04); transform: translateY(-2px); }
.custom-shadow, .shadow-premium, .luxury-shadow { box-shadow: 0 8px 32px rgba(15,23,42,0.06); }
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 12px 48px rgba(15,23,42,0.04); }
.gradient-btn, .primary-gradient { background: linear-gradient(to right, #334155, #1e293b); }
.dashed-border-gradient {
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23C5C6CD' stroke-width='2' stroke-dasharray='8%2c 8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 16px;
}
.upload-area:hover { background-color: #f3f4f5; cursor: pointer; transition: all 0.3s ease; }

.view-hidden { display: none !important; }
.nav-active { color: #091426; font-weight: 600; background: #e7e8e9; border-radius: 0.5rem; }
.ew-tab-active { color: #091426; border-bottom: 2px solid #091426; font-weight: 500; }
.gen-nav-active { background: #f3f4f5; font-weight: 600; }
.binding-nav-active { background: #f3f4f5; font-weight: 600; }

#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: #091426; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 300;
}
.is-loading { opacity: 0.7; pointer-events: none; }

.pre pre, .gen-prompt-preview, .gen-prompt-editor {
  white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, monospace;
  font-size: 12px; line-height: 1.5; max-height: 420px; overflow: auto;
  background: #f3f4f5; padding: 12px; border-radius: 8px;
}
.gen-prompt-editor {
  resize: vertical; min-height: 280px; border: 1px solid #c5c6cd; outline: none;
}
.gen-prompt-editor:focus {
  border-color: #505f76; box-shadow: 0 0 0 2px rgba(80, 95, 118, 0.15);
}

.role-preview-trigger {
  cursor: help;
  border-bottom: 1px dashed #c5c6cd;
  padding-bottom: 1px;
}
.role-preview-trigger:hover {
  color: #091426;
  border-bottom-color: #505f76;
}

.asset-hover-preview {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.14);
  border: 1px solid #e8eaed;
  padding: 10px;
  max-width: 220px;
  transition: opacity 0.15s ease;
}
.asset-hover-preview img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f5;
}
.asset-hover-preview__meta {
  margin-top: 8px;
  font-size: 12px;
  color: #45474c;
  text-align: center;
  line-height: 1.4;
  max-width: 200px;
  word-break: break-all;
}
.asset-hover-preview__placeholder {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f3f4f5;
  border-radius: 8px;
  color: #75777d;
}
.asset-hover-preview__placeholder .material-symbols-outlined {
  font-size: 40px;
  opacity: 0.45;
  margin-bottom: 8px;
}

/* ½âÎöÔ¤ÀÀ£º×Ê²úµãÑ¡¸ßÁÁ + ×óÓÒ·ÖÀ¸ */
.pr-asset-hl {
  background: #fde68a;
  color: #091426;
  padding: 0 2px;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.pr-asset-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f3f4f5;
  font-size: 12px;
  line-height: 1.35;
  transition: background 0.15s, border-color 0.15s;
}
.pr-asset-item:hover { background: #e8eaed; }
.pr-asset-item.is-active {
  border-color: #64748b;
  background: #e2e8f0;
  font-weight: 600;
}
.pr-asset-item.is-missing {
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
}
.pr-prompt-ce {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  background: #f8f9fa;
  border: 1px solid #c5c6cd;
  border-radius: 8px;
  padding: 12px;
  outline: none;
}
.pr-prompt-ce:focus { border-color: #64748b; box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.15); }
.pr-group-split {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .pr-group-split { grid-template-columns: 1fr; }
}
.pr-asset-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.pr-asset-row .pr-asset-item {
  flex: 1;
  min-width: 0;
}
.pr-asset-row.is-missing .pr-asset-item {
  border-color: rgba(185, 28, 28, 0.35);
  color: #b91c1c;
}
.pr-asset-del {
  flex: 0 0 28px;
  width: 28px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #b91c1c;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.pr-asset-del:hover {
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.4);
}
.pr-asset-row.is-active .pr-asset-item {
  border-color: #64748b;
  background: #e2e8f0;
  font-weight: 600;
}
