/* Palette + look adopted 1:1 from 2Btainment/spaceforge (frontend/src/styles.css). Layout/selectors unchanged — colours, surfaces, borders, buttons, radius only. */ :root { color-scheme: dark; /* SpaceForge core palette */ --bg: #070b16; --bg2: #0a1224; /* SpaceForge input / inner surface */ --panel: #10182c; --panel2: #162038; --border: #2a3a63; --border-strong: #3b5088; --text: #e8eefc; --muted: #9bb0d4; --accent: #6ea8ff; --accent2: #8b5cf6; --accent-glow: rgba(110, 168, 255, 0.35); --deep: #050910; /* SpaceForge logs background */ --log-text: #b7c7e8; --btn-text: #061018; --ok: #34d399; --warn: #fbbf24; --err: #f87171; --hybrid: #38bdf8; --local: #a3e635; --hosted: #c084fc; /* RepoSpace session states mapped to SpaceForge colours */ --pending: #9bb0d4; --building: #fbbf24; --running: #34d399; --failed: #f87171; --terminated: #6b7a99; /* legacy aliases kept so nothing references an undefined var */ --silver: var(--text); --gold: var(--accent); --gold-bright: var(--accent); --gold-deep: var(--accent2); --metal: linear-gradient(135deg, var(--accent), var(--accent2)); --glow: 0 10px 40px rgba(0, 0, 0, .25); --topbar-h: 56px; --urlbar-h: 44px; --font: "Segoe UI", system-ui, -apple-system, sans-serif; font-family: var(--font); } * { box-sizing: border-box; } html, body, #root { height: 100%; } body { margin: 0; min-height: 100%; color: var(--text); background: radial-gradient(1200px 600px at 10% -10%, #1a2748 0%, transparent 55%), radial-gradient(900px 500px at 100% 0%, #2a1850 0%, transparent 50%), var(--bg); background-color: var(--bg); background-attachment: fixed; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; color: #9cc4ff; } /* ——— Landing ——— */ .landing { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; min-height: 100%; display: flex; flex-direction: column; justify-content: center; } .landing .brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; color: var(--text); margin-bottom: 1.35rem; } .landing .brand .logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); background: var(--bg2); } .landing .brand .logo.fallback { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; } .hero h1 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 3.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; color: var(--text); } .hero p { margin: 0 0 1.25rem; color: var(--muted); max-width: 42rem; font-size: 1rem; line-height: 1.55; } .pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; } .pill { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; background: rgba(110, 168, 255, .15); color: var(--accent); } .pills .pill:nth-child(2) { background: rgba(56,189,248,.15); color: var(--hybrid); } .pills .pill:nth-child(3) { background: rgba(192,132,252,.15); color: var(--hosted); } .pills .pill:nth-child(4) { background: rgba(163,230,53,.15); color: var(--local); } .card { background: linear-gradient(180deg, var(--panel), var(--panel2)); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.15rem; margin-bottom: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,.25); position: relative; overflow: hidden; } .row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; } input[type="text"], input[type="password"] { flex: 1; min-width: 200px; background: var(--bg2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: .7rem .85rem; font-size: .95rem; outline: none; } input::placeholder { color: #6b7a99; } input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 168, 255, .18); } button { border: 0; border-radius: 10px; padding: .7rem 1rem; font-weight: 600; font-size: .9rem; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--btn-text); } button:hover:not(:disabled) { filter: brightness(1.08); } button:disabled { opacity: .55; cursor: not-allowed; } button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); } button.secondary:hover:not(:disabled) { border-color: var(--accent); filter: none; } button.danger { background: transparent; color: var(--err); border: 1px solid rgba(248,113,113,.45); } button.danger:hover:not(:disabled) { background: rgba(248,113,113,.12); filter: none; } button.ghost, a.ghost { background: transparent; color: var(--muted); border: 1px solid transparent; padding: .4rem .65rem; font-weight: 600; font-size: .8rem; border-radius: 8px; } button.ghost:hover, a.ghost:hover { color: var(--text); border-color: var(--border); filter: none; } .hint { font-size: .8rem; color: var(--muted); margin-top: .5rem; line-height: 1.45; position: relative; z-index: 1; } .error { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); color: #fecaca; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; } .footer-note { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); } /* ——— Status pills ——— */ .badge { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid transparent; white-space: nowrap; } .badge .dot { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; } .badge .hex { width: .7rem; height: .7rem; display: inline-block; background: currentColor; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); opacity: .95; } .badge.pending { color: var(--pending); background: rgba(155,176,212,.12); border-color: rgba(155,176,212,.3); } .badge.building { color: var(--building); background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.35); } .badge.running { color: var(--running); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); } .badge.failed { color: var(--failed); background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.35); } .badge.terminated { color: var(--terminated); background: rgba(107,122,153,.15); border-color: rgba(107,122,153,.35); } .badge.building .dot, .badge.running .dot { animation: pulse 1.4s ease-in-out infinite; } @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } } /* ——— Session workspace ——— */ .space-shell { height: 100%; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; } .space-topbar { height: var(--topbar-h); flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 1rem; border-bottom: 1px solid var(--border); background: rgba(16, 24, 44, 0.85); backdrop-filter: blur(12px); } .space-topbar .left, .space-topbar .right { display: flex; align-items: center; gap: .65rem; min-width: 0; } .space-topbar .brand-mini { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; border: 1px solid var(--border); } .space-topbar .repo-title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(42vw, 420px); } .space-topbar .meta-chip { font-size: .7rem; color: var(--muted); border: 1px solid var(--border); background: var(--bg2); border-radius: 999px; padding: .15rem .5rem; display: none; text-transform: uppercase; letter-spacing: .04em; } @media (min-width: 720px) { .space-topbar .meta-chip { display: inline-block; } } .space-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: .75rem; gap: .65rem; position: relative; } .url-bar { flex: 0 0 auto; height: var(--urlbar-h); display: flex; align-items: center; gap: .5rem; padding: 0 .65rem; border-radius: 12px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), var(--panel2)); box-shadow: 0 10px 40px rgba(0,0,0,.25); } .url-bar .lock { color: var(--ok); font-size: .85rem; opacity: .95; } .url-bar input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; padding: .35rem 0; outline: none; box-shadow: none; border-radius: 0; } .url-bar .url-actions { display: flex; gap: .35rem; flex-shrink: 0; } .preview-stage { flex: 1 1 auto; min-height: 0; position: relative; border-radius: 16px; border: 1px solid var(--border); background: var(--bg2); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.25); } .preview-stage.live { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(110,168,255,.35), 0 10px 40px rgba(0,0,0,.3); } .preview-frame { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; background: #fff; } .preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 2rem; text-align: center; color: var(--muted); background: radial-gradient(500px 280px at 50% 40%, rgba(110,168,255,.08), transparent 70%), var(--bg2); } .preview-placeholder h3 { margin: 0; color: var(--text); font-size: 1.1rem; letter-spacing: -0.01em; } .preview-placeholder p { margin: 0; max-width: 36rem; line-height: 1.45; font-size: .9rem; } .preview-error { margin: .25rem 0 0; max-width: 42rem; max-height: 16rem; overflow: auto; text-align: left; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; line-height: 1.45; color: #fecaca; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.35); border-radius: 10px; padding: .75rem .9rem; } .spinner { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .logs-dock { flex: 0 0 auto; border-radius: 16px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--panel), var(--panel2)); overflow: hidden; transition: max-height .25s ease; box-shadow: 0 10px 40px rgba(0,0,0,.25); } .logs-dock.collapsed { max-height: 44px; } .logs-dock.open { max-height: min(28vh, 260px); display: flex; flex-direction: column; } .logs-dock .logs-head { height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .85rem; cursor: pointer; user-select: none; border-bottom: 1px solid transparent; } .logs-dock.open .logs-head { border-bottom-color: var(--border); } .logs-dock .logs-head strong { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .logs-dock .logs-head .chev { color: var(--muted); transition: transform .2s; font-size: .75rem; } .logs-dock.open .logs-head .chev { transform: rotate(180deg); } .terminal { flex: 1 1 auto; min-height: 0; background: var(--deep); padding: .65rem .85rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.45; overflow: auto; color: var(--log-text); white-space: pre-wrap; word-break: break-word; } .terminal .ts { color: #6b7a99; margin-right: .4rem; } .space-error { margin: .5rem .75rem 0; } .meta-line { font-size: .85rem; color: var(--muted); } @media (min-width: 1100px) { .space-stage.with-side-logs { display: grid; grid-template-columns: 1fr minmax(280px, 340px); grid-template-rows: auto 1fr; gap: .65rem; } .space-stage.with-side-logs .url-bar { grid-column: 1; grid-row: 1; } .space-stage.with-side-logs .preview-stage { grid-column: 1; grid-row: 2; } .space-stage.with-side-logs .logs-dock { grid-column: 2; grid-row: 1 / span 2; max-height: none !important; height: 100%; display: flex; flex-direction: column; } } /* Plain BMC link — no third-party JS; outside React #root lifecycle (same as SpaceForge) */ .bmc-link { position: fixed; right: 1rem; bottom: 1rem; z-index: 9999; display: inline-block; padding: 0.65rem 1.1rem; border-radius: 999px; background: #FFDD00; color: #000000 !important; font-weight: 700; font-size: 0.95rem; text-decoration: none !important; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); border: 2px solid #000000; } .bmc-link:hover { filter: brightness(1.05); }