/* GCP-30 Relais-Manager – Toolkit-/LeoPC-Optik */
.gcp30-rm-root {
	--gcp-on: #1fa33a;
	--gcp-off: #8d939c;
	--gcp-win: #eceef1;
	--gcp-panel: #f8f9fa;
	--gcp-border: #9aa3ad;
	--gcp-title1: #2d4f7c;
	--gcp-title2: #1d3a60;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 14px;
	color: #1c2430;
	margin: 1.5em 0;
}
.gcp30-win { background: var(--gcp-win); border: 1px solid var(--gcp-border); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); overflow: hidden; }
.gcp30-titlebar { background: linear-gradient(var(--gcp-title1), var(--gcp-title2)); color: #fff; padding: 6px 10px; font-weight: 600; font-size: 13px; letter-spacing: .2px; }
.gcp30-ico { margin-right: 8px; opacity: .85; }
.gcp30-body { padding: 10px; display: grid; gap: 10px; }
.gcp30-relaybox { background: var(--gcp-panel); border: 1px solid #c3c9d0; border-radius: 3px; padding: 8px 10px 4px; }
.gcp30-rhead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.gcp30-rbadge { background: #2d4f7c; color: #fff; border-radius: 3px; padding: 2px 8px; font-weight: 600; font-size: 12px; }
.gcp30-rlabel { font-weight: 600; }
.gcp30-expr { margin-left: auto; background: #fff; border: 1px inset #b8bfc7; padding: 2px 8px; font-family: Consolas, "Courier New", monospace; font-size: 13px; }
.gcp30-text { font-size: 13px; line-height: 1.45; padding: 4px 6px; background: #fff; border-left: 3px solid #2d4f7c; }
.gcp30-k { font-weight: 600; color: #2d4f7c; }
.gcp30-sentence { font-size: 12px; color: #5a6472; padding: 3px 6px 0; font-style: italic; }
.gcp30-plan { margin-top: 6px; overflow-x: auto; }
.gcp30-svg { display: block; min-width: 620px; font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
.gcp30-error { color: #a4161a; background: #fde8e8; border: 1px solid #f3b4b4; padding: 6px 8px; border-radius: 3px; font-size: 13px; margin: 4px 0 6px; }
.gcp30-warn { color: #7a5200; background: #fff6dd; border: 1px solid #f0d58a; padding: 4px 8px; border-radius: 3px; font-size: 12px; margin: 4px 0 6px; }

/* SVG-Elemente */
.gcp30-in { cursor: pointer; outline: none; }
.gcp30-nosim .gcp30-in { cursor: default; }
.gcp30-rowbg { fill: transparent; }
.gcp30-in:hover .gcp30-rowbg, .gcp30-in:focus .gcp30-rowbg { fill: #e3e9f1; }
.gcp30-nosim .gcp30-in:hover .gcp30-rowbg { fill: transparent; }
.gcp30-led { fill: #3b3f45; stroke: #1c1f23; stroke-width: 1.5; transition: fill .12s; }
.gcp30-led.is-on { fill: #3ee05a; stroke: #138a2a; filter: drop-shadow(0 0 4px #3ee05a); }
.gcp30-num { fill: #fff; stroke: #8d96a1; }
.gcp30-numtxt { font-family: Consolas, "Courier New", monospace; font-size: 13px; font-weight: 700; fill: #1d3a60; }
.gcp30-txt { font-size: 13px; fill: #1c2430; }
.gcp30-wire { stroke-width: 2.5; fill: none; transition: stroke .12s; }
.gcp30-not { fill: #fff3d6; stroke: #c28a00; stroke-width: 1.5; }
.gcp30-nottxt { font-size: 11px; font-weight: 700; fill: #8a5d00; }
.gcp30-gate rect { fill: #fff; stroke: #4b5563; stroke-width: 1.8; }
.gcp30-gate.is-on rect { stroke: var(--gcp-on); fill: #eefaf0; }
.gcp30-gsym { font-size: 17px; font-weight: 700; fill: #1c2430; }
.gcp30-glbl { font-size: 9px; fill: #5a6472; letter-spacing: .5px; }
.gcp30-relay { fill: #4a2b2b; stroke: #1c1f23; stroke-width: 1.5; }
.gcp30-relay.is-on { fill: #ffb000; stroke: #a36b00; filter: drop-shadow(0 0 6px #ffb000); }
.gcp30-rtxt { font-size: 12px; fill: #1c2430; }
.gcp30-rnum { font-weight: 700; }

/* Toolbar */
.gcp30-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--gcp-border); background: #e2e5e9; }
.gcp30-toolbar button { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid #8d96a1; border-radius: 3px; background: linear-gradient(#fff, #e4e7eb); cursor: pointer; color: #1c2430; }
.gcp30-toolbar button:hover { background: linear-gradient(#fff, #d6dbe1); }
.gcp30-hint { font-size: 12px; color: #5a6472; }
.gcp30-sp { flex: 1; }

/* Editor */
.gcp30-editor { border: 1px solid #c3c9d0; background: #fff; padding: 10px; border-radius: 4px; font-family: -apple-system, "Segoe UI", sans-serif; }
.gcp30-editor h4 { margin: 0 0 8px; font-size: 13px; }
.gcp30-erow { display: grid; grid-template-columns: 70px 1fr 1.4fr auto; gap: 8px; align-items: end; padding: 6px; border-radius: 3px; }
.gcp30-erow.is-active { background: #eef3fa; }
.gcp30-erow .components-base-control { margin-bottom: 0 !important; }
.gcp30-erow input.gcp30-bad { border-color: #cc1818 !important; }
.gcp30-ops { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.gcp30-fnlist { max-height: 220px; overflow: auto; border: 1px solid #ddd; margin-top: 6px; }
.gcp30-fnlist button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #f0f0f0; background: #fff; padding: 4px 8px; cursor: pointer; font-size: 12px; }
.gcp30-fnlist button:hover { background: #eef3fa; }
.gcp30-fnlist b { display: inline-block; width: 34px; color: #1d3a60; font-family: Consolas, monospace; }

/* Editierbare Programmierung (Frontend) */
.gcp30-edit { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5a6472; }
.gcp30-exprin { width: 240px; max-width: 60vw; background: #fff; border: 1px solid #8d96a1; border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); padding: 4px 8px; font-family: Consolas, "Courier New", monospace; font-size: 14px; color: #1c2430; }
.gcp30-exprin:focus { outline: 2px solid #2d4f7c; outline-offset: 0; border-color: #2d4f7c; }
.gcp30-exprin.is-bad { border-color: #cc1818; background: #fff5f5; }
.gcp30-reset { border: 1px solid #8d96a1; border-radius: 3px; background: linear-gradient(#fff, #e4e7eb); cursor: pointer; padding: 2px 8px; font-size: 14px; line-height: 1.3; }
.gcp30-reset[hidden] { display: none; }
.gcp30-hint b { font-family: Consolas, monospace; color: #1d3a60; }
