/* ============================================================
   Tweaks panel — editorial, matches the design system.
   Hidden until the host toolbar toggles edit mode on.
   ============================================================ */
.tw-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  width: 268px; display: none; flex-direction: column;
  background: var(--ivory); color: var(--ink);
  border: 1px solid var(--hair-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--f-sans);
}
.tw-panel.open { display: flex; }

.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--hair);
  cursor: grab; user-select: none; background: var(--paper-soft);
}
.tw-head.grabbing { cursor: grabbing; }
.tw-title { font-family: var(--f-serif); font-weight: 400; font-size: 1.15rem; letter-spacing: -0.01em; }
.tw-close {
  width: 26px; height: 26px; border-radius: 50%; color: var(--ink-soft);
  font-size: 1.15rem; line-height: 1; display: grid; place-items: center; transition: background 0.15s, color 0.15s;
}
.tw-close:hover { background: var(--paper-2); color: var(--ink); }

.tw-body { padding: 0.4rem 1rem 1rem; display: flex; flex-direction: column; }
.tw-row { display: flex; flex-direction: column; gap: 0.55rem; padding: 0.75rem 0; }
.tw-row + .tw-row { border-top: 1px solid var(--hair); }
.tw-label { font-size: 0.64rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-mute); display: inline-flex; align-items: center; gap: 8px; }
.tw-label::before { content: ""; width: 16px; height: 1.5px; background: var(--accent); }

/* Segmented */
.tw-seg { display: inline-flex; padding: 4px; gap: 2px; background: rgba(24,27,32,0.05); border-radius: var(--pill); }
.tw-seg button {
  flex: 1; font-weight: 500; font-size: 0.78rem; color: var(--ink-soft);
  padding: 0.4rem 0.7rem; border-radius: var(--pill); transition: all 0.18s var(--ease); white-space: nowrap;
}
.tw-seg button:hover { color: var(--ink); }
.tw-seg button.on { background: var(--ink); color: var(--ivory); }

/* Swatches */
.tw-swatches { display: flex; gap: 0.6rem; }
.tw-sw { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid var(--hair-2); transition: transform 0.15s; }
.tw-sw:hover { transform: scale(1.1); }
.tw-sw.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--ink); }
.tw-sw[data-a="teal"]   { background: #00716b; }
.tw-sw[data-a="forest"] { background: #1f6b3a; }
.tw-sw[data-a="slate"]  { background: #2b4a63; }
.tw-sw[data-a="plum"]   { background: #7d2f5e; }
.tw-sw[data-a="amber"]  { background: #b06a14; }

.tw-hint { font-size: 0.72rem; color: var(--ink-mute); padding-top: 0.4rem; line-height: 1.45; }
