.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; } .titlebar { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; flex-shrink: 0; padding: 0 12px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #ffffff, #f8fafc); -webkit-app-region: drag; user-select: none; } .title-block { display: flex; align-items: baseline; gap: 10px; min-width: 0; } .title-block strong { font-size: 13px; } .drag-label { color: var(--muted); font-size: 10px; white-space: nowrap; } .controls { display: flex; gap: 6px; align-items: center; -webkit-app-region: no-drag; } .traffic { width: 14px; height: 14px; padding: 0; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 50%; background: #e2e8f0; color: transparent; font-size: 10px; line-height: 10px; -webkit-app-region: no-drag; } .traffic.min { background: #fbbf24; } .traffic.max { background: #34d399; } .traffic.close { background: #f87171; } .traffic:hover { color: rgba(0, 0, 0, 0.55); } .pill { margin-left: auto; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 10px; -webkit-app-region: no-drag; } .layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 12px; padding: 12px 16px 18px; overflow: auto; } .column { display: flex; flex-direction: column; gap: 10px; min-width: 0; } .card { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); } .pad { padding: 10px 12px; } .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; } .card h2 { margin: 0; font-size: 12.5px; } .small { font-size: 10.5px; } .muted { color: var(--muted); } .btn { height: 28px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 10.5px; -webkit-app-region: no-drag; } .btn:hover { border-color: var(--primary); } .btn.active { border-color: var(--primary); background: var(--soft); color: #1d4ed8; } .btn.mini { height: 23px; padding: 0 7px; font-size: 10px; } .btn:disabled { cursor: default; opacity: 0.4; } .display-list, .sim-list, .event-list, .experiment { margin: 0; padding: 0; list-style: none; } .display-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); } .display-row:last-child { border-bottom: none; } .display-row.current { background: linear-gradient(90deg, #eff6ff, transparent); } .display-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .display-main strong { font-size: 11.5px; } .display-main code { font-size: 9.5px; overflow-wrap: anywhere; } .chips { display: flex; flex-wrap: wrap; gap: 4px; } .chip { padding: 0 5px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 9px; line-height: 15px; } .chip.primary { background: var(--soft); color: #1d4ed8; } .map { margin-top: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); overflow: hidden; } .map svg { display: block; width: 100%; height: 126px; } .map-primary { fill: #dbeafe; stroke: #2563eb; stroke-width: 1.2; } .map-secondary { fill: #f1f5f9; stroke: #94a3b8; stroke-width: 1; } .map-window { fill: none; stroke: #16a34a; stroke-width: 2; stroke-dasharray: 3 2; } .map-preview { fill: none; stroke: #f59e0b; stroke-width: 2; stroke-dasharray: 4 3; } .map-label { fill: #0f172a; font-size: 9px; font-family: var(--font-mono); } .map-sub { fill: #64748b; font-size: 7.5px; font-family: var(--font-mono); } .legend { display: flex; gap: 12px; margin-top: 5px; color: var(--muted); font-size: 9.5px; } .swatch { display: inline-block; width: 8px; height: 8px; margin-right: 3px; border-radius: 2px; } .swatch.primary { background: #dbeafe; border: 1px solid #2563eb; } .swatch.secondary { background: #f1f5f9; border: 1px solid #94a3b8; } .swatch.window { background: transparent; border: 1px dashed #16a34a; } .sim-list { margin-top: 6px; } .sim-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); } .sim-row:last-child { border-bottom: none; } .sim-row.selected { background: linear-gradient(90deg, #fffbeb, transparent); } .link { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 0; border: none; background: none; color: var(--text); font-size: 10.5px; text-align: left; -webkit-app-region: no-drag; } .link span { color: var(--muted); font-size: 9px; } .experiment li { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--border); font-size: 9.5px; } .experiment li:last-child { border-bottom: none; } .experiment code { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; } .experiment span { font-family: var(--font-mono); font-size: 9px; overflow-wrap: anywhere; } .mode-actions { display: flex; flex-wrap: wrap; gap: 5px; } .state-grid { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 3px 8px; margin-top: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); font-size: 10px; } .state-grid span { color: var(--muted); } .state-grid b { font-family: var(--font-mono); font-weight: 500; overflow-wrap: anywhere; } .drag-demo { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 10px; border: 2px dashed #93c5fd; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-size: 10.5px; -webkit-app-region: drag; } .drag-demo code { font-size: 9px; } .drag-controls { display: flex; gap: 6px; margin-top: 7px; } .input { flex: 1; height: 28px; padding: 0 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 10.5px; outline: none; -webkit-app-region: no-drag; } .input:focus { border-color: var(--primary); } .readout { margin-top: 6px; color: var(--muted); font-size: 9.5px; } .readout code { color: var(--text); font-size: 9px; } .hint { margin: 6px 0 0; line-height: 1.6; } .event-list { max-height: 150px; overflow: auto; } .event-row { display: grid; grid-template-columns: 56px 64px minmax(0, 1fr); gap: 6px; padding: 3px 0; border-bottom: 1px solid var(--border); font-size: 9.5px; } .event-row:last-child { border-bottom: none; } .event-row .kind { color: var(--primary); } .status { margin: 0; } body[data-shot="frameless"] .titlebar { outline: 3px dashed var(--primary); outline-offset: -3px; } body[data-shot="frameless"] .controls { outline: 2px dashed #16a34a; outline-offset: 2px; border-radius: 8px; } body[data-shot="frameless"] .drag-demo { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14); } @media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .drag-label { display: none; } }