/* Tweaks panel chrome */
#tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  font-family: var(--font-sans);
  color: var(--ink);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
#tweaks-panel.open { display: flex; }
.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.tw-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-2);
}
#tw-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
}
#tw-close:hover { background: var(--ink); color: var(--bg); }
.tw-body { padding: 8px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.tw-section { display: flex; flex-direction: column; gap: 8px; }
.tw-section label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.tw-radio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 4px;
  background: var(--bg-3);
  border-radius: 10px;
  padding: 4px;
}
.tw-radio button {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.tw-radio button:hover { color: var(--ink); }
.tw-radio button.on {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tw-color {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  background: var(--bg-3);
  border-radius: 10px;
}
#tw-brand {
  width: 36px; height: 36px;
  border: none; border-radius: 8px; background: none; cursor: pointer;
  padding: 0;
}
.tw-color-val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
