.tcp-wrap {
  /* WordPress caps unlabeled blocks to the theme's "content" width (760px) even with
     a wider max-width here — override up to the theme's "wide" width instead. */
  width: 100% !important; max-width: var(--wp--style--global--wide-size, 1380px) !important;
  margin-left: auto !important; margin-right: auto !important;
  font-family: inherit; color: inherit;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: center;
}
.tcp-wrap * { box-sizing: border-box; }
.tcp-left { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: 0 0 260px; }
.tcp-wheel-wrap { position: relative; width: 260px; height: 260px; touch-action: none; }
.tcp-wrap canvas.tcp-wheel { border-radius: 50%; cursor: crosshair; display: block; }
.tcp-marker-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.tcp-marker-line {
  stroke: rgba(255,255,255,.85); stroke-width: 2px; stroke-linecap: round;
  filter: drop-shadow(0 0 1.5px rgba(0,0,0,.7));
}
.tcp-marker {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5);
  transform: translate(-50%, -50%); cursor: grab; z-index: 1;
}
.tcp-marker.tcp-base {
  width: 28px; height: 28px; border-width: 3px;
  box-shadow: 0 0 0 3px #4da3ff, 0 0 0 4px rgba(0,0,0,.5);
  z-index: 2;
}
.tcp-harmonies { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tcp-harmonies button {
  background: rgba(0,0,0,0.06); color: inherit; border: 1px solid rgba(0,0,0,.15);
  border-radius: 20px; padding: 5px 12px; font-size: 0.75rem; cursor: pointer; width: auto;
}
.tcp-harmonies button.tcp-active { background: #4da3ff; color: #fff; border-color: #4da3ff; }
.tcp-right { flex: 1 1 380px; min-width: 300px; display: flex; flex-direction: column; gap: 10px; }
.tcp-format-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.tcp-wrap select.tcp-format {
  border: 1px solid rgba(0,0,0,.15); border-radius: 6px; padding: 5px 8px;
  font-size: 0.8rem; background: #fff; color: #111; width: auto;
}
.tcp-wrap input[type=text].tcp-hexval[readonly] { opacity: 1; }

/* Tall vertical palette bars (Coolors-style) */
.tcp-swatch-list { display: flex; gap: 0; border-radius: 12px; overflow: hidden; height: 260px; }
.tcp-swatch-bar { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.tcp-swatch-bar .tcp-remove-btn {
  position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.25); border: none;
  border-radius: 4px; width: 22px; height: 22px; padding: 0; font-size: 0.7rem; line-height: 1;
}
.tcp-bar-bottom { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; flex-wrap: wrap; }
.tcp-bar-bottom input[type=text].tcp-hexval {
  background: transparent; border: none; font-family: monospace; font-size: 0.78rem; font-weight: 600;
  padding: 0; width: auto; max-width: 100%; text-align: center; flex: 0 1 auto;
}
.tcp-bar-bottom .tcp-copy-btn {
  background: rgba(255,255,255,0.18); border: none; border-radius: 5px; padding: 3px 7px;
  font-size: 0.8rem; cursor: pointer; width: auto; flex-shrink: 0;
}
.tcp-add-btn { background: none; border: 1px dashed rgba(0,0,0,.3); border-radius: 8px; padding: 8px; font-size: 0.8rem; cursor: pointer; width: 100%; }
.tcp-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tcp-strip { display: flex; height: 40px; border-radius: 8px; overflow: hidden; margin-top: 4px; }
.tcp-strip > div { flex: 1; }
.tcp-eyedropper-row button {
  background: #4da3ff; color: #fff; border: none; border-radius: 8px;
  padding: 9px 14px; font-size: 0.85rem; cursor: pointer; width: 100%;
}
.tcp-wrap button:disabled { background: #999; cursor: not-allowed; }
.tcp-hint { font-size: 0.72rem; opacity: 0.65; text-align: center; margin: 0; }
.tcp-msg { font-size: 0.78rem; color: #d05a9a; min-height: 1em; margin: 0; text-align: center; }

.tcp-cb-section { margin-top: 12px; }
.tcp-cb-title { font-size: 0.85rem; margin: 0 0 8px; opacity: 0.85; }
.tcp-cb-grid { display: grid; gap: 4px; align-items: stretch; }
.tcp-cb-label {
  font-size: 0.72rem; opacity: 0.75; padding-left: 8px; white-space: nowrap;
  display: flex; align-items: center;
}
.tcp-cb-cell {
  min-height: 48px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 0.6rem; font-weight: 600; position: relative; text-align: center; padding: 4px;
  line-height: 1.15; overflow-wrap: break-word; word-break: break-word;
}
.tcp-cb-conflict { outline: 2px solid #ffb300; outline-offset: -2px; cursor: help; }
.tcp-cb-warn { font-size: 0.9rem; }
