/* Tweaks panel styles — kept separate so they're easy to swap out */

#ynsw-tweaks {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 320px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(31, 22, 16, 0.18), 0 20px 40px -16px rgba(0,0,0,0.3);
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 12px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
}
#ynsw-tweaks.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#ynsw-tweaks .t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
}
#ynsw-tweaks .t-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
#ynsw-tweaks .t-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(200, 65, 44, 0.18);
}
#ynsw-tweaks .t-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 0 4px;
}

#ynsw-tweaks .t-body { padding: 14px; }
#ynsw-tweaks h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--ink-soft);
}
#ynsw-tweaks section + section { margin-top: 18px; }

/* Palette row */
.t-palette-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.t-swatch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: 1.5px solid var(--hairline);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 11px;
  color: var(--ink);
  transition: border-color 120ms;
}
.t-swatch:hover { border-color: var(--ink); }
.t-swatch.is-active { border-color: var(--accent); border-width: 1.5px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.t-sw {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  width: 100%;
  height: 28px;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}
.t-sw > span { border-radius: 2px; display: block; }
.t-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Type list */
.t-type-list { display: flex; flex-direction: column; gap: 6px; }
.t-type {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: transparent;
  border: 1.5px solid var(--hairline);
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  transition: border-color 120ms;
}
.t-type:hover { border-color: var(--ink); }
.t-type.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.t-type-disp {
  font-size: 28px;
  line-height: 1;
  width: 32px;
  flex-shrink: 0;
  text-align: center;
}
.t-type-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-type-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.t-type-body {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-foot {
  margin: 16px 0 0;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  font-style: italic;
}
