html, body { height:100%; overflow:hidden; }
body { background:#0b0e13; color:#e8ecf3; font-family:'Segoe UI', system-ui, -apple-system, sans-serif; display:flex; flex-direction:column; height:100dvh; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:16px 26px; border-bottom:1px solid #1e2531; background:#0e1219; flex:none; }
.topbar h1 { font-size:19px; font-weight:700; letter-spacing:.3px; }
.topbar h1 span { color:#7dd3fc; }
.topbar .sub { font-size:12px; color:#8b95a7; margin-top:3px; }
.right { display:flex; align-items:center; gap:18px; }
.legend { display:flex; gap:16px; font-size:11.5px; color:#8b95a7; }
.legend i { display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:5px; }
.sw { display:inline-block; width:22px; height:0; border-top:3px solid #3d4657; vertical-align:middle; margin-right:6px; }
.sw.flow { border-top-style:dashed; border-top-color:#38bdf8; }
#simBtn { font-size:12px; font-weight:700; color:#0b0e13; background:#7dd3fc; border:none; border-radius:20px; padding:8px 16px; cursor:pointer; }
#simBtn.on { background:#fbbf24; }
.badge-top { font-size:11px; font-weight:700; color:#0b0e13; background:#fbbf24; border-radius:20px; padding:5px 12px; letter-spacing:.4px; }
.stage-wrap { flex:1; min-height:0; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative; }
.stage { flex:none; position:relative; width:1440px; height:940px; margin:0 auto; border-radius:16px; border:1px solid #1e2531; background:#0e1219 radial-gradient(#232c3d 1.15px, transparent 1.15px); background-size:26px 26px; overflow:hidden; }
.page { position:absolute; inset:0; display:none; }
.page.on { display:block; }
svg.edges { position:absolute; inset:0; }
.edge { fill:none; stroke:#3d4657; stroke-width:2.2; stroke-dasharray:6 7; }
.edge.busy { animation:flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset:-13; } }
.elabel { position:absolute; font-size:10.5px; color:#aeb8c8; background:#131926; border:1px solid #263145; padding:2.5px 9px; border-radius:20px; white-space:nowrap; }
.node { position:absolute; background:linear-gradient(160deg,#171e2b,#121722); border:1.5px solid #2a3448; border-radius:16px; padding:14px 16px; cursor:pointer; transition:transform .15s, border-color .15s, box-shadow .15s; width:250px; }
.node:hover, .node.active { transform:translateY(-2px); border-color:var(--ac); box-shadow:0 8px 30px -8px var(--ac); }
.node .head { display:flex; align-items:center; gap:10px; }
.node .ic { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:19px; background:color-mix(in srgb, var(--ac) 18%, #121722); border:1px solid color-mix(in srgb, var(--ac) 45%, transparent); flex:none; }
.node .nm { font-size:14.5px; font-weight:700; line-height:1.2; }
.node .rl { font-size:10.5px; color:#8b95a7; }
.dot { width:8px; height:8px; border-radius:50%; margin-left:auto; flex:none; background:#34d399; box-shadow:0 0 8px #34d399; }
.dot.busy { background:#fbbf24; box-shadow:0 0 8px #fbbf24; }
.agents { display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.chip { display:flex; align-items:center; gap:6px; font-size:11px; background:#1a2231; border:1px solid #2a3448; border-radius:20px; padding:4px 10px 4px 8px; }
.chip i { width:7px; height:7px; border-radius:50%; background:var(--ac); flex:none; }
.meta { display:flex; gap:10px; align-items:center; margin-top:11px; font-size:10.5px; color:#8b95a7; }
.combo { font-family:Consolas, monospace; font-size:10px; color:#7dd3fc; background:#12202e; border:1px solid #1e3a4f; border-radius:6px; padding:1.5px 6px; margin-left:auto; }
.core { position:absolute; width:210px; height:210px; border-radius:50%; left:615px; top:335px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; cursor:pointer; background:radial-gradient(circle at 50% 38%, #1d2a44, #101623); border:2px solid #3b82f6; box-shadow:0 0 0 7px rgba(59,130,246,.10), 0 0 46px -4px rgba(59,130,246,.5), inset 0 0 34px rgba(34,211,238,.14); }
.core .ring { position:absolute; inset:-17px; border-radius:50%; border:1.5px dashed rgba(125,211,252,.35); }
.core .nm { font-size:16.5px; font-weight:800; letter-spacing:.6px; margin-top:7px; }
.core .rl { font-size:10px; color:#9fc3e8; }
.core .st { margin-top:7px; font-size:10px; color:#34d399; }
.panel { position:absolute; right:22px; bottom:96px; width:440px; background:rgba(16,21,31,.94); border:1px solid #2a3448; border-radius:14px; padding:15px 18px; }
.panel h3 { font-size:13.5px; margin-bottom:5px; }
.panel h3 span { color:#7dd3fc; }
.panel p { font-size:12px; color:#a7b1c2; line-height:1.55; }
.pg { padding:30px 36px 110px; overflow-y:auto; }
.pg h2 { font-size:20px; font-weight:700; }
.pg .sub2 { font-size:12.5px; color:#8b95a7; margin:4px 0 20px; }
.card { background:linear-gradient(160deg,#171e2b,#121722); border:1.5px solid #2a3448; border-radius:14px; padding:14px 16px; }
.board { display:grid; grid-template-columns:1fr 1f 1fr; gap:16px; }
.col h4 { font-size:12px; letter-spacing:.6px; color:#8b95a7; margin-bottom:10px; }
.col h4 b { color:#e8ecf3; }
.task { margin-bottom:10px; }
.task .tt { font-size:13px; font-weight:600; line-height:1.35; }
.task .tm { display:flex; gap:8px; align-items:center; margin-top:8px; font-size:10.5px; color:#8b95a7; }
.tag { display:inline-flex; align-items:center; gap:5px; font-size:10px; border:1px solid #2a3448; background:#1a2231; border-radius:20px; padding:2.5px 8px; }
.tag i { width:6px; height:6px; }
.task.draft { border-color:#8a6d1f; background:linear-gradient(160deg,#221d10,#171408); }
.btnrow { display:flex; gap:8px; margin-top:10px; }
.btn { font-size:11px; font-weight:700; border-radius:8px; padding:6px 12px; border:1px solid #2a3448; background:#1a2231; color:#e8ecf3; }
.btn.ok { background:#14532d; border-color:#166534; color:#bbf7d0; }
.btn.big { font-size:12.5px; padding:10px 18px; border-radius:10px; background:#1d4ed8; border-color:#2563eb; color:#fff; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.split.wide { grid-template-columns:430px 1fr; }
.row { display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid #1e2531; font-size:13px; }
.row:last-child { border-bottom:none; }
.stchip { margin-left:auto; font-size:10px; font-weight:700; border-radius:20px; padding:3px 10px; }
.st-done { background:#14532d; color:#bbf7d0; } .st-run { background:#713f12; color:#fde68a; } .st-wait { background:#1f2937; color:#9ca3af; }
.mail-item { padding:13px 14px; border:1px solid #2a3448; border-radius:12px; margin-bottom:10px; background:#121722; cursor:pointer; }
.mail-item.sel { border-color:#3b82f6; }
.mail-item .mt { font-size:13px; font-weight:600; display:flex; gap:8px; align-items:center; }
.mail-item .mm { font-size:11px; color:#8b95a7; margin-top:4px; line-height:1.45; }
.unread { width:8px; height:8px; border-radius:50%; background:#38bdf8; flex:none; }
.letter { line-height:1.65; font-size:13px; color:#c6cfdd; }
.letter h3 { font-size:16px; color:#e8ecf3; margin-bottom:4px; }
.letter .lh { font-size:11.5px; color:#8b95a7; margin-bottom:14px; }
.chatwrap { max-width:780px; margin:0 auto; display:flex; flex-direction:column; height:100%; }
.chathead { display:flex; align-items:center; gap:12px; padding-bottom:16px; border-bottom:1px solid #1e2531; }
.chathead .av { width:42px; height:42px; border-radius:50%; background:radial-gradient(circle at 50% 38%, #1d2a44, #101623); border:1.5px solid #3b82f6; display:flex; align-items:center; justify-content:center; font-size:19px; }
.msgs { flex:1; padding:20px 4px; display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.msg { max-width:78%; font-size:13.5px; line-height:1.55; padding:11px 15px; border-radius:16px; }
.msg.me { align-self:flex-end; background:#1d4ed8; color:#fff; border-bottom-right-radius:5px; }
.msg.ai { align-self:flex-start; background:#171e2b; border:1px solid #2a3448; border-bottom-left-radius:5px; }
.msg .who { font-size:10px; color:#7dd3fc; font-weight:700; margin-bottom:4px; letter-spacing:.4px; }
.inputbar { display:flex; gap:10px; align-items:center; background:rgba(23,30,43,.85); border:1px solid rgba(255,255,255,.13); border-radius:999px; padding:8px 8px 8px 20px; backdrop-filter:blur(14px); }
.inputbar .ph { flex:1; font-size:13px; color:#66738a; }
.send { width:38px; height:38px; border-radius:50%; background:#2563eb; color:#fff; display:flex; align-items:center; justify-content:center; font-size:16px; }
.dock { position:absolute; left:50%; transform:translateX(-50%); bottom:16px; z-index:50; display:flex; gap:4px; padding:8px; overflow:hidden; touch-action:none; user-select:none; -webkit-user-select:none; background:rgba(21,26,37,.52); backdrop-filter:blur(20px) saturate(170%); -webkit-backdrop-filter:blur(20px) saturate(170%); border:1px solid rgba(255,255,255,.14); border-radius:999px; box-shadow:0 18px 42px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.16), inset 0 -8px 18px rgba(255,255,255,.04); }
.dock::after { content:''; position:absolute; top:0; bottom:0; width:110px; z-index:0; pointer-events:none; background:linear-gradient(100deg, transparent, rgba(255,255,255,.075), transparent); transform:translateX(-260px) skewX(-16deg); animation:sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 72% { transform:translateX(-260px) skewX(-16deg); } 92%, 100% { transform:translateX(640px) skewX(-16deg); } }
.lens { position:absolute; left:0; top:0; z-index:1; border-radius:999px; pointer-events:none; background:rgba(8,12,20,.42); backdrop-filter:blur(5px) saturate(185%) brightness(1.28); -webkit-backdrop-filter:blur(5px) saturate(185%) brightness(1.28); border:1px solid rgba(255,255,255,.24); box-shadow:inset 0 1px 0 rgba(255,255,255,.28), inset 0 -6px 14px rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.4); transition:transform .55s cubic-bezier(.32,1.45,.45,1), width .55s cubic-bezier(.32,1.45,.45,1), height .55s cubic-bezier(.32,1.45,.45,1); }
.lens.free { transition:none; }
.lens.drag { box-shadow:inset 0 1px 0 rgba(255,255,255,.35), inset 0 -6px 14px rgba(255,255,255,.07), 0 10px 26px rgba(0,0,0,.5), -4px 0 12px rgba(56,189,248,.35), 4px 0 12px rgba(244,114,182,.32), 0 0 0 1px rgba(255,255,255,.06); border-color:rgba(255,255,255,.4); }
.tab { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:3px; min-width:82px; padding:9px 14px 7px; border:none; background:transparent; color:#aeb8c8; border-radius:999px; cursor:pointer; font-family:inherit; transition:color .18s; }
.tab svg { width:23px; height:23px; transition:transform .3s cubic-bezier(.32,1.45,.45,1); }
.tab span { font-size:10.5px; font-weight:600; }
.tab.on { color:#fff; }
.tab.on svg { transform:scale(1.14); }
.bdg { position:absolute; top:2px; right:8px; background:#22c55e; color:#04150a; font-size:10px; font-weight:800; min-width:19px; height:19px; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:0 5px; box-shadow:0 2px 8px rgba(34,197,94,.5); }
