/* ─── Tweaks panel UI ───────────────────────────────────────────────── */
.twk-panel{position:fixed;right:24px;bottom:24px;z-index:2147483646;width:340px;
  max-height:calc(100vh - 48px);display:flex;flex-direction:column;
  background:rgba(251,246,238,.96);color:#2B1F26;
  -webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(43,31,38,.12);border-radius:16px;
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset, 0 18px 50px rgba(43,31,38,.20);
  font:13px/1.4 'Inter',system-ui,-apple-system,sans-serif;overflow:hidden}
.twk-hd{display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px 14px 18px;cursor:move;user-select:none;
  border-bottom:1px solid rgba(43,31,38,.08);background:rgba(228,216,192,.25)}
.twk-hd b{font-size:13px;font-weight:700;color:#1A1014;letter-spacing:.01em}
.twk-x, .twk-reset{appearance:none;border:1px solid rgba(43,31,38,.10);
  background:rgba(255,255,255,.6);color:rgba(43,31,38,.7);
  width:26px;height:26px;border-radius:8px;cursor:pointer;font-size:14px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  transition:all .15s ease}
.twk-x:hover{background:rgba(224,48,112,.12);color:#E03070;border-color:rgba(224,48,112,.30)}
.twk-reset:hover{background:rgba(201,152,70,.18);color:#8C6A2C;border-color:rgba(201,152,70,.4)}

.twk-body{padding:8px 16px 18px;display:flex;flex-direction:column;gap:14px;
  overflow-y:auto;overflow-x:hidden;min-height:0;
  scrollbar-width:thin;scrollbar-color:rgba(43,31,38,.18) transparent}
.twk-body::-webkit-scrollbar{width:8px}
.twk-body::-webkit-scrollbar-thumb{background:rgba(43,31,38,.18);border-radius:4px;
  border:2px solid transparent;background-clip:content-box}

.twk-section{display:flex;flex-direction:column;gap:8px;
  padding-top:12px;border-top:1px solid rgba(43,31,38,.06)}
.twk-section:first-child{padding-top:6px;border-top:0}
.twk-sect{font-size:10px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:#8C6A2C;margin-bottom:2px}

.twk-field{display:flex;flex-direction:column;gap:4px}
.twk-field label{font-size:11px;color:rgba(43,31,38,.62);font-weight:500}
.twk-field input,.twk-field textarea{
  font:13px/1.4 'Inter',sans-serif;color:#1A1014;
  background:#fff;border:1px solid rgba(43,31,38,.14);border-radius:8px;
  padding:7px 10px;width:100%;outline:none;resize:vertical;
  transition:border-color .12s ease, box-shadow .12s ease}
.twk-field input:focus,.twk-field textarea:focus{
  border-color:#E03070;box-shadow:0 0 0 3px rgba(224,48,112,.15)}

/* ─── Editing-mode visual hints — outline the editable spots ──────────── */
.twk-editing [data-tweak]{
  position:relative;
  outline:1.5px dashed rgba(224,48,112,.55);
  outline-offset:3px;
  border-radius:4px;
  transition:outline-color .15s ease, background .15s ease;
}
.twk-editing [data-tweak]:hover{
  outline-color:#E03070;
  outline-style:solid;
  background:rgba(224,48,112,.06);
}
.twk-editing [data-tweak]::after{
  content:"✎";
  position:absolute;
  top:-10px; right:-10px;
  background:#E03070; color:#fff;
  width:18px; height:18px; border-radius:50%;
  font-size:10px; line-height:18px; text-align:center;
  font-family:'Inter',sans-serif; font-weight:700;
  box-shadow:0 4px 10px rgba(224,48,112,.35);
  opacity:0; transition:opacity .15s ease;
  pointer-events:none;
}
.twk-editing [data-tweak]:hover::after{opacity:1}
