/* Favicon Generator - tool-specific styles (built on shared tokens) */

.load-error { margin: 14px 2px 0; }

.workspace { display: flex; flex-direction: column; gap: 24px; }

.block-title {
  font-family: var(--font-display);
  font-weight: 620;
  letter-spacing: -0.02em;
  font-size: 18px;
  line-height: 1.2;
}

/* ---------- source summary ---------- */
.source-card {
  display: flex;
  align-items: center;
  gap: 16px;
}
.thumb.source-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-input);
  background:
    conic-gradient(var(--surface-2) 0 25%, transparent 0 50%, var(--surface-2) 0 75%, transparent 0) 0 0 / 16px 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
}
.thumb.source-thumb img,
.thumb.source-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.source-main { min-width: 0; }
.file-name {
  font-weight: 540;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.file-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}
.file-note.is-warn { color: var(--danger); }
.file-note:empty { display: none; }

/* ---------- options grid ---------- */
.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px 32px;
  align-items: start;
}
@media (max-width: 820px) {
  .opt-grid { grid-template-columns: 1fr; gap: 20px; }
}
input[type="color"] { width: 52px; height: 36px; }

/* ---------- preview ---------- */
.preview-block { display: flex; flex-direction: column; gap: 4px; }
.preview-hint { margin-bottom: 8px; }
.preview-strips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .preview-strips { grid-template-columns: 1fr; }
}
.preview-strip {
  border: 1px solid var(--border);
  border-radius: var(--r-surface);
  padding: 24px 20px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  overflow-x: auto;
}
.strip-light { background: #ffffff; }
.strip-dark { background: #101012; }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: none;
}
.swatch canvas,
.swatch img {
  display: block;
  image-rendering: auto;
}
.swatch .swatch-label {
  font-family: var(--font-mono);
  font-size: 11px;
}
.strip-light .swatch-label { color: #71717a; }
.strip-dark .swatch-label { color: #a1a1aa; }

/* ---------- actions ---------- */
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.results-head .actions { gap: 8px; }

/* ---------- output file list ---------- */
.file-list { gap: 10px; }
.out-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-surface);
  padding: 12px 16px;
}
.out-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--r-input);
  border: 1px solid var(--border);
  background:
    conic-gradient(var(--surface-2) 0 25%, transparent 0 50%, var(--surface-2) 0 75%, transparent 0) 0 0 / 12px 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
}
.out-preview canvas,
.out-preview img { width: 100%; height: 100%; object-fit: contain; }
.out-main { min-width: 0; }
.out-name {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.out-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.dl-btn { padding: 7px 14px; font-size: 13px; }
.dl-btn svg { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .out-row {
    grid-template-columns: 40px 1fr auto;
  }
  .out-size { display: none; }
}

/* ---------- snippets ---------- */
.snippet-block { display: flex; flex-direction: column; gap: 10px; }
.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.snip-copy { padding: 6px 14px; font-size: 13px; }
.snippet {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  padding: 14px 16px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
  margin-bottom: 6px;
}
