:root { --bg: #fff; --bg-accent: #f5f5f5; --surface: #fff; --surface-strong: #fff; --surface-muted: #f9f9f9; --line: #ddd; --line-strong: #ccc; --text: #000; --muted: #777; --accent: #3071a9; --accent-strong: #245269; --blue: #3071a9; --success: #3c763d; --warning: #8a6d3b; --error: #a94442; --shadow: none; --shadow-soft: none; --radius-xl: 24px; --radius-lg: 18px; --radius-md: 14px; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { min-height: 100%; } body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; background: #fff; color: var(--text); height: 100vh; display: flex; flex-direction: column; } .header { padding: 1rem 1.4rem; display: flex; align-items: center; gap: 1rem; background: #222; border-bottom: 1px solid #080808; position: sticky; top: 0; z-index: 20; } .header-logo { width: 38px; height: 38px; border-radius: 14px; background: #3071a9; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; letter-spacing: 0.04em; } .header-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; } .chat-container { flex: 1; min-height: 0; overflow-y: auto; padding: 1.5rem 1rem 2rem; max-width: 1100px; margin: 0 auto; width: 100%; scrollbar-width: none; } .chat-container::-webkit-scrollbar { display: none; } #messages { display: flex; flex-direction: column; gap: 1.4rem; } .empty-state { text-align: center; padding: 4rem 1rem 2rem; color: var(--muted); max-width: 820px; margin: 0 auto; } .empty-state h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 0.96; letter-spacing: -0.03em; margin-bottom: 1rem; color: var(--text); } .empty-state p { font-size: 1.02rem; margin-bottom: 0.5rem; } .examples { margin-top: 2rem; display: grid; gap: 0.85rem; text-align: left; } .example-btn { background: #f9f9f9; border: 1px solid #ddd; border-radius: 16px; padding: 1rem 1.1rem; cursor: pointer; color: #333; font-size: 0.96rem; text-align: left; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; } .example-btn:hover { transform: translateY(-1px); border-color: #3071a9; background: #fff; } .message { animation: fadeIn 0.28s ease; } @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .message-user { display: flex; justify-content: flex-end; } .message-user .message-content { max-width: min(78%, 760px); background: #3071a9; color: white; border-radius: 22px 22px 8px 22px; padding: 1rem 1.3rem; line-height: 1.65; } .message-ai { display: flex; gap: 1rem; position: relative; } .avatar { width: 40px; height: 40px; border-radius: 14px; background: #222; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; flex-shrink: 0; } .message-ai .message-content { flex: 1; background: var(--surface); border: 1px solid #ddd; border-radius: var(--radius-xl); padding: 1.25rem; line-height: 1.75; } .message-ai-stream .message-content { padding: 1.35rem; } .stream-shell { display: grid; gap: 1rem; } .stream-shell-header { display: flex; justify-content: space-between; gap: 1rem; align-items: start; } .stream-shell-kicker, .stream-final-kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; color: var(--accent); } .stream-shell-header h2 { margin-top: 0.25rem; font-size: 1.15rem; line-height: 1.2; } .stream-shell-intro { color: var(--muted); font-size: 0.96rem; } .stream-stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; } .stream-stage-card { background: #fafafa; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; min-height: 220px; display: flex; flex-direction: column; gap: 0.8rem; } .stream-stage-card.is-muted { opacity: 0.75; } .stream-stage-head, .stream-final-head { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; } .stream-stage-meta, .stream-final-meta { display: flex; align-items: center; gap: 0.6rem; } .stream-stage-timing, .stream-final-timing { font-family: "SFMono-Regular", "Menlo", "Consolas", monospace; font-size: 0.75rem; color: var(--muted); white-space: nowrap; } .stream-final-timing { font-weight: 600; color: var(--accent); } .stream-stage-name { font-size: 0.95rem; font-weight: 700; } .stream-stage-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; border-radius: 999px; padding: 0.28rem 0.58rem; border: 1px solid transparent; white-space: nowrap; } .stream-stage-badge.is-working { color: #31708f; background: #d9edf7; border-color: #bce8f1; } .stream-stage-badge.is-working::before { content: ""; display: inline-block; width: 0.75em; height: 0.75em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; } .stream-stage-badge.is-complete { color: var(--success); background: #dff0d8; border-color: #d6e9c6; } .stream-stage-badge.is-complete::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; font-size: 0.7em; font-weight: 700; background: var(--success); color: white; border-radius: 50%; } .stream-stage-badge.is-error { color: var(--error); background: #f2dede; border-color: #ebccd1; } .stream-stage-body-scroll { flex: 1; min-height: 0; max-height: 220px; overflow-y: auto; padding-right: 0.4rem; overscroll-behavior: contain; } .stream-stage-body-scroll::-webkit-scrollbar { width: 6px; } .stream-stage-body-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 999px; } .stream-stage-body { font-family: "SFMono-Regular", "Menlo", "Consolas", monospace; font-size: 0.84rem; line-height: 1.65; color: #555; white-space: pre-wrap; word-break: break-word; } .stream-init-msg { font-family: "SFMono-Regular", "Menlo", "Consolas", monospace; font-size: 0.84rem; color: var(--muted); font-style: italic; padding: 0.25rem 0; animation: blink 1.4s infinite ease-in-out; } .stream-stage-body-scroll:has(.stream-stage-body:not(:empty)) .stream-init-msg { display: none; } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } .stream-fragment { display: inline; } .stream-fragment-error { color: var(--error); } .stream-status-msg { font-family: "SFMono-Regular", "Menlo", "Consolas", monospace; font-size: 0.84rem; color: var(--muted); font-style: italic; padding: 0.15rem 0; border-left: 2px solid var(--accent); padding-left: 0.5rem; margin: 0.2rem 0; animation: fadeIn 0.3s ease; } .stream-final-card { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius-xl) + 2px); padding: 1.2rem 1.25rem; } .stream-final-note { font-size: 0.82rem; color: var(--muted); } .stream-final-body { margin-top: 1rem; } .stream-final-status { border: 1px dashed #ccc; border-radius: var(--radius-md); padding: 1.25rem; color: var(--muted); background: #f9f9f9; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; } .stream-final-status.is-waiting { animation: pulse-soft 2s infinite ease-in-out; } .stream-final-status.is-synthesizing { animation: pulse-soft 1.5s infinite ease-in-out; } .stream-final-status-icon { font-size: 1.5rem; line-height: 1; opacity: 0.85; } .stream-final-status-text { font-size: 0.95rem; font-weight: 500; } @keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } } .ai-response h3 { color: var(--text); margin: 1.5rem 0 0.8rem; font-size: 1.08rem; border-bottom: 1px solid var(--line); padding-bottom: 0.45rem; } .ai-response h3:first-child { margin-top: 0; } .summary { background: #d9edf7; border-left: 4px solid var(--accent); padding: 1rem 1.1rem; margin: 0.85rem 0 1.2rem; border-radius: 0 12px 12px 0; color: #245269; } .status-success, .status-partial, .status-error { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; margin-bottom: 0.8rem; font-weight: 600; } .status-success { color: var(--success); } .status-partial { color: var(--warning); } .status-error { color: var(--error); } .status-success::before, .status-partial::before, .status-error::before { width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: white; font-size: 11px; } .status-success::before { content: "✓"; background: var(--success); } .status-partial::before { content: "!"; background: var(--warning); } .status-error::before { content: "✕"; background: var(--error); } .card-list { list-style: none; display: grid; gap: 0.9rem; margin-top: 0.9rem; } .card-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1rem; transition: transform 0.2s ease, border-color 0.2s ease; } .card-item:hover { transform: translateY(-1px); border-color: #3071a9; } .card-title { font-weight: 700; color: var(--blue); font-size: 1.03rem; margin-bottom: 0.45rem; } .card-title a { color: inherit; text-decoration: none; } .card-title a:hover { text-decoration: underline; } .card-description { color: #333; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.45rem; } .card-meta { color: var(--muted); font-size: 0.88rem; font-style: italic; } .note-box, .access-note, .error-display, .raw-response { border-radius: var(--radius-md); padding: 1rem; margin-top: 1rem; } .note-box { background: #fcf8e3; border: 1px solid #faebcc; color: #8a6d3b; } .access-note { background: #dff0d8; border: 1px solid #d6e9c6; color: #3c763d; } .error-display { background: #f2dede; border: 1px solid #ebccd1; color: #a94442; } .raw-response { background: #f5f5f5; border: 1px solid var(--line); font-family: "SFMono-Regular", "Menlo", "Consolas", monospace; font-size: 0.85rem; white-space: pre-wrap; word-wrap: break-word; max-height: 200px; overflow-y: auto; } .loading-message { display: flex; align-items: center; gap: 1rem; color: var(--muted); padding: 0.8rem 0.2rem; } .loading-dots { display: flex; gap: 4px; } .loading-dots span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: bounce 1.4s infinite ease-in-out; } .loading-dots span:nth-child(2) { animation-delay: 0.2s; } .loading-dots span:nth-child(3) { animation-delay: 0.4s; } @keyframes spin { to { transform: rotate(360deg); } } @keyframes bounce { 0%, 80%, 100% { transform: scale(0.2); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } } .htmx-indicator { display: none !important; } .htmx-request.htmx-indicator { display: flex !important; } .input-container { padding: 1rem 1rem 1.5rem; background: #fff; border-top: 1px solid #f0f0f0; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; } .input-wrapper { max-width: 768px; width: 100%; margin: 0 auto; display: flex; align-items: flex-end; gap: 0.5rem; background: #fff; border: 1px solid #e5e5e5; border-radius: 24px; padding: 0.5rem 0.6rem 0.5rem 1.25rem; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02); transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease; } .input-wrapper:focus-within { box-shadow: 0 2px 16px rgba(48, 113, 169, 0.10), 0 0 0 1px rgba(48, 113, 169, 0.15); border-color: rgba(48, 113, 169, 0.25); } .textarea-box { flex: 1; position: relative; min-width: 0; display: flex; align-items: flex-start; } .search-input { width: 100%; min-height: 44px; max-height: 200px; padding: 10px 28px 10px 0; font-size: 16px; line-height: 1.5; border: none; background: transparent; outline: none; color: #222; resize: none; overflow-y: hidden; font-family: inherit; } .search-input::placeholder { color: #999; } .search-input:disabled { opacity: 0.5; cursor: not-allowed; } .clear-btn { position: absolute; right: 0; top: 8px; background: none; border: none; color: #999; font-size: 1.2rem; line-height: 1; cursor: pointer; width: 24px; height: 24px; display: none; align-items: center; justify-content: center; border-radius: 50%; transition: color 0.15s ease, background 0.15s ease; } .clear-btn:hover { color: #666; background: #f0f0f0; } .search-button, .stop-button { width: 36px; height: 36px; border-radius: 50%; border: none; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease; margin-bottom: 4px; } .search-button { background: #3071a9; font-size: 1.1rem; } .search-button:hover { transform: scale(1.06); background: #245269; } .search-button:disabled { opacity: 0.4; cursor: not-allowed; } .stop-button { background: #e53935; display: none; } .stop-button:hover { transform: scale(1.06); background: #c62828; } .stop-button:active { transform: scale(0.95); background: #b71c1c; } .char-counter { max-width: 768px; width: 100%; margin: 0 auto; text-align: right; font-size: 0.75rem; color: #999; padding-right: 0.75rem; min-height: 1.2em; } .char-counter.caution { color: #f5a623; } .char-counter.warning { color: #e53935; } .copy-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.36rem 0.7rem; font-size: 0.78rem; color: var(--muted); cursor: pointer; opacity: 0; transition: opacity 0.2s ease, background 0.2s ease; } .message-ai:hover .copy-btn { opacity: 1; } .copy-btn:hover { background: white; } .scroll-to-bottom-btn { position: fixed; bottom: 100px; right: 24px; z-index: 100; background: var(--accent); color: white; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); display: flex; align-items: center; justify-content: center; } .scroll-to-bottom-btn.visible { opacity: 1; pointer-events: auto; } .scroll-to-bottom-btn:hover { transform: scale(1.06); background: var(--accent-strong); } .error-message { background: #f2dede; border: 1px solid #ebccd1; border-radius: var(--radius-md); padding: 1rem; color: #a94442; } @media (max-width: 920px) { .stream-stage-grid { grid-template-columns: 1fr; } .stream-stage-body-scroll { max-height: 180px; } .message-user .message-content { max-width: 92%; } } @media (max-width: 640px) { .header { padding: 0.85rem 1rem; } .chat-container { padding: 1rem 0.75rem 1.5rem; } .message-ai { gap: 0.75rem; } .avatar { width: 34px; height: 34px; border-radius: 12px; } .message-ai .message-content, .message-user .message-content { padding: 1rem; } .stream-shell-header, .stream-final-head { flex-direction: column; align-items: flex-start; } .copy-btn { position: static; opacity: 1; margin-top: 0.75rem; } .input-container { padding: 0.75rem; } .input-wrapper { border-radius: 20px; padding: 0.4rem 0.5rem 0.4rem 1rem; } }