/* ══════════════════════════════════════════════════════════════════════
   APPEARANCE SETTINGS — Gantt WBS level palettes
   Light theme, consistent with the #tp-settings (.dsett-*) panel.
   ══════════════════════════════════════════════════════════════════════ */

#tp-settings .appr-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#tp-settings .appr-block {
  background: #FAF8F4;
  border: 1px solid #E8E2D4;
  border-radius: 12px;
  padding: 16px 18px;
}
#tp-settings .appr-block-hdr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
#tp-settings .appr-block-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1B1A17;
}
#tp-settings .appr-block-sub {
  font-size: 11.5px;
  color: rgba(107, 102, 92, .72);
}

/* ─── Preview: swatch strip ──────────────────────────────────────────── */
#tp-settings .appr-swatches {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  #tp-settings .appr-swatches { grid-template-columns: repeat(7, 1fr); }
}
#tp-settings .appr-sw { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#tp-settings .appr-sw-chip {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  border: 1px solid rgba(0, 0, 0, .08);
}
#tp-settings .appr-sw-hex {
  font-size: 9.5px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: rgba(107, 102, 92, .85);
}

/* ─── Preview: mock gantt ────────────────────────────────────────────── */
#tp-settings .appr-mock {
  border: 1px solid #E8E2D4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
#tp-settings .appr-mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
#tp-settings .appr-mock-row:last-child { border-bottom: none; }
#tp-settings .appr-mock-act {
  background: #fff;
  color: #1B1A17;
  font-weight: 500;
}
#tp-settings .appr-mock-name {
  flex: 0 0 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#tp-settings .appr-mock-chart {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(2, 8, 18, .02);
  padding: 0 8px;
}
#tp-settings .appr-mock-bar {
  height: 12px;
  border-radius: 4px;
  min-width: 14px;
}
#tp-settings .appr-mock-sum { background: #0F172A; height: 8px; border-radius: 2px; }
#tp-settings .appr-mock-green { background: linear-gradient(90deg, #22c55eee, #22c55e88); }
#tp-settings .appr-mock-crit { background: linear-gradient(90deg, #ef4444ee, #ef444488); }

/* ─── Preset gallery ─────────────────────────────────────────────────── */
#tp-settings .appr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
#tp-settings .appr-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #E2DDD3;
  border-radius: 10px;
  background: #FFFCF6;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
#tp-settings .appr-card:hover {
  border-color: #C9BFA8;
  box-shadow: 0 6px 16px rgba(27, 26, 23, .08);
  transform: translateY(-1px);
}
#tp-settings .appr-card.is-active {
  border-color: #1B1A17;
  box-shadow: 0 0 0 2px rgba(27, 26, 23, .14);
}
#tp-settings .appr-card-bands {
  display: flex;
  height: 34px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
}
#tp-settings .appr-card-band { flex: 1; }
#tp-settings .appr-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #1B1A17;
}

/* ─── Custom per-level grid ──────────────────────────────────────────── */
#tp-settings .appr-custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
#tp-settings .appr-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #E2DDD3;
  border-radius: 9px;
  background: #FFFCF6;
}
#tp-settings .appr-custom-lbl {
  flex: 0 0 30px;
  font-size: 11.5px;
  font-weight: 800;
  color: rgba(27, 26, 23, .80);
}
#tp-settings .appr-custom-color {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #E2DDD3;
  border-radius: 7px;
  background: none;
  cursor: pointer;
}
#tp-settings .appr-custom-color::-webkit-color-swatch-wrapper { padding: 2px; }
#tp-settings .appr-custom-color::-webkit-color-swatch { border: none; border-radius: 5px; }
#tp-settings .appr-custom-hex {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #E2DDD3;
  border-radius: 7px;
  background: #fff;
  color: #1B1A17;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
}
#tp-settings .appr-custom-hex:focus {
  outline: none;
  border-color: #1B1A17;
}
