:root { color-scheme: light dark; --bg: #10131a; --surface: rgba(255, 255, 255, 0.06); --surface-light: rgba(10, 14, 25, 0.5); --text: #f4f6fb; --muted: #adb5d6; --accent: #4f8cff; --accent-dark: #3f6ed6; --danger: #ff5c7a; --font-base: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; --border-radius: 18px; --shadow: 0 18px 40px rgba(15, 20, 30, 0.35); } * { box-sizing: border-box; } body { margin: 0; min-height: 100vh; font-family: var(--font-base); background: radial-gradient(circle at top, #192040, #0a0d18); color: var(--text); display: grid; grid-template-rows: auto 1fr auto; } header, footer { padding: 2rem clamp(1rem, 6vw, 4rem); } .site-identity { display: flex; align-items: center; gap: clamp(1rem, 4vw, 1.75rem); } .site-logo { width: clamp(3.25rem, 8vw, 4.75rem); height: auto; filter: drop-shadow(0 12px 24px rgba(24, 40, 92, 0.55)); } .site-title { display: grid; gap: 0.5rem; } header h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.04em; } .subtitle { margin-top: 0.5rem; color: var(--muted); max-width: 40rem; } main { display: flex; flex-direction: column; gap: 2rem; padding: 0 clamp(1rem, 6vw, 4rem) 4rem; } .helper-row { display: flex; justify-content: center; align-items: center; gap: 1rem; } .helper-button { min-width: 14rem; font-weight: 600; } .card { background: linear-gradient(145deg, rgba(23, 30, 50, 0.92), rgba(10, 12, 22, 0.9)); border-radius: var(--border-radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow); backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.06); } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; } .header-actions { display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; } .status-pill { display: inline-flex; align-items: center; padding: 0.35rem 0.9rem; border-radius: 999px; background: rgba(79, 140, 255, 0.15); color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; } .session-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; } .session-summary-main { display: grid; gap: 0.5rem; justify-items: start; } .session-status-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; } .session-summary-text { margin: 0; color: var(--muted); font-size: 0.95rem; } .session-toggle { align-self: center; white-space: nowrap; } .session-details { margin-top: 1.5rem; display: grid; gap: 1rem; } #session-section { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 1.5rem; } .user-info { margin-bottom: 1.5rem; color: var(--muted); } .form-grid { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; } label { font-size: 0.9rem; color: var(--muted); } input, textarea, button { font-family: inherit; font-size: 1rem; border-radius: 12px; } input, textarea { border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(9, 13, 24, 0.65); color: var(--text); padding: 0.75rem 1rem; transition: border 0.2s ease, background 0.2s ease; } input:focus, textarea:focus { outline: none; border-color: rgba(79, 140, 255, 0.5); background: rgba(15, 20, 35, 0.85); } textarea { resize: vertical; min-height: 150px; } button { padding: 0.8rem 1.2rem; border: none; cursor: pointer; font-weight: 600; transition: transform 0.18s ease, box-shadow 0.18s ease; } button:active { transform: translateY(2px); } .icon-button { padding: 0; width: 2.75rem; height: 2.75rem; min-width: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; } .icon { width: 1rem; height: 1rem; display: block; fill: currentColor; } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white; box-shadow: 0 14px 30px rgba(79, 140, 255, 0.35); } .secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.06); } .danger { background: rgba(255, 92, 122, 0.2); color: #ffbac7; border: 1px solid rgba(255, 92, 122, 0.4); } .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; padding: 0.35rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); } .feedback { min-height: 1.25rem; color: var(--muted); } .hook-list { display: grid; gap: 1.25rem; grid-template-columns: 1fr; } @media (min-width: 900px) { .hook-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .hook-card { padding: 1rem 1.25rem; background: rgba(10, 13, 24, 0.75); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.04); display: grid; gap: 0.75rem; } .hook-id-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .hook-id-label { font-size: 0.85rem; color: var(--muted); } .hook-id { padding: 0.3rem 0.6rem; background: rgba(255, 255, 255, 0.05); border-radius: 8px; } .hook-meta { display: flex; flex-direction: column; gap: 0.35rem; } .hook-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; } .hook-timestamps { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; text-align: right; } .hook-meta h3 { margin: 0; font-size: 1rem; color: var(--text); } .hook-date { font-size: 0.85rem; color: var(--muted); } .hook-last-run { font-size: 0.85rem; color: var(--muted); } .hook-message { white-space: pre-wrap; font-family: "JetBrains Mono", "Fira Code", monospace; background: rgba(255, 255, 255, 0.04); padding: 0.75rem; border-radius: 12px; margin: 0; } .hook-url { background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 0.6rem 0.8rem; display: inline-block; user-select: all; } .edit-hook-form { margin-top: 0.75rem; display: grid; gap: 0.75rem; padding: 0.85rem; background: rgba(255, 255, 255, 0.03); border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); } .edit-hook-form label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); } .edit-hook-actions { display: flex; gap: 0.75rem; justify-content: flex-end; } .edit-hook-form .save-edit { min-width: 8rem; } .hook-feedback { margin: 0.35rem 0 0; min-height: 1rem; font-size: 0.85rem; color: var(--muted); } .hook-actions { display: flex; gap: 0.75rem; } .recent-chats-modal { position: fixed; inset: 0; background: rgba(10, 13, 24, 0.78); display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 6vw, 3rem); z-index: 1000; } .modal-card { background: linear-gradient(145deg, rgba(22, 28, 48, 0.95), rgba(9, 11, 22, 0.92)); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.08); max-width: min(34rem, 100%); width: 100%; padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: 0 28px 60px rgba(8, 12, 24, 0.55); display: grid; gap: 1.25rem; } .modal-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .modal-header h2 { margin: 0; font-size: 1.35rem; } .modal-close { width: 2.5rem; height: 2.5rem; } .recent-chats-description { margin: 0; color: var(--muted); font-size: 0.95rem; } .recent-chats-search-wrapper { display: flex; } .recent-chats-search { width: 100%; margin-top: 0.5rem; } .recent-chats-list { display: grid; gap: 1rem; max-height: min(24rem, 60vh); overflow-y: auto; padding-right: 0.5rem; } .recent-chat-item { background: rgba(255, 255, 255, 0.04); border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.06); padding: 0.85rem clamp(0.75rem, 4vw, 1rem); display: grid; gap: 0.75rem; } .recent-chat-details { display: grid; gap: 0.35rem; } .recent-chat-name { font-weight: 600; font-size: 1rem; } .recent-chat-meta { font-size: 0.85rem; color: var(--muted); } .recent-chat-extra { font-size: 0.85rem; color: var(--muted); opacity: 0.85; } .recent-chat-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; } .recent-chat-label { font-size: 0.85rem; color: var(--muted); flex: 0 0 auto; min-width: 5.5rem; } .recent-chat-actions { display: flex; align-items: center; flex: 1 1 auto; } .recent-chat-value-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.35rem 0.55rem; background: rgba(255, 255, 255, 0.05); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.9rem; font-family: inherit; color: inherit; min-height: 2.25rem; width: 100%; cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; } .recent-chat-value-button:hover:not(:disabled), .recent-chat-value-button:focus-visible { background: rgba(79, 140, 255, 0.12); border-color: rgba(79, 140, 255, 0.35); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15); outline: none; } .recent-chat-value-button:disabled, .recent-chat-value-button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.65; } .recent-chat-value { flex: 1 1 auto; word-break: break-all; user-select: all; text-align: left; } .recent-chat-copy-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--muted); } .recent-chat-feedback { min-height: 1rem; font-size: 0.8rem; color: var(--muted); } .hidden { display: none !important; } .mono { font-family: "JetBrains Mono", "Fira Code", monospace; } @media (max-width: 640px) { header, footer { text-align: center; } .recent-chats-modal { padding: 0.75rem; } .modal-card { max-height: 90vh; padding: 1rem; } .site-identity { flex-direction: column; gap: 1rem; } .hook-actions { flex-wrap: wrap; justify-content: center; } }