/* ══════════════════════════════════════════════ GITREAD — style.css Black / Red / Orange Theme ══════════════════════════════════════════════ */ :root { --bg: #060606; --surface: #0c0808; --surface2: #110a0a; --surface3: #160c0c; --border: #1a0800; --border2: #2a1000; --accent: #d94f00; --accent2: #ff6a00; --accent-glow: rgba(217, 79, 0, 0.18); --accent-soft: rgba(217, 79, 0, 0.07); --warn: #f59e0b; --warn-bg: rgba(245, 158, 11, 0.07); --red: #f87171; --green: #34d399; --orange: #ff6a00; --text: #eeeeee; --text-dim: #888888; --muted: #333333; --font-mono: 'Space Mono', monospace; --font-head: 'Syne', sans-serif; --header-h: 56px; --footer-h: 90px; --max-chat: 800px; --radius: 10px; --radius-sm: 6px; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { height: 100%; } body { background: var(--bg); color: var(--text); font-family: var(--font-mono); display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; } /* ── Canvas background ── */ #bgCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; } /* ── Top accent line ── */ .top-accent-line { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #d94f00, #ff6a00, transparent); z-index: 999; } /* ── Corner brackets ── */ .corner-bracket { position: fixed; width: 18px; height: 18px; z-index: 100; pointer-events: none; } .corner-bracket.tl { top: 64px; left: 16px; border-top: 1px solid #2a0e00; border-left: 1px solid #2a0e00; } .corner-bracket.tr { top: 64px; right: 16px; border-top: 1px solid #2a0e00; border-right: 1px solid #2a0e00; } .corner-bracket.bl { bottom: 44px; left: 16px; border-bottom: 1px solid #2a0e00; border-left: 1px solid #2a0e00; } .corner-bracket.br { bottom: 44px; right: 16px; border-bottom: 1px solid #2a0e00; border-right: 1px solid #2a0e00; } /* ══════════════ HEADER ══════════════ */ #header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); background: rgba(6, 6, 6, 0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; z-index: 500; } .logo { display: flex; align-items: center; gap: 11px; } .logo-mark svg { display: block; } .logo-text { font-family: var(--font-head); font-weight: 800; font-size: 0.9rem; letter-spacing: 0.3em; color: var(--text); } .status-pill { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 5px 14px 5px 10px; font-size: 0.67rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); } .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: background 0.4s, box-shadow 0.4s; flex-shrink: 0; } .status-dot.active { background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s ease-in-out infinite; } .status-dot.chat { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } /* ══════════════ WARNING BANNER ══════════════ */ .warning-banner { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--warn-bg); border-bottom: 1px solid rgba(245, 158, 11, 0.2); color: var(--warn); font-size: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 20px; z-index: 400; letter-spacing: 0.04em; } .warning-banner.hidden { display: none; } .warn-icon { font-size: 0.95rem; } #dismissWarning { margin-left: auto; background: none; border: none; color: var(--warn); cursor: pointer; font-size: 0.85rem; opacity: 0.5; transition: opacity 0.2s; padding: 2px 4px; } #dismissWarning:hover { opacity: 1; } /* ══════════════ BOTTOM BAR ══════════════ */ .bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; height: 36px; background: rgba(8, 4, 4, 0.95); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 36px; z-index: 500; } .bar-item { display: flex; align-items: center; gap: 7px; font-size: 0.68rem; color: #1e1e1e; letter-spacing: 0.05em; } .bar-dot { width: 4px; height: 4px; border-radius: 50%; opacity: 0.5; display: inline-block; } /* ══════════════ MAIN ══════════════ */ main { flex: 1; margin-top: var(--header-h); position: relative; z-index: 1; } .page { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; } .page.active { opacity: 1; pointer-events: all; position: relative; min-height: calc(100vh - var(--header-h)); } /* ══════════════ PAGE 1: LANDING ══════════════ */ #landingPage { align-items: center; justify-content: center; } .landing-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 60px 24px 100px; text-align: center; max-width: 720px; width: 100%; } /* Eyebrow */ .hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 32px; background: #0a0300; border: 1px solid #2a0e00; border-radius: 100px; padding: 6px 18px; animation: fadeUp 0.6s ease both; } .eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite; } /* Hero title */ .hero-title { font-family: var(--font-head); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; margin-bottom: 20px; display: flex; flex-direction: column; gap: 0; } .title-line { font-size: clamp(3.5rem, 9vw, 6rem); color: var(--text); display: block; animation: fadeUp 0.7s ease both; } .title-line:nth-child(1) { animation-delay: 0.05s; } .title-line:nth-child(2) { animation-delay: 0.15s; } .title-line:nth-child(3) { animation-delay: 0.25s; } .accent-line { color: var(--accent); } .orange-line { background: linear-gradient(90deg, #ff6a00, #ff9a3c); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Subtitle */ .hero-sub { color: #282828; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 44px; animation: fadeUp 0.7s ease 0.3s both; } /* Input card */ .input-card { width: min(600px, 90vw); background: var(--surface); border: 1px solid #2a0e00; border-radius: var(--radius); padding: 6px 6px 6px 0; display: flex; align-items: center; gap: 0; position: relative; transition: border-color 0.25s, box-shadow 0.25s; animation: fadeUp 0.7s ease 0.35s both; margin-bottom: 22px; } /* Left red accent bar */ .input-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 10px 0 0 10px; background: linear-gradient(180deg, #ff6a00, #d94f00); } .input-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow), 0 8px 40px rgba(217,79,0,0.08); } .input-wrap { flex: 1; display: flex; align-items: center; } .input-icon { padding: 0 12px 0 18px; color: var(--accent); display: flex; align-items: center; flex-shrink: 0; } .input-wrap input { flex: 1; background: none; border: none; padding: 14px 12px 14px 0; color: var(--text); font-family: var(--font-mono); font-size: 0.82rem; outline: none; letter-spacing: 0.01em; } .input-wrap input::placeholder { color: #1e1e1e; } /* Analyse button */ .analyse-btn { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #d94f00, #ff6a00); color: #fff; border: none; border-radius: 7px; padding: 12px 22px; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; cursor: pointer; transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s; flex-shrink: 0; white-space: nowrap; } .analyse-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(217,79,0,0.4); } .analyse-btn:active { transform: translateY(0); } .btn-arrow-icon { transition: transform 0.2s; } .analyse-btn:hover .btn-arrow-icon { transform: translateX(2px); } /* Hint chips */ .landing-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation: fadeUp 0.7s ease 0.42s both; } .hint-chip { background: #0a0505; border: 1px solid #160800; border-radius: 100px; padding: 6px 15px; font-size: 0.71rem; color: #2e2e2e; letter-spacing: 0.03em; cursor: default; transition: border-color 0.2s, color 0.2s; } .hint-chip:hover { border-color: var(--accent); color: var(--accent); } @keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* ══════════════ PAGE 2: PROCESSING ══════════════ */ #processingPage { align-items: center; justify-content: center; } .processing-inner { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 48px 24px; width: min(560px, 92vw); } .processing-header { display: flex; align-items: center; gap: 18px; } .proc-spinner { width: 44px; height: 44px; flex-shrink: 0; } .spinner-ring { width: 100%; height: 100%; animation: spinRing 1.1s linear infinite; transform-origin: center; } @keyframes spinRing { to { transform: rotate(360deg); } } .proc-meta { display: flex; flex-direction: column; gap: 4px; } .proc-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: 0.05em; } .proc-subtitle { font-size: 0.71rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; } /* Steps */ .steps-container { display: flex; flex-direction: column; gap: 8px; } .step-box { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; opacity: 0; transform: translateY(8px); animation: stepIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1), padding-top 0.38s cubic-bezier(0.4, 0, 0.2, 1), padding-bottom 0.38s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease; overflow: hidden; } .step-box.done-green { background: rgba(52,211,153,0.04); border-color: rgba(52,211,153,0.18); } .step-box.warn-yellow { background: var(--warn-bg); border-color: rgba(245,158,11,0.22); } .step-box.err-red { background: rgba(248,113,113,0.05); border-color: rgba(248,113,113,0.22); } .step-title { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.05em; display: flex; align-items: center; gap: 10px; height: 22px; } .step-box .sub-items { display: flex; flex-direction: column; gap: 6px; transition: opacity 0.2s; } .step-icon-wrap { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; } .step-ring-spinner { display: block; width: 13px; height: 13px; border: 1.5px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spinRing 0.7s linear infinite; } .step-status-icon { font-size: 11px; line-height: 1; font-weight: 700; display: block; } .step-status-icon.green { color: var(--green); } .step-status-icon.warn { color: var(--warn); } .step-status-icon.err { color: var(--red); } .step-collapsed-badge { font-size: 0.67rem; letter-spacing: 0.04em; margin-left: 4px; opacity: 0; transition: opacity 0.25s ease 0.25s; font-family: var(--font-mono); } .step-collapsed-badge.visible { opacity: 1; } .step-box.done-green .step-collapsed-badge { color: var(--green); } .step-box.warn-yellow .step-collapsed-badge { color: var(--warn); } .step-box.err-red .step-collapsed-badge { color: var(--red); } @keyframes stepIn { to { opacity: 1; transform: translateY(0); } } /* Processing action card */ .proc-action-card { display: flex; align-items: flex-start; gap: 14px; border-radius: var(--radius); padding: 18px 20px; opacity: 0; transform: translateY(8px); animation: stepIn 0.35s 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards; margin-top: 4px; } .proc-action-card.proc-action-error { background: rgba(248,113,113,0.06); border: 1px solid rgba(248,113,113,0.25); } .proc-action-card.proc-action-warning { background: var(--warn-bg); border: 1px solid rgba(245,158,11,0.25); } .proc-action-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; } .proc-action-card.proc-action-error .proc-action-icon { color: var(--red); } .proc-action-card.proc-action-warning .proc-action-icon { color: var(--warn); } .proc-action-body { display: flex; flex-direction: column; gap: 6px; } .proc-action-title { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; } .proc-action-card.proc-action-error .proc-action-title { color: var(--red); } .proc-action-card.proc-action-warning .proc-action-title { color: var(--warn); } .proc-action-desc { font-size: 0.75rem; color: var(--text-dim); line-height: 1.6; } .proc-action-btn { margin-top: 10px; align-self: flex-start; border: none; border-radius: var(--radius-sm); padding: 9px 18px; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; cursor: pointer; transition: opacity 0.2s, transform 0.15s; } .proc-action-btn:hover { opacity: 0.85; transform: translateY(-1px); } .proc-btn-error { background: rgba(248,113,113,0.12); color: var(--red); border: 1px solid rgba(248,113,113,0.3); } .proc-btn-warning { background: rgba(245,158,11,0.1); color: var(--warn); border: 1px solid rgba(245,158,11,0.3); } /* ══════════════ PAGE 3: CHAT ══════════════ */ #chatPage { align-items: stretch; } .chat-messages { flex: 1; width: 100%; max-width: var(--max-chat); margin: 0 auto; padding: 32px 28px calc(var(--footer-h) + 50px); display: flex; flex-direction: column; gap: 24px; overflow-y: auto; height: calc(100vh - var(--header-h)); scroll-behavior: smooth; } .chat-messages::-webkit-scrollbar { width: 4px; } .chat-messages::-webkit-scrollbar-track { background: transparent; } .chat-messages::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; } /* Welcome */ .chat-welcome { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; gap: 12px; animation: fadeUp 0.5s ease both; } .welcome-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; } .welcome-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); color: var(--text); letter-spacing: 0.02em; } .welcome-sub { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; } .welcome-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; } .welcome-chip { background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 9px 16px; font-size: 0.75rem; color: var(--text-dim); cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s; } .welcome-chip:hover { border-color: var(--accent); color: var(--accent2); background: var(--accent-soft); transform: translateY(-1px); } /* Message groups */ .msg-group { display: flex; flex-direction: column; gap: 4px; animation: msgIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; } .msg-group.user { align-items: flex-end; } .msg-group.bot { align-items: flex-start; } @keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .msg-sender { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 4px; } .msg-bubble.user { max-width: min(520px, 88%); padding: 11px 16px; border-radius: var(--radius); border-bottom-right-radius: 3px; font-size: 0.86rem; line-height: 1.7; background: var(--accent-soft); border: 1px solid rgba(217,79,0,0.2); color: var(--text); word-break: break-word; } .msg-bubble.bot { background: transparent; border: none; color: var(--text); font-size: 0.86rem; line-height: 1.78; word-break: break-word; padding: 2px 0; width: 100%; } .msg-bubble.bot p { margin-bottom: 0.75em; } .msg-bubble.bot p:last-child { margin-bottom: 0; } .msg-bubble.bot h1, .msg-bubble.bot h2, .msg-bubble.bot h3, .msg-bubble.bot h4 { font-family: var(--font-head); font-weight: 700; color: var(--text); margin: 1.1em 0 0.45em; } .msg-bubble.bot h1 { font-size: 1.2rem; } .msg-bubble.bot h2 { font-size: 1.05rem; } .msg-bubble.bot h3 { font-size: 0.95rem; } .msg-bubble.bot ul, .msg-bubble.bot ol { padding-left: 1.4em; margin-bottom: 0.75em; } .msg-bubble.bot li { margin-bottom: 0.25em; } .msg-bubble.bot strong { color: var(--text); font-weight: 700; } .msg-bubble.bot em { color: var(--text-dim); } .msg-bubble.bot a { color: var(--accent2); text-decoration: underline; text-underline-offset: 3px; } .msg-bubble.bot blockquote { border-left: 3px solid var(--border2); padding-left: 12px; color: var(--text-dim); margin: 0.75em 0; font-style: italic; } .msg-bubble.bot :not(pre) > code { font-family: var(--font-mono); background: var(--surface3); border: 1px solid var(--border2); border-radius: 4px; padding: 1px 6px; font-size: 0.8em; color: var(--accent2); } /* Code blocks */ .code-block-wrap { margin: 10px 0; border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; background: var(--surface2); } .code-block-header { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; background: var(--surface3); border-bottom: 1px solid var(--border); } .code-lang-label { font-size: 0.67rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; } .code-copy-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border2); border-radius: 4px; padding: 3px 9px; font-size: 0.67rem; font-family: var(--font-mono); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; } .code-copy-btn:hover { color: var(--text-dim); border-color: var(--accent); } .msg-bubble.bot pre { margin: 0; padding: 14px 16px; overflow-x: auto; line-height: 1.6; background: transparent; } .msg-bubble.bot pre code { font-family: var(--font-mono); font-size: 0.79rem; background: none; border: none; padding: 0; color: var(--text); } .msg-copy-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border); border-radius: 5px; padding: 4px 10px; font-size: 0.63rem; font-family: var(--font-mono); color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; margin-top: 2px; } .msg-copy-btn:hover { color: var(--text-dim); border-color: var(--border2); } .msg-meta { font-size: 0.6rem; color: var(--muted); padding: 0 4px; letter-spacing: 0.04em; } /* ══════════════ THINKING UI ══════════════ */ .thinking-wrap { display: flex; flex-direction: column; gap: 0; align-self: flex-start; padding-left: 14px; border-left: 2px solid var(--border2); margin-left: 2px; width: calc(100% - 16px); animation: msgIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both; } .thinking-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; background: transparent; border: none; font-size: 0.7rem; color: var(--muted); cursor: pointer; transition: color 0.2s; user-select: none; letter-spacing: 0.04em; width: 100%; text-align: left; } .thinking-toggle:hover { color: var(--text-dim); } .thinking-toggle.active { color: var(--accent2); } .thinking-spinner { width: 12px; height: 12px; flex-shrink: 0; } .thinking-spinner svg { animation: spinRing 0.9s linear infinite; display: block; } .thinking-spinner.done svg { animation: none; } .thinking-chevron { margin-left: auto; font-size: 0.65rem; transition: transform 0.25s ease; opacity: 0.4; } .thinking-toggle.open .thinking-chevron { transform: rotate(180deg); } .thinking-steps-panel { overflow: hidden; max-height: 0; transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease; opacity: 0; } .thinking-steps-panel.open { max-height: 400px; opacity: 1; } .thinking-steps-inner { padding: 8px 0 10px; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; max-height: 380px; } .thinking-step { display: flex; align-items: flex-start; gap: 8px; font-size: 0.74rem; color: var(--text-dim); line-height: 1.55; opacity: 0.7; } .thinking-step-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); flex-shrink: 0; margin-top: 6px; } .thinking-step.current { color: var(--text-dim); opacity: 1; } .thinking-step.current .thinking-step-dot { background: var(--accent); box-shadow: 0 0 4px var(--accent); } .thinking-step.done-step { opacity: 0.45; } .thinking-step.done-step .thinking-step-dot { background: var(--green); } /* ══════════════ FOOTER ══════════════ */ #footer { position: fixed; bottom: 36px; left: 0; right: 0; padding: 12px 20px 14px; background: rgba(6, 6, 6, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--border); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 6px; } #footer.hidden { display: none; } .chat-input-card { width: min(var(--max-chat), calc(100vw - 40px)); background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); display: flex; align-items: flex-end; gap: 0; transition: border-color 0.25s, box-shadow 0.25s; padding: 4px 4px 4px 0; position: relative; } .chat-input-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 10px 0 0 10px; background: linear-gradient(180deg, #ff6a00, #d94f00); } .chat-input-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } #chatInput { flex: 1; background: none; border: none; padding: 12px 14px; color: var(--text); font-family: var(--font-mono); font-size: 0.84rem; outline: none; resize: none; line-height: 1.55; max-height: 160px; overflow-y: auto; } #chatInput::placeholder { color: var(--muted); } .send-btn { background: linear-gradient(135deg, #d94f00, #ff6a00); color: #fff; border: none; border-radius: 7px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s; margin: 4px; } .send-btn:hover { opacity: 0.9; transform: scale(1.05); box-shadow: 0 4px 16px rgba(217,79,0,0.4); } .send-btn:active { transform: scale(0.96); } .footer-hint { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.06em; } kbd { background: var(--surface2); border: 1px solid var(--border2); border-radius: 3px; padding: 1px 5px; font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-dim); } /* ══════════════ UTILITIES ══════════════ */ .hidden { display: none !important; } ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #333; } /* ── Settings (bring your own key) ── */ .header-right { display: flex; align-items: center; gap: 10px; } .settings-btn { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border2); border-radius: 100px; padding: 5px 12px; font-family: var(--font-mono); font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; transition: color 0.2s, border-color 0.2s; } .settings-btn:hover { color: var(--text); border-color: var(--accent); } .settings-btn.needs-key { color: var(--accent2); border-color: var(--accent); } .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 1000; } .modal-card { width: 100%; max-width: 440px; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); } .modal-head { display: flex; justify-content: space-between; align-items: center; } .modal-head h2 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; } .modal-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.9rem; } .modal-close:hover { color: var(--text); } .modal-desc { font-size: 0.7rem; line-height: 1.6; color: var(--text-dim); margin-bottom: 6px; } .modal-desc strong { color: var(--text); } .field-label { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-dim); margin-top: 6px; } .field-hint { color: var(--muted); text-transform: none; letter-spacing: 0; } .field-input { width: 100%; background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius-sm); padding: 9px 11px; color: var(--text); font-family: var(--font-mono); font-size: 0.78rem; outline: none; } .field-input:focus { border-color: var(--accent); } .field-help { font-size: 0.66rem; color: var(--accent2); text-decoration: none; align-self: flex-start; } .field-help:hover { text-decoration: underline; } .field-check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.68rem; color: var(--text-dim); margin-top: 8px; } .field-check .field-hint { flex-basis: 100%; padding-left: 21px; } .field-error { font-size: 0.7rem; color: var(--red); } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; } .modal-btn-secondary { background: none; border: 1px solid var(--border2); border-radius: var(--radius-sm); color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem; padding: 0 14px; cursor: pointer; } .modal-btn-secondary:hover { color: var(--text); border-color: var(--accent); } @media (max-width: 520px) { #settingsLabel { display: none; } }