:root { --red: #ff2d55; --bg: #0b0b09; --panel: #121210; --line: #242420; --text: #ece9e2; --muted: #8a877e; --mono: "IBM Plex Mono", ui-monospace, monospace; --display: "Syne", system-ui, sans-serif; } * { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; } body { background: var(--bg); color: var(--text); font-family: var(--mono); } .app { display: grid; grid-template-columns: 380px 1fr; height: 100vh; } /* --- Chat panel --- */ .chat { display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); min-height: 0; } .brand { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; position: relative; } .logo { font-family: var(--display); font-weight: 800; letter-spacing: 1px; color: var(--red); font-size: 20px; flex: 1; } .menu { width: 32px; height: 32px; border: 1px solid var(--line); background: #0d0d0b; color: var(--text); border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; } .menu:hover { border-color: var(--red); } .menu.new { color: var(--red); font-weight: 700; } /* --- Designs drawer --- */ .drawer { position: absolute; top: 58px; left: 8px; right: 8px; z-index: 30; background: #16160f; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); max-height: 60vh; display: flex; flex-direction: column; overflow: hidden; } .drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); } .drawer-head button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; } .drawer-empty { padding: 18px 14px; color: var(--muted); font-size: 13px; } .drawer-list { overflow-y: auto; } .drawer-item { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 14px; background: none; border: none; border-bottom: 1px solid #1c1c17; color: var(--text); cursor: pointer; font-family: var(--mono); } .drawer-item:hover { background: #1d1d15; } .drawer-item.active { border-left: 2px solid var(--red); } .di-title { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .di-time { font-size: 11px; color: var(--muted); flex-shrink: 0; } .messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; } .empty { color: var(--muted); font-size: 13px; } .empty ul { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; } .empty li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; transition: border-color .15s, color .15s; } .empty li:hover { border-color: var(--red); color: var(--text); } .msg { padding: 10px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; max-width: 92%; } .msg.user { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; } .msg.assistant { background: #1b1b18; align-self: flex-start; border-bottom-left-radius: 3px; } .msg.thinking { display: flex; align-items: center; gap: 8px; color: var(--muted); } /* animated thinking dots */ .dots { display: inline-flex; gap: 3px; margin-left: 2px; } .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); display: inline-block; animation: bounce 1.2s infinite ease-in-out both; } .dots i:nth-child(1) { animation-delay: -0.24s; } .dots i:nth-child(2) { animation-delay: -0.12s; } @keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } } /* send-button spinner */ .spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: rot .7s linear infinite; } @keyframes rot { to { transform: rotate(360deg); } } /* --- Parameters --- */ .params { border-top: 1px solid var(--line); padding: 12px 16px; max-height: 32vh; overflow-y: auto; } .params-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; } .param { display: grid; grid-template-columns: 90px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; margin: 6px 0; } .param span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .param b { text-align: right; color: var(--red); font-weight: 500; } .param input[type="range"] { accent-color: var(--red); } /* --- Composer --- */ .composer { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); } .composer textarea { flex: 1; resize: none; height: 44px; background: #0d0d0b; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-family: var(--mono); font-size: 13px; padding: 12px; outline: none; } .composer textarea:focus { border-color: var(--red); } .composer button { width: 44px; border: none; border-radius: 10px; background: var(--red); color: #fff; font-size: 18px; cursor: pointer; } .composer button:disabled { opacity: .4; cursor: default; } /* --- Stage --- */ .stage { position: relative; } .toolbar { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 70%; } .toolbar button { font-family: var(--mono); font-size: 12px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer; } .toolbar button:disabled { opacity: .6; cursor: default; } .toolbar button.ghost { background: transparent; border-color: var(--line); color: var(--text); } .toolbar button.ghost:hover { border-color: var(--red); } .title-chip { position: absolute; top: 18px; left: 18px; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--text); background: rgba(11,11,9,.7); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; backdrop-filter: blur(6px); max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* --- Progress overlay --- */ .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at center, rgba(11,11,9,.55), rgba(11,11,9,.82)); backdrop-filter: blur(2px); z-index: 20; animation: fade .2s ease; } @keyframes fade { from { opacity: 0; } to { opacity: 1; } } .overlay-card { display: flex; flex-direction: column; align-items: center; gap: 22px; } .overlay-label { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); display: flex; align-items: center; } /* spinning wireframe cube */ .cube-loader { width: 64px; height: 64px; perspective: 240px; } .cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; animation: spinCube 2.4s infinite linear; } .cube span { position: absolute; width: 64px; height: 64px; border: 2px solid var(--red); background: rgba(255,45,85,.06); } .cube span:nth-child(1) { transform: rotateY(0deg) translateZ(32px); } .cube span:nth-child(2) { transform: rotateY(90deg) translateZ(32px); } .cube span:nth-child(3) { transform: rotateY(180deg) translateZ(32px); } .cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(32px); } .cube span:nth-child(5) { transform: rotateX(90deg) translateZ(32px); } .cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(32px); } @keyframes spinCube { from { transform: rotateX(-24deg) rotateY(0deg); } to { transform: rotateX(-24deg) rotateY(360deg); } } /* pipeline stepper */ .stepper { display: flex; gap: 26px; } .step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); } .step .dot { width: 9px; height: 9px; border-radius: 50%; background: #333; border: 1px solid #444; } .step.done .dot { background: #3ddc84; border-color: #3ddc84; } .step.on .dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,45,85,.25); animation: pulse 1.1s infinite; } .step.on { color: var(--text); } @keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(255,45,85,.25); } 50% { box-shadow: 0 0 0 7px rgba(255,45,85,.05); } }