.suzushinlab-app-card-codex {
  max-width: 900px;
  margin: 0 auto;
  font-size: 14px;
  color: #22223b;
}

.cc-search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid #e4e7f2;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 16px;
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-field label,
.cc-field-label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

.cc-field input[type="text"],
.cc-field input[type="number"],
.cc-field select {
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.cc-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-weight: 400;
}

.cc-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}

.cc-field-inline {
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
}

.cc-field-inline input[type="text"] {
  flex: 1;
  min-width: 0;
}

.cc-field-inline select {
  flex-shrink: 0;
  width: auto;
}

.cc-mv-input {
  width: 80px;
}

.cc-range-separator {
  padding-bottom: 8px;
  color: #6b7280;
}

.cc-advanced {
  grid-column: 1 / -1;
  border-top: 1px dashed #e4e7f2;
  padding-top: 10px;
}

.cc-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #6366f1;
}

.cc-advanced input[type="text"] {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}

.cc-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.cc-search-form button[type="submit"] {
  grid-column: 1 / -1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #6366f1;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.cc-search-form button[type="submit"]:hover {
  background: #4338ca;
}

.cc-status {
  min-height: 1.4em;
  color: #4b5563;
  margin: 4px 0 12px;
}

.cc-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.cc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e4e7f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
}

.cc-card img {
  width: 100%;
  border-radius: 8px;
}

.cc-card-noimage {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 488 / 680;
  background: #f3f4f6;
  color: #9ca3af;
  border-radius: 8px;
}

.cc-card-name {
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}

.cc-card-meta {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.cc-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.cc-card-actions button {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 12px;
}

.cc-card-actions button:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.cc-load-more {
  display: block;
  margin: 0 auto 24px;
  padding: 10px 24px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.cc-saved-panel {
  padding: 16px;
  border: 1px solid #e4e7f2;
  border-radius: 12px;
  background: #f9fafb;
  margin-bottom: 16px;
}

.cc-saved-heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.cc-saved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.cc-saved-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 176px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e4e7f2;
  border-radius: 8px;
}

.cc-saved-thumb {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.cc-saved-item img {
  width: 160px;
  height: auto;
  border-radius: 6px;
}

.cc-saved-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #6366f1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0 0 2px #ffffff;
}

.cc-saved-item-label {
  font-size: 12px;
  text-align: center;
}

.cc-saved-item button {
  border: none;
  background: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
}

.cc-saved-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cc-set-format-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.cc-set-format-label select {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
}

.cc-saved-actions button {
  padding: 8px 16px;
  border: 1px solid #6366f1;
  border-radius: 8px;
  background: #ffffff;
  color: #4338ca;
  cursor: pointer;
  font-weight: 600;
}

.cc-saved-actions button:hover {
  background: #eef2ff;
}

.cc-clear-button {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.cc-clear-button:hover {
  background: #fef2f2 !important;
}

.cc-bulk-add {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e4e7f2;
}

.cc-bulk-add summary {
  cursor: pointer;
  font-weight: 600;
  color: #6366f1;
  margin-bottom: 8px;
}

.cc-bulk-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
}

.cc-bulk-add button {
  margin-top: 8px;
  padding: 8px 16px;
  border: 1px solid #6366f1;
  border-radius: 8px;
  background: #ffffff;
  color: #4338ca;
  cursor: pointer;
  font-weight: 600;
}

.cc-bulk-add button:hover {
  background: #eef2ff;
}

.cc-credit {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}
