:root { --bg: #0f1419; --surface: #1a222d; --surface2: #232d3b; --border: #2f3d4f; --text: #e8edf4; --muted: #8b9cb3; --accent: #c9a227; --accent-dim: #8a7020; --ok: #3d9a6b; --warn: #d4a054; --bad: #c45c5c; --radius: 10px; --font: "Segoe UI", system-ui, -apple-system, sans-serif; --mono: "SF Mono", "Consolas", "Liberation Mono", monospace; } *, *::before, *::after { box-sizing: border-box; } html { font-size: 16px; } body { margin: 0; min-height: 100vh; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; } .top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; padding: 1.25rem 1.5rem; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); } .brand { display: flex; gap: 0.85rem; align-items: center; } .brand-mark { font-size: 2rem; color: var(--accent); font-weight: 300; line-height: 1; } .brand h1 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; } .tagline { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--muted); } .conn-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; } #ws-url { width: min(100%, 220px); padding: 0.45rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface2); color: var(--text); font-family: var(--mono); font-size: 0.85rem; } .hint { font-size: 0.72rem; color: var(--muted); width: 100%; } .hint code { font-size: 0.85em; color: var(--accent-dim); } .btn { cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.45rem 0.9rem; font-size: 0.875rem; font-weight: 500; background: var(--surface2); color: var(--text); transition: background 0.15s, border-color 0.15s, opacity 0.15s; } .btn:disabled { opacity: 0.45; cursor: not-allowed; } .btn.primary { background: var(--accent); color: #1a1508; border-color: var(--accent-dim); } .btn.primary:hover:not(:disabled) { filter: brightness(1.08); } .btn.ghost:hover:not(:disabled) { background: var(--surface); border-color: var(--muted); } .btn.danger { border-color: var(--bad); color: #f0b4b4; } .btn.danger:hover:not(:disabled) { background: rgba(196, 92, 92, 0.15); } .pill { font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 999px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; } .pill.idle { background: var(--surface2); color: var(--muted); } .pill.ok { background: rgba(61, 154, 107, 0.2); color: var(--ok); } .pill.err { background: rgba(196, 92, 92, 0.2); color: var(--bad); } .layout { display: grid; gap: 1rem; padding: 1rem 1.5rem 2rem; max-width: 1280px; margin: 0 auto; grid-template-columns: 1fr; } @media (min-width: 900px) { .layout { grid-template-columns: 280px 1fr 1fr; grid-template-rows: auto auto; } .controls { grid-column: 1; grid-row: 1 / span 2; } .contract { grid-column: 2; grid-row: 1; } .clauses { grid-column: 3; grid-row: 1; } .log { grid-column: 2 / span 2; grid-row: 2; } } .panel { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); padding: 1rem 1.1rem; } .panel h2 { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; } .subhead { margin: 1rem 0 0.5rem; font-size: 0.8rem; color: var(--muted); font-weight: 600; } .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.65rem; } .row label { font-size: 0.85rem; color: var(--muted); } select { padding: 0.4rem 0.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 0.85rem; } .actions-row { margin-top: 0.5rem; } .metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border); } .metric { background: var(--surface2); padding: 0.5rem 0.65rem; border-radius: var(--radius); } .metric-label { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); } .metric-value { font-family: var(--mono); font-size: 0.95rem; color: var(--accent); } .doc-block { margin: 0; padding: 0.85rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--mono); font-size: 0.78rem; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow-y: auto; } .rules { margin: 0; font-size: 0.82rem; } .rules dt { color: var(--accent); font-weight: 600; margin-top: 0.4rem; } .rules dd { margin: 0.15rem 0 0 0; color: var(--muted); } .task-banner { margin: 0 0 0.75rem; padding: 0.45rem 0.65rem; background: var(--surface2); border-radius: var(--radius); font-size: 0.85rem; border-left: 3px solid var(--accent); } .clause-list { display: flex; flex-direction: column; gap: 0.75rem; } .clause-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; background: var(--surface2); } .clause-card.done { opacity: 0.55; border-style: dashed; } .clause-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; gap: 0.5rem; } .clause-idx { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); font-weight: 600; } .clause-text { margin: 0 0 0.65rem; font-size: 0.88rem; color: var(--text); } .clause-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; } .clause-actions select, .clause-actions textarea { flex: 1; min-width: 140px; padding: 0.35rem 0.45rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.82rem; } .clause-actions textarea { min-height: 3.2rem; resize: vertical; font-family: var(--font); } .clause-actions .btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; } .risk-toggle { display: flex; gap: 0.35rem; align-items: center; font-size: 0.82rem; } .log-list { margin: 0; padding: 0 0 0 1rem; max-height: 220px; overflow-y: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); } .log-list li { margin-bottom: 0.35rem; } .log-list .log-err { color: var(--bad); } .log-list .log-ok { color: var(--ok); } .foot { padding: 0.75rem 1.5rem 1.5rem; text-align: center; font-size: 0.75rem; color: var(--muted); } .foot code { color: var(--accent-dim); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }