@import "tailwindcss"; @source "../../../app/**/*.{vue,ts}"; @theme { --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, monospace; } /* Dark workbench palette. Green = a wire carrying 1, grey = 0. */ :root { --bg: #0e1116; --panel: #13181f; --panel-2: #1a212b; --border: #252e3a; --text: #dbe2ea; --muted: #8592a3; --accent: #4cc2ff; --on: #3ddc84; --on-dim: rgb(61 220 132 / 0.22); --off: #3b4554; --chip: #18202a; --chip-stroke: #5a6779; --danger: #ff6b6b; --lamp: #ffd34d; color-scheme: dark; } html, body, #__nuxt { height: 100%; } body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 14px; overflow: hidden; -webkit-font-smoothing: antialiased; } kbd { font-family: var(--font-mono); font-size: 10px; line-height: 1; padding: 2px 4px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--panel-2); } /* ── Layout ─────────────────────────────────────────────────────── */ .app { display: grid; grid-template-rows: 48px 1fr; height: 100dvh; } .workspace { --left: 236px; --right: 300px; display: grid; grid-template-columns: var(--left) 1fr var(--right); min-height: 0; } .workspace.no-left { --left: 36px !important; } .workspace.no-right { --right: 36px !important; } .stage { position: relative; min-width: 0; overflow: hidden; } .palette, .inspector { background: var(--panel); min-height: 0; display: flex; flex-direction: column; } .palette { border-right: 1px solid var(--border); } .inspector { border-left: 1px solid var(--border); } .scroll { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; } @media (max-width: 1100px) { .workspace { --left: 210px; --right: 260px; } } @media (max-width: 820px) { .workspace { grid-template-columns: 1fr; grid-template-rows: 1fr 40%; } .palette { display: none; } .inspector { border-left: 0; border-top: 1px solid var(--border); } } /* ── Toolbar ────────────────────────────────────────────────────── */ .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--border); min-width: 0; } .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.01em; color: var(--on); padding-right: 6px; } .brand span { color: var(--text); } .tb-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 6px; color: var(--text); font-size: 13px; max-width: 180px; } .tb-btn:hover:not(:disabled) { background: var(--panel-2); } .tb-btn.active { color: var(--accent); background: rgb(76 194 255 / 0.12); } .tb-btn:disabled, .tb-select:disabled { opacity: 0.35; cursor: not-allowed; } .tb-select, .circuit-select select { height: 32px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font-size: 13px; padding: 0 6px; } .circuit-select { display: flex; align-items: center; gap: 6px; min-width: 0; } .circuit-select select { max-width: 220px; font-weight: 600; } .cycles { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 0 4px; } .status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 999px; background: var(--panel-2); } .status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on); } .status.busy .dot { background: var(--lamp); } .status.oscillating { color: var(--danger); } .status.oscillating .dot { background: var(--danger); } .seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; } .seg button { font-size: 12px; font-weight: 600; padding: 0 8px; height: 30px; color: var(--muted); } .seg button.active { background: rgb(76 194 255 / 0.15); color: var(--accent); } .menu-backdrop { position: fixed; inset: 0; z-index: 40; } .menu { position: absolute; right: 0; top: 38px; z-index: 41; width: 260px; padding: 6px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 12px 30px rgb(0 0 0 / 0.45); } .menu > button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 5px; font-size: 13px; text-align: left; } .menu > button:hover { background: var(--panel); } .menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; } /* ── Palette ────────────────────────────────────────────────────── */ .tabs { display: flex; border-bottom: 1px solid var(--border); } .tabs button { flex: 1; height: 38px; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; } .tabs button.active { color: var(--text); border-bottom-color: var(--accent); } .tabs .count { font-family: var(--font-mono); font-size: 10px; margin-left: 4px; color: var(--muted); } .palette h3, .inspector h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); } .palette h3 { padding: 14px 12px 6px; } .items { padding: 0 6px; } .item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border-radius: 6px; font-size: 13px; text-align: left; cursor: grab; } .item:hover { background: var(--panel-2); } .item.active { background: rgb(76 194 255 / 0.14); color: var(--accent); } .item.current { color: var(--accent); } .item.blocked:not(.current) { opacity: 0.4; cursor: not-allowed; } .editing { font-size: 10px; color: var(--accent); } /* Transistor count next to a component in the palette. */ .tcount { font-family: var(--font-mono); font-size: 10px; color: var(--muted); opacity: 0.8; } .comp-row:hover .tcount { visibility: hidden; } .challenges .best, .challenge .best { color: var(--on); } .nand-badge { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--on); border-radius: 3px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--on); } .comp-row { display: flex; align-items: center; } .comp-row .open { opacity: 0; padding: 5px; border-radius: 5px; color: var(--muted); } .comp-row:hover .open { opacity: 1; } .comp-row .open:hover { background: var(--panel-2); color: var(--text); } .search { display: flex; align-items: center; gap: 6px; margin: 14px 10px 0; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); } .search input { background: transparent; height: 30px; outline: none; font-size: 13px; width: 100%; } .intro { padding: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; } .challenges { padding: 0 8px 16px; display: grid; gap: 6px; } .challenges li { padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); } .challenges li.solved { border-color: rgb(61 220 132 / 0.35); } .challenges p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; } .challenges .pins, .challenge .pins { font-family: var(--font-mono); font-size: 11px; } /* ── Inspector ──────────────────────────────────────────────────── */ .inspector section { padding: 14px 14px; border-bottom: 1px solid var(--border); } .inspector h3 { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; } .field { display: block; margin-bottom: 10px; } .field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; } .field input, .field textarea, .field select { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; color: var(--text); outline: none; } .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); } .field textarea { resize: vertical; line-height: 1.4; } .hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; } .hint a { color: var(--accent); } .stats { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; margin: 2px 0 12px; } .stats dt { color: var(--muted); } .stats dd { font-family: var(--font-mono); text-align: right; } .btn, .btn-sm { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); } .btn { height: 32px; padding: 0 12px; font-size: 13px; } .btn-sm { height: 24px; padding: 0 8px; font-size: 12px; } .btn:hover, .btn-sm:hover { border-color: var(--chip-stroke); } .btn-primary { background: var(--accent); border-color: var(--accent); color: #06121a; } .btn-primary:hover { filter: brightness(1.1); } .btn-ghost { background: transparent; color: var(--muted); } .btn-danger { background: var(--danger); border-color: var(--danger); color: #1a0505; } .result { display: flex; gap: 6px; margin-top: 10px; font-size: 12px; line-height: 1.45; } .result.pass { color: var(--on); } .result.fail { color: var(--danger); } .challenge { background: rgb(76 194 255 / 0.06); } .challenge.solved { background: rgb(61 220 132 / 0.07); } .challenge p { font-size: 13px; line-height: 1.5; margin-bottom: 8px; } .challenge .pins { color: var(--muted); } .section-toggle { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); } .truth { margin-top: 10px; max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: 6px; } .truth table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; text-align: center; } .truth th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 600; padding: 4px 6px; } .truth td { padding: 2px 6px; color: var(--muted); } .truth td.one { color: var(--on); font-weight: 600; } .truth .sep { width: 1px; padding: 0; background: var(--border); } .truth th.out { color: var(--text); } .truth tr.unstable td.out { color: var(--danger); } .actions { display: flex; gap: 8px; } /* ── Canvas ─────────────────────────────────────────────────────── */ .canvas { position: absolute; inset: 0; touch-action: none; user-select: none; background: var(--bg); } .grid-dot { fill: #232c39; } .grid-major { fill: #303b4c; } .wire { --w-on: var(--on); --w-off: var(--off); } .wire.c-red { --w-on: #ff5c5c; --w-off: #6b3337; } .wire.c-orange { --w-on: #ff9f43; --w-off: #6b4a2b; } .wire.c-yellow { --w-on: #ffd93d; --w-off: #625a2e; } .wire.c-blue { --w-on: #4dabff; --w-off: #2b4a6b; } .wire.c-purple { --w-on: #b388ff; --w-off: #463768; } .wire.c-pink { --w-on: #ff7ac6; --w-off: #673657; } .wire-line { fill: none; stroke: var(--w-off); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .wire.on .wire-line { stroke: var(--w-on); } .wire.hover .wire-line { stroke-width: 3; } /* A cable: several wires in one thick sleeve. */ .wire.cable .wire-line { stroke-width: 6; } .wire.cable.hover .wire-line { stroke-width: 7; } .wire.cable .wire-halo { stroke-width: 13; } .cable-mark { pointer-events: none; } .cable-mark path { stroke: var(--text); stroke-width: 1.5; } .cable-mark text { fill: var(--text); font-family: var(--font-mono); font-size: 9px; font-weight: 600; } /* Bundle and split: the ends of a cable. */ .node .body.cable-end { fill: #2a3240; stroke: #7d8aa0; } /* A free cable end is only its wires running into the cable; this is where to grab it. */ .node .cable-hit { fill: transparent; stroke: transparent; } .node:hover .cable-hit, .node.ghost .cable-hit { stroke: rgb(125 138 160 / 0.5); stroke-dasharray: 3 3; } .harness { --w-on: var(--on); --w-off: var(--off); fill: none; stroke: var(--w-off); stroke-width: 1.6; stroke-linejoin: round; pointer-events: none; } .harness.on { stroke: var(--w-on); } .harness.c-red { --w-on: #ff5c5c; --w-off: #6b3337; } .harness.c-orange { --w-on: #ff9f43; --w-off: #6b4a2b; } .harness.c-yellow { --w-on: #ffd93d; --w-off: #625a2e; } .harness.c-blue { --w-on: #4dabff; --w-off: #2b4a6b; } .harness.c-purple { --w-on: #b388ff; --w-off: #463768; } .harness.c-pink { --w-on: #ff7ac6; --w-off: #673657; } .node .body.cable-end.plugged { fill: #253447; stroke: #6fa3cf; } .node .latch rect { fill: #6fa3cf; stroke: #1b2633; stroke-width: 1; } .node .latch .contact { stroke: #9fd0f5; stroke-width: 2.5; stroke-linecap: round; } .node .cable-name { font-size: 9px; fill: var(--muted); } /* Pixel and pixel screens. */ .node .pixel { fill: #141a22; stroke: #303a48; stroke-width: 1; } .node .pixel.on { fill: var(--px, #e8f0f8); stroke: var(--px, #e8f0f8); } .screen-bg { fill: #07090c; stroke: #303a48; stroke-width: 1; } .screen-px { fill: #11161d; } .screen-px.on { fill: var(--px, #e8f0f8); } .px-yellow { --px: #ffd34d; } .px-red { --px: #ff5a4f; } .px-green { --px: #3ddc84; } .px-blue { --px: #4dabff; } .px-white { --px: #e8f0f8; } .wire-halo { fill: none; stroke: var(--accent); stroke-opacity: 0.35; stroke-width: 8; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; } .corner-handle { fill: var(--panel); stroke: var(--accent); stroke-width: 1.5; cursor: move; } .corner-handle:hover { fill: var(--accent); } .wire-flow { fill: none; stroke: #d2ffe6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1.5 10.5; animation: flow 0.45s linear infinite; pointer-events: none; opacity: 0.85; } @keyframes flow { to { stroke-dashoffset: -12; } } .wire-hit { fill: none; stroke: transparent; stroke-width: 10; cursor: pointer; } .wire-hit { cursor: ns-resize; } .wire-hit.vertical { cursor: ew-resize; } .junction { fill: var(--w-off); } .wire.on .junction { fill: var(--w-on); } .temp-wire { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; pointer-events: none; } .temp-wire.snapped { stroke-dasharray: none; } .box-select { fill: rgb(76 194 255 / 0.08); stroke: var(--accent); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; } .node { cursor: move; } .node.ghost { opacity: 0.55; pointer-events: none; } .node .body { fill: var(--chip); stroke: var(--chip-stroke); stroke-width: 1.5; } .node .body.prim { fill: #172231; stroke: #7d93ad; } .node .chip { fill: #1a2330; } .node .chip.missing { stroke: var(--danger); stroke-dasharray: 4 3; } .node .stub { fill: none; stroke: var(--chip-stroke); stroke-width: 2; } .node .stroke-only { fill: none; stroke: var(--chip-stroke); stroke-width: 1.5; } .gate-label { fill: var(--text); font-family: var(--font-mono); font-size: 12px; font-weight: 600; pointer-events: none; } .chip-name { fill: var(--text); font-size: 11px; font-weight: 600; pointer-events: none; } .pin-label { fill: var(--muted); font-family: var(--font-mono); font-size: 9px; pointer-events: none; } .pin-label.tiny { font-size: 8px; } .io-label { fill: var(--text); font-family: var(--font-mono); font-size: 11px; font-weight: 600; } .switch { fill: #2a3240; stroke: #4c586b; stroke-width: 1.5; cursor: pointer; } .switch.on { fill: var(--on-dim); stroke: var(--on); } .knob { fill: #e6edf5; pointer-events: none; } .terminal { fill: #1f2632; stroke: #5a6578; stroke-width: 1.5; } .terminal.on { fill: var(--on-dim); stroke: var(--on); } .lamp { fill: #1f2632; stroke: #5a6578; stroke-width: 1.5; } .lamp.on { fill: var(--lamp); stroke: #ffe9a3; filter: drop-shadow(0 0 6px rgb(255 211 77 / 0.75)); } .lamp-cross { stroke: #5a6578; stroke-width: 1.5; } .lamp-cross.on { stroke: #8a6400; } .const { font-family: var(--font-mono); font-size: 12px; font-weight: 700; fill: var(--on); } .ground { fill: none; stroke: var(--chip-stroke); stroke-width: 2; } .wave { fill: none; stroke: var(--muted); stroke-width: 1.5; } .wave.on { stroke: var(--on); } .button { fill: #3a4454; stroke: #6b778a; stroke-width: 1.5; cursor: pointer; } .button.on { fill: var(--danger); stroke: #ffb3b3; } /* Panel rows in a colour of their own */ .switch.on.l-yellow { fill: rgb(255 211 77 / 0.25); stroke: #ffd34d; } .switch.on.l-red { fill: rgb(255 92 92 / 0.25); stroke: #ff5c5c; } .switch.on.l-blue { fill: rgb(77 171 255 / 0.25); stroke: #4dabff; } .switch.on.l-white { fill: rgb(244 246 250 / 0.22); stroke: #f4f6fa; } .button.on.l-yellow { fill: #ffd34d; stroke: #fff0c2; } .button.on.l-green { fill: #3ddc84; stroke: #b5f5d0; } .button.on.l-blue { fill: #4dabff; stroke: #bfe0ff; } .button.on.l-white { fill: #f4f6fa; stroke: #ffffff; } .display { fill: #0a0d11; } .seg { stroke: #1e2731; stroke-width: 3.4; stroke-linecap: round; } .seg.on { stroke: #ff5a4f; filter: drop-shadow(0 0 3px rgb(255 90 79 / 0.8)); } .note { fill: var(--muted); font-size: 12px; } .note-bg { fill: transparent; } .sel-outline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; pointer-events: none; } .pin { fill: #6b778a; pointer-events: none; } .pin.on { fill: var(--on); } .pin-hit { fill: transparent; cursor: crosshair; } .pin-hit:hover { fill: rgb(76 194 255 / 0.3); } /* Where a wire being drawn can go. */ .pin-target { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0.75; pointer-events: none; } .pin-target.taken { stroke: var(--muted); stroke-dasharray: 2 2; opacity: 0.45; } .pin-snap { fill: rgb(76 194 255 / 0.25); stroke: var(--accent); stroke-width: 2; pointer-events: none; } .queue-badge { pointer-events: none; } .queue-badge rect { fill: var(--panel-2); stroke: var(--border); } .queue-badge text { fill: var(--muted); font-family: var(--font-mono); font-size: 9px; font-weight: 600; } .queue-badge.current rect { fill: var(--accent); stroke: var(--accent); } .queue-badge.current text { fill: var(--bg); } /* Input panel */ .node .body.panel { fill: #161d27; } .node .body.panel.docked { stroke: #4f7fa3; } .panel-row { cursor: pointer; } .panel-row .row-hit { fill: transparent; } .panel-row:hover .row-hit { fill: rgb(255 255 255 / 0.04); } .panel-row .pin-label.named { fill: var(--text); } .zoom-controls { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); } .zoom-controls button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; color: var(--text); } .zoom-controls button:hover { background: var(--panel-2); } .zoom-controls span { min-width: 40px; text-align: center; } .empty-hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; color: var(--muted); pointer-events: none; } /* ── Overlays ───────────────────────────────────────────────────── */ .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 8px 14px; border-radius: 8px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--border); box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); } .toast.error { border-color: var(--danger); color: #ffc9c9; } .placing-hint { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); z-index: 30; padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); pointer-events: none; } .fade-enter-active, .fade-leave-active { transition: opacity 0.2s; } .fade-enter-from, .fade-leave-to { opacity: 0; } .modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(5 8 12 / 0.7); } .modal { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); } .modal h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; } .modal h3 { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); } .steps { margin-top: 14px; padding-left: 20px; list-style: decimal; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: #c3ccd6; } .steps strong { color: var(--text); } .shortcuts { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 3px 16px; font-size: 12.5px; margin-bottom: 14px; } .shortcuts dt { font-family: var(--font-mono); font-size: 12px; color: var(--accent); } .shortcuts dd { color: #c3ccd6; } .face-label { fill: var(--muted); font-family: var(--font-mono); font-size: 8px; pointer-events: none; } .swatches { display: flex; gap: 6px; } .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; background: var(--w-on); outline: 1px solid var(--border); } .swatch.none { background: var(--on); } .swatch.c-red { --w-on: #ff5c5c; } .swatch.c-orange { --w-on: #ff9f43; } .swatch.c-yellow { --w-on: #ffd93d; } .swatch.c-blue { --w-on: #4dabff; } .swatch.c-purple { --w-on: #b388ff; } .swatch.c-pink { --w-on: #ff7ac6; } .swatch.active { border-color: var(--panel); outline: 2px solid var(--text); } .tips { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 2px 0 12px; display: grid; gap: 3px; } .tips strong { color: var(--text); font-weight: 600; } .check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text); margin: 2px 0 12px; line-height: 1.4; } .check input { margin-top: 2px; accent-color: var(--accent); } .btn:disabled { opacity: 0.4; cursor: not-allowed; } .project-btn { max-width: 220px; font-weight: 600; } .share-btn { border: 1px solid var(--border); } .share-btn.saved, .share-btn.dirty, .share-btn.saving { color: var(--on); } .share-btn.error { color: var(--danger); } .project-list { margin-top: 14px; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; } .project-list li { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; border: 1px solid transparent; } .project-list li:hover { background: var(--panel-2); } .project-list li.current { border-color: var(--border); background: var(--panel-2); } .project-list .pick { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; padding: 4px 6px; } .project-list .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .project-list .meta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); } .project-list .badge { font-size: 10px; font-weight: 600; color: var(--accent); margin-left: 6px; } .project-list .rename { flex: 1; background: var(--bg); border: 1px solid var(--accent); border-radius: 6px; padding: 6px 8px; outline: none; } .icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); } .icon-btn:hover { background: var(--panel); color: var(--text); } .link-row { display: flex; gap: 8px; } .link-row input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); font-family: var(--font-mono); font-size: 13px; color: var(--text); outline: none; } .modal.share .result { align-items: center; } /* Lamp and display colours */ .lamp.on.l-red { fill: #ff5c5c; stroke: #ffc2c2; filter: drop-shadow(0 0 6px rgb(255 92 92 / 0.75)); } .lamp.on.l-green { fill: #3ddc84; stroke: #b5f5d0; filter: drop-shadow(0 0 6px rgb(61 220 132 / 0.75)); } .lamp.on.l-blue { fill: #4dabff; stroke: #bfe0ff; filter: drop-shadow(0 0 6px rgb(77 171 255 / 0.75)); } .lamp.on.l-white { fill: #f4f6fa; stroke: #ffffff; filter: drop-shadow(0 0 6px rgb(244 246 250 / 0.7)); } .l-yellow .seg.on { stroke: #ffd34d; filter: drop-shadow(0 0 3px rgb(255 211 77 / 0.8)); } .l-green .seg.on { stroke: #3ddc84; filter: drop-shadow(0 0 3px rgb(61 220 132 / 0.8)); } .l-blue .seg.on { stroke: #4dabff; filter: drop-shadow(0 0 3px rgb(77 171 255 / 0.8)); } .l-white .seg.on { stroke: #f4f6fa; filter: drop-shadow(0 0 3px rgb(244 246 250 / 0.7)); } .lamp-swatch.default, .lamp-swatch.l-yellow { background: #ffd34d; } .lamp-swatch.default.hex, .lamp-swatch.l-red { background: #ff5c5c; } .lamp-swatch.l-green { background: #3ddc84; } .lamp-swatch.l-blue { background: #4dabff; } .lamp-swatch.l-white { background: #f4f6fa; } .instance-label { fill: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 600; pointer-events: none; } .key-badge { fill: var(--muted); font-family: var(--font-mono); font-size: 8px; pointer-events: none; } .junction { cursor: pointer; } .key-input { cursor: pointer; caret-color: transparent; } .field.mb-0 { margin-bottom: 0; } .crossings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; } .crossing { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 3px; border: 1px solid var(--border); border-radius: 6px; font-size: 10px; color: var(--muted); } .crossing.active { border-color: var(--accent); color: var(--accent); background: rgb(76 194 255 / 0.08); } .ci-v, .ci-h { fill: none; stroke-width: 2; stroke-linejoin: round; } .ci-v { stroke: var(--muted); } .ci-h { stroke: var(--on); } .account-btn { position: relative; } .avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgb(76 194 255 / 0.18); color: var(--accent); font-size: 11px; font-weight: 700; } .sync-dot { position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--panel); background: var(--muted); } .account-btn.synced .sync-dot { background: var(--on); } .account-btn.syncing .sync-dot { background: var(--lamp); } .account-btn.error .sync-dot, .account-btn.offline .sync-dot { background: var(--danger); } .modal .hint a { color: var(--accent); } /* ── Truth table, full screen ───────────────────────────────────── */ .modal.table-modal { display: flex; flex-direction: column; width: min(1100px, 100%); height: calc(100dvh - 32px); overflow: hidden; } .truth.large { flex: 1; max-height: none; min-height: 0; } .truth.large table { font-size: 14px; } .truth.large th, .truth.large td { padding: 5px 10px; } .truth tr.current td { background: rgb(76 194 255 / 0.12); } /* ── Panel rows in the inspector ────────────────────────────────── */ .panel-rows { display: grid; gap: 4px; margin-bottom: 6px; } .panel-rows li { display: flex; align-items: center; gap: 4px; } .panel-rows input, .panel-rows select { min-width: 0; flex: 1; } .panel-rows input.hz { flex: 0 0 56px; } .panel-rows li { flex-wrap: wrap; } .panel-rows li.open { padding-bottom: 4px; border-bottom: 1px solid var(--border); } .panel-rows .icon-btn.active { color: var(--text); } .panel-rows .row-more { display: flex; flex: 1 0 100%; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-left: 26px; font-size: 11px; color: var(--muted); } .panel-rows .row-more label { display: flex; align-items: center; gap: 4px; } .panel-rows .row-more input { flex: 0 0 40px; width: 40px; padding: 2px 4px; text-align: center; } .swatches.mini { gap: 4px; } .swatches.mini .swatch { width: 16px; height: 16px; } .lamp-swatch.default-on { background: var(--on); } .lamp-swatch.default-on.button { background: var(--danger); } .challenge .score, .inspector .score { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); } .challenge .score strong, .inspector .score strong { color: var(--on); } /* ── Campaign and puzzles (palette) ─────────────────────────────── */ .campaign, .weekly { margin: 12px 12px 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); font-size: 12px; } .campaign p, .weekly p { margin-top: 6px; color: var(--muted); line-height: 1.45; } .weekly { border-color: rgb(76 194 255 / 0.35); } .campaign .bar { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--bg); overflow: hidden; } .campaign .bar span { display: block; height: 100%; background: var(--on); border-radius: 3px; transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); } .challenges li.locked { opacity: 0.55; } .challenges .needs { color: var(--lamp); } .btn-sm:disabled { opacity: 0.45; cursor: not-allowed; } /* Unlocks after a solve, and the puzzle's target. */ .challenge .unlock { display: flex; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 6px; font-size: 12px; color: var(--lamp); background: rgb(255 211 77 / 0.08); border: 1px solid rgb(255 211 77 / 0.3); animation: unlock-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); } .challenge .unlock p + p { margin-top: 2px; } @keyframes unlock-in { from { opacity: 0; transform: translateY(4px) scale(0.98); } } .target-table .truth { max-height: 220px; } /* A name borrowed from the pin a part is wired to, while it has none of its own. */ .io-label.ghosted, .face-label.ghosted { fill: var(--muted); font-weight: 500; font-style: italic; opacity: 0.75; } /* ── Right panel tabs ───────────────────────────────────────────── */ .itabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); flex-shrink: 0; } .itabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; font-size: 11px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; } .itabs button:hover { color: var(--text); } .itabs button.active { color: var(--text); border-bottom-color: var(--accent); } .itabs button.task:not(.active) { color: var(--lamp); } .itabs .badge { position: absolute; top: 3px; right: calc(50% - 22px); min-width: 16px; padding: 0 4px; border-radius: 999px; background: rgb(76 194 255 / 0.18); color: var(--accent); font-family: var(--font-mono); font-size: 9px; line-height: 14px; } .empty-pane { display: grid; justify-items: center; gap: 6px; padding: 32px 18px !important; text-align: center; color: var(--muted); } .empty-pane .hint { margin: 0; } /* ── Transistor breakdown ───────────────────────────────────────── */ .cost { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 12px; } .cost td { padding: 4px 4px; border-bottom: 1px solid var(--border); } .cost tbody tr { cursor: pointer; } .cost tbody tr:hover { background: var(--panel-2); } .cost .num { text-align: right; font-family: var(--font-mono); color: var(--muted); white-space: nowrap; } .cost .strong { color: var(--text); font-weight: 600; } .cost tfoot td { border-bottom: 0; font-weight: 600; } /* ── Pins list ──────────────────────────────────────────────────── */ .count-pill { margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--panel-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; } .io-section { padding-top: 10px !important; padding-bottom: 10px !important; } .io-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .io-head h3 { flex: 1; margin: 0 !important; } .io-list { display: grid; gap: 1px; } .io-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 22px; align-items: center; gap: 6px; height: 26px; padding: 0 2px; border-radius: 5px; border: 1px solid transparent; } .io-row:hover { background: var(--panel-2); } .io-row.selected { border-color: rgb(76 194 255 / 0.5); background: rgb(76 194 255 / 0.07); } .io-value { display: grid; place-items: center; width: 20px; height: 18px; border-radius: 4px; background: var(--panel-2); color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 700; cursor: default; } .io-value.live { cursor: pointer; outline: 1px solid var(--border); } .io-value.live:hover { outline-color: var(--accent); } .io-value.on { background: var(--on-dim); color: var(--on); } .io-name { width: 100%; min-width: 0; height: 22px; padding: 0 5px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--text); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; outline: none; } .io-name:hover { border-color: var(--border); } .io-name:focus { border-color: var(--accent); background: var(--bg); } .io-name::placeholder { color: var(--muted); font-weight: 400; font-style: italic; } .io-kind { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); white-space: nowrap; } .io-row.dup .io-kind { color: var(--lamp); } .io-locate { width: 22px !important; height: 22px !important; opacity: 0; } .io-row:hover .io-locate, .io-group-head:hover .io-locate, .io-locate:focus-visible { opacity: 1; } .io-group { margin: 3px 0; padding: 0 3px 3px; border: 1px solid var(--border); border-radius: 7px; } .io-group.selected { border-color: rgb(76 194 255 / 0.6); background: rgb(76 194 255 / 0.05); } .io-group-head { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 2px 0 5px; font-size: 11px; font-weight: 600; color: var(--muted); } .numbering { margin: 4px 0 12px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); } /* ── Bulk editing ───────────────────────────────────────────────── */ .type-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; } .type-chip { padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text); } .type-chip span { font-family: var(--font-mono); color: var(--muted); } .type-chip:hover { border-color: var(--accent); } .arrange { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; } .arrange .icon-btn { width: 100%; border: 1px solid var(--border); } .arrange .icon-btn:disabled { opacity: 0.4; } .text-input { width: 100%; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 13px; color: var(--text); outline: none; } .text-input:focus { border-color: var(--accent); } .tips-box { margin-top: 12px; font-size: 12px; color: var(--muted); } .tips-box summary { cursor: pointer; margin-bottom: 6px; } .field small.hint { display: block; margin-top: 4px; } .inspector h3 + .score { margin-top: -4px; margin-bottom: 12px; } /* ── Collapsible side panels ────────────────────────────────────── */ .collapse-btn { display: grid; place-items: center; color: var(--muted); flex: 0 0 30px; } .collapse-btn:hover { color: var(--text); } .itabs { grid-template-columns: 30px repeat(4, 1fr); } .rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 6px; background: var(--panel); min-height: 0; } .rail.left { border-right: 1px solid var(--border); } .rail.right { border-left: 1px solid var(--border); } .rail-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--muted); } .rail-btn:hover { background: var(--panel-2); color: var(--text); } .tabs .collapse-btn, .itabs .collapse-btn { flex: 0 0 30px; flex-direction: row; padding: 0; border-bottom: 2px solid transparent; } /* Ribbon cable: sleeve, dark core, one thin line per wire in its own colour. */ .cable-sleeve { fill: none; stroke: var(--w-off); stroke-linejoin: round; stroke-linecap: butt; } .wire.on .cable-sleeve { stroke: color-mix(in srgb, var(--w-on) 55%, var(--w-off)); } .cable-core { fill: none; stroke: #10151c; stroke-linejoin: round; stroke-linecap: butt; } .lane { --w-on: var(--on); --w-off: #3b4554; fill: none; stroke: var(--w-off); stroke-width: 1.3; stroke-linejoin: round; pointer-events: none; } .lane.on { stroke: var(--w-on); } .lane.c-red { --w-on: #ff5c5c; --w-off: #6b3337; } .lane.c-orange { --w-on: #ff9f43; --w-off: #6b4a2b; } .lane.c-yellow { --w-on: #ffd93d; --w-off: #625a2e; } .lane.c-blue { --w-on: #4dabff; --w-off: #2b4a6b; } .lane.c-purple { --w-on: #b388ff; --w-off: #463768; } .lane.c-pink { --w-on: #ff7ac6; --w-off: #673657; } .box-select.crossing { fill: rgb(61 220 132 / 0.08); stroke: var(--on); }