/* The GPT Raven window on the landing page: the ChatGPT page in its dark theme, with
   what GPT Raven adds to it — the access, project and computer controls above the
   composer, the command cards in the chat and the command output along the bottom.
   Drawn on a fixed 1000 × 620 canvas and scaled to fit, like a screenshot that works. */

.rv-stage { position: relative; max-width: 1000px; margin: 84px auto 0; text-align: left; }
.rv-window { position: relative; width: 100%; }
.rv-note { margin: 6px 0 0; font-size: 11.5px; color: var(--faint); opacity: 0.7; text-align: center; }

/* Sits on the window's top edge, over the empty middle of its title bar. */
.rv-live {
    position: absolute; top: 0; left: 50%; z-index: 3;
    transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 15px 7px 12px; border-radius: 999px;
    font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap;
    background: rgba(18, 18, 20, 0.94);
    border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 6px 18px -12px rgba(162, 143, 223, 0.45);
    pointer-events: none;
}
.rv-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: rv-pulse 1.8s ease-out infinite; }
@keyframes rv-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(162, 143, 223, 0.7); }
    100% { box-shadow: 0 0 0 9px rgba(162, 143, 223, 0); }
}

.rv {
    --c-bg: #212121; --c-side: #181818; --c-title: #1b1b1b; --c-line: #2b2b2b;
    --c-text: #ececec; --c-dim: #a3a3a3; --c-faint: #6f6f6f; --c-bubble: #303030;
    --c-field: #303030; --c-hover: #2a2a2a; --c-term: #141414;
    --c-violet: #a28fdf; --c-ok: #3fb950; --c-run: #64b5f6; --c-wait: #e3b341; --c-bad: #f48771;

    position: absolute; top: 0; left: 0; width: 1000px; height: 620px;
    transform-origin: 0 0;
    display: flex; flex-direction: column;
    background: var(--c-bg); color: var(--c-text);
    border: 1px solid #3a3a3f; border-radius: 12px; overflow: hidden;
    font: 13.5px/1.5 -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, sans-serif;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.22), 0 28px 56px rgba(0, 0, 0, 0.28);
    user-select: none;
}
.rv * { box-sizing: border-box; }
.rv svg { display: block; }

/* title bar */
.rv-title { height: 34px; flex: none; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--c-title); border-bottom: 1px solid var(--c-line); }
.rv-lights { display: flex; gap: 8px; }
.rv-lights span { width: 12px; height: 12px; border-radius: 50%; }
.rv-lights span:nth-child(1) { background: #ff5f57; }
.rv-lights span:nth-child(2) { background: #febc2e; }
.rv-lights span:nth-child(3) { background: #28c840; }
.rv-title b { font-size: 12.5px; font-weight: 600; color: #bdbdbd; }

.rv-body { flex: 1; display: flex; min-height: 0; }

/* sidebar */
.rv-side { width: 232px; flex: none; background: var(--c-side); border-right: 1px solid var(--c-line); display: flex; flex-direction: column; padding: 10px 8px; }
.rv-side-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 10px; }
.rv-side-head b { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.rv-icons { display: flex; gap: 10px; color: var(--c-dim); }
.rv-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--c-text); font-size: 13.5px; }
.rv-item svg { color: var(--c-dim); }
.rv-label { font-size: 12.5px; color: var(--c-faint); padding: 14px 8px 6px; }
.rv-recent { padding: 6px 8px; border-radius: 8px; font-size: 13px; color: #d5d5d5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-recent.on { background: #262626; }
.rv-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-top: 1px solid var(--c-line); }
.rv-avatar { width: 28px; height: 28px; border-radius: 50%; background: #7a63c0; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.rv-user small { display: block; color: var(--c-faint); font-size: 11.5px; line-height: 1.2; }

/* main column */
.rv-main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.rv-top { height: 44px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 16px; color: var(--c-text); font-size: 13px; }
.rv-top span { display: flex; align-items: center; gap: 6px; }

.rv-chat { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 10px; }
.rv-thread { width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.rv-msg { max-width: 100%; animation: rv-in .25s ease; }
@keyframes rv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rv-msg.user { align-self: flex-end; max-width: 78%; background: var(--c-bubble); padding: 8px 14px; border-radius: 18px; }
.rv-msg.bot { align-self: flex-start; color: var(--c-text); }

.rv-cmd { align-self: stretch; border: 1px solid #383838; border-radius: 12px; overflow: hidden; background: #1a1a1a; animation: rv-in .25s ease; }
.rv-cmd-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #232323; border-bottom: 1px solid #333; font-size: 12px; color: var(--c-dim); }
.rv-cmd-head .raven { color: var(--c-violet); }
.rv-cmd-head .host { color: var(--c-text); font-weight: 600; }
.rv-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #2c2c2c; color: var(--c-dim); }
.rv-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rv-chip.run { color: var(--c-run); }
.rv-chip.ok { color: var(--c-ok); }
.rv-chip.wait { color: var(--c-wait); }
.rv-chip.bad { color: var(--c-bad); }
.rv-chip.run::before { animation: rv-blink 1s ease-in-out infinite; }
@keyframes rv-blink { 50% { opacity: .3; } }
.rv-cmd pre { margin: 0; padding: 9px 12px; font: 12px/1.55 ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; color: #d9d9d9; white-space: pre-wrap; }

.rv-report { align-self: flex-end; font: 11.5px ui-monospace, Menlo, Consolas, monospace; color: var(--c-dim); background: #2a2a2a; border-radius: 999px; padding: 4px 11px; animation: rv-in .25s ease; }

.rv-ask { align-self: stretch; border: 1px solid color-mix(in srgb, var(--c-violet) 60%, #333); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; background: rgba(162, 143, 223, 0.07); animation: rv-in .25s ease; }
.rv-ask span { flex: 1; }
.rv-btn { border: 1px solid #444; background: #2a2a2a; color: var(--c-text); border-radius: 999px; padding: 4px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.rv-btn:hover { border-color: var(--c-violet); }
.rv-btn.primary { background: var(--c-violet); border-color: var(--c-violet); color: #17122a; }
.rv-btn.primary:hover { filter: brightness(1.08); }
.rv-ask.glow { animation: rv-in .25s ease, rv-attn 1.6s ease-in-out 1s infinite; }
@keyframes rv-attn { 50% { box-shadow: 0 0 0 4px rgba(162, 143, 223, 0.22); } }

/* the GPT Raven controls above the composer */
.rv-pills { width: 600px; margin: 0 auto 8px; display: flex; gap: 8px; position: relative; flex: none; }
.rv-pills .gap { flex: 1; }
.rv-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid #3a3a3a; border-radius: 999px; font-size: 12px; color: var(--c-text); background: #262626; cursor: pointer; }
.rv-pill:hover, .rv-pill.open { border-color: var(--c-violet); }
.rv-pill svg { color: var(--c-dim); }

.rv-menu { position: absolute; bottom: 30px; z-index: 5; min-width: 220px; background: #2a2a2a; border: 1px solid #3c3c3c; border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); display: none; }
.rv-menu.open { display: block; animation: rv-in .15s ease; }
.rv-menu h4 { margin: 4px 8px 6px; font-size: 11.5px; font-weight: 600; color: var(--c-faint); }
.rv-opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.rv-opt:hover { background: #333; }
.rv-opt .tick { width: 14px; color: var(--c-violet); visibility: hidden; }
.rv-opt.on .tick { visibility: visible; }
.rv-opt small { display: block; color: var(--c-faint); font-size: 11.5px; line-height: 1.25; }

/* composer */
.rv-composer { width: 600px; margin: 0 auto 14px; flex: none; display: flex; align-items: center; gap: 12px; background: var(--c-field); border-radius: 26px; padding: 9px 9px 9px 16px; }
.rv-composer .text { flex: 1; color: var(--c-faint); white-space: nowrap; overflow: hidden; }
.rv-composer .text.typed { color: var(--c-text); }
.rv-composer .model { color: var(--c-dim); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.rv-send { width: 34px; height: 34px; border-radius: 50%; background: #ececec; color: #161616; display: grid; place-items: center; }

/* command output along the bottom */
.rv-term { height: 0; flex: none; overflow: hidden; background: var(--c-term); border-top: 1px solid transparent; transition: height .35s ease; }
.rv-term.open { height: 150px; border-top-color: var(--c-line); }
.rv-term-head { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 12px; color: var(--c-dim); border-bottom: 1px solid #222; }
.rv-term-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-faint); }
.rv-term-head .dot.run { background: var(--c-run); animation: rv-blink 1s ease-in-out infinite; }
.rv-term-head .dot.ok { background: var(--c-ok); }
.rv-term-head .dot.wait { background: var(--c-wait); }
.rv-term-head b { color: var(--c-text); font-weight: 600; }
.rv-term-head .path { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.rv-term-head .rv-btn { padding: 2px 11px; font-size: 11.5px; }
.rv-term-body { padding: 8px 14px; font: 11.5px/1.55 ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; color: #cfcfcf; white-space: pre; overflow: hidden; height: 118px; display: flex; flex-direction: column; justify-content: flex-end; }
.rv-term-body .cmd { color: var(--c-violet); }
.rv-term-body .ok { color: var(--c-ok); }
.rv-term-body .bad { color: var(--c-bad); }
.rv-term-body .wait { color: var(--c-wait); }
.rv-term-body .dim { color: var(--c-faint); }
