
/* Admin Custom Puzzles (py53-3) */

#admin-view-custom {
  margin-top: 8px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-right: 4px;
}

.admin-custom-device {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0 12px 0;
}

.admin-custom-row {
  display: grid;
  grid-template-columns: auto 70px auto 1fr auto 1fr;
  gap: 6px 8px;
  align-items: center;
  margin-bottom: 8px;
}

.admin-custom-row label {
  font-size: 12px;
  opacity: 0.9;
}

.admin-custom-row input,
.admin-custom-row select,
.admin-custom-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: inherit;
  font-size: 12px;
}

.admin-custom-row textarea {
  grid-column: 2 / -1;
  resize: vertical;
  min-height: 64px;
}

.admin-custom-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.admin-custom-actions button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: inherit;
  font-size: 12px;
}

.admin-custom-actions button:disabled {
  opacity: 0.45;
}

.admin-custom-status {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.95;
}

.admin-custom-list-title {
  font-size: 12px;
  margin: 6px 0 6px 0;
  opacity: 0.95;
}

.admin-custom-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.admin-custom-item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px 10px;
}

.admin-custom-item-left {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-custom-item-title {
  font-size: 13px;
}

.admin-custom-item-meta {
  font-size: 12px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.admin-custom-item-right {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-custom-item-right button {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: inherit;
  font-size: 12px;
}

.admin-custom-item-right button.danger {
  border-color: rgba(255, 80, 80, 0.6);
}

.admin-custom-empty {
  opacity: 0.85;
  font-size: 12px;
}


/* Scrollable list area fills remaining space */
#admin-custom-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

