.published-pine-chart { position: relative; min-width: 0; height: clamp(320px, 55vh, 620px); }
.published-pine-legend, [data-pine-status] { color: var(--muted); font-size: 13px; }
[data-pine-terminal] .apx-body { display: block; }
[data-script-filter] { margin-bottom: 18px; }
.script-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.script-tags a { display: block; padding: 4px 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--cyan); }
.script-rich ul, .script-rich ol { margin: 12px 0 12px 24px; }
.script-rich ul { list-style: disc; }
.script-rich ol { list-style: decimal; }
.script-rich code { color: var(--cyan); }

.script-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.script-card .script-card-actions .button { margin: 0; padding-inline: 12px; }
.script-card-actions .script-details { background: linear-gradient(110deg, #58f0ff, #b18cff); color: #071122; font-weight: 700; }
.script-card-actions .script-details:hover { filter: brightness(1.12); }

.script-rich > h2 { margin-bottom: 20px; }
.script-rich strong, .script-format-preview strong { color: #fff; }
.script-format-preview { margin-top: 8px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.script-format-preview:empty { display: none; }

.pine-dashboard:not([hidden]) { display: flex; flex-direction: column; box-sizing: border-box; width: max-content; max-height: calc(100% - 16px); position: absolute; z-index: 3; top: 8px; left: 8px; max-width: calc(100% - 16px); color: #edf4ff; background: #132137; border: 1px solid #486383; border-radius: 7px; box-shadow: 0 8px 24px #0006; }
.pine-drag { flex: none; display: block; width: 100%; padding: 7px 10px; color: inherit; background: #182b44; border: 0; border-radius: 6px 6px 0 0; font-size: 12px; text-align: left; cursor: move; touch-action: none; }
.pine-dashboard-tables { min-height: 0; overflow: auto; flex: 1 1 auto; }
.pine-dashboard:not(.pine-dashboard-resized) .pine-dashboard-tables { max-height: min(310px, 42vh); }
.pine-dashboard table { width: 100%; min-width: max-content; border-spacing: 2px; font: 11px/1.3 var(--mono); }
.pine-dashboard td { padding: 2px 5px; white-space: pre; }

.script-thumbnail:not([hidden]) {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #1d3049;
  border-radius: 8px;
}
.script-thumbnail-slot:has(img[hidden]) { margin: 0; }

.pine-meter { display: inline-flex; vertical-align: -0.06em; height: 0.76em; }
.pine-meter > span { width: 0.55em; background-color: currentColor; }
.pine-resize { position: absolute; z-index: 1; touch-action: none; }
.pine-resize[data-edge="n"], .pine-resize[data-edge="s"] { left: 7px; right: 7px; height: 7px; cursor: ns-resize; }
.pine-resize[data-edge="w"], .pine-resize[data-edge="e"] { top: 7px; bottom: 7px; width: 7px; cursor: ew-resize; }
.pine-resize[data-edge="n"] { top: -3px; }
.pine-resize[data-edge="s"] { bottom: -3px; }
.pine-resize[data-edge="w"] { left: -3px; }
.pine-resize[data-edge="e"] { right: -3px; }
.pine-resize:is([data-edge="nw"], [data-edge="ne"], [data-edge="sw"], [data-edge="se"]) { width: 11px; height: 11px; }
.pine-resize[data-edge="nw"] { top: -3px; left: -3px; cursor: nwse-resize; }
.pine-resize[data-edge="ne"] { top: -3px; right: -3px; cursor: nesw-resize; }
.pine-resize[data-edge="sw"] { bottom: -3px; left: -3px; cursor: nesw-resize; }
.pine-resize[data-edge="se"] { bottom: -1px; right: -1px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 53%, #7394b8 56% 64%, transparent 67%); }
