/* Page-specific styles for create-list/index.html — see
   ../thawbacks/css/base.css for shared vars/reset/buttons and the rules
   this page has in common with the Thawback List (status, toolbar, chips,
   group titles, sheet overlay, toast). */

.wrap {
  width: 100%;
  max-width: 720px;
  padding-bottom: 72px; /* clears the floating list button */
}
header { margin-bottom: 16px; }
.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.wip-notice {
  background: var(--panel);
  border: 1px solid var(--warn);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}
.wip-notice strong { color: var(--warn); }

.clear-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  font-size: 1.1rem;
  padding: 0;
}
.clear-btn:active { background: var(--row); }

.cards {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4px;
}
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--row);
  border-top: 1px solid var(--border);
  min-height: 64px;
}
.card.has-qty { background: var(--row-alt); }

.thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--border);
}
.thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
}

.card-body {
  flex: 1;
  min-width: 0;
}
.card-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.stepper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.stepper button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
}
.stepper button:active { background: var(--row-alt); }
.stepper .qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
}

footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1320;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  z-index: 50;
}
.fab:active { filter: brightness(0.9); }

.sheet-panel {
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
}
.sheet-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.list-items {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--row);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.list-item-name {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  font-weight: 600;
}
.list-item-qty {
  flex-shrink: 0;
  color: var(--good);
  font-weight: 700;
}
.list-item-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
}
.list-item-remove:active { color: var(--danger); }

.list-empty {
  color: var(--muted);
  text-align: center;
  padding: 24px 0;
}

.list-actions {
  display: flex;
  gap: 8px;
}
.list-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
}
.list-copy { background: var(--accent); color: #0b1320; }
.list-close { background: var(--row); color: var(--text); border: 1px solid var(--border) !important; }
