:root { --paper: #faf6f0; --ink: #2c1810; --muted: #8a7568; --accent: #2e86ab; --accent-warm: #c8553d; --border: #e0d5c8; --card-bg: rgba(255, 255, 255, 0.85); --shadow: rgba(44, 24, 16, 0.08); --radius: 12px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Georgia', 'Times New Roman', serif; color: var(--ink); background: var(--paper); min-height: 100vh; position: relative; overflow-x: hidden; } .watercolor-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: radial-gradient(ellipse at 15% 20%, rgba(46, 134, 171, 0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 10%, rgba(200, 85, 61, 0.06) 0%, transparent 40%), radial-gradient(ellipse at 50% 80%, rgba(139, 69, 19, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 90% 70%, rgba(46, 134, 171, 0.06) 0%, transparent 40%), radial-gradient(ellipse at 10% 90%, rgba(200, 85, 61, 0.04) 0%, transparent 40%); } header { text-align: center; padding: 2.5rem 1rem 1rem; } header h1 { font-size: 2.4rem; font-weight: 400; letter-spacing: 0.02em; color: var(--ink); } header .subtitle { font-style: italic; color: var(--muted); margin-top: 0.3rem; font-size: 1.1rem; } .wallet-bar { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; padding: 0.35rem 0.8rem; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; font-size: 0.82rem; } .wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; } .wallet-dot.ok { background: #4caf50; } .wallet-dot.err { background: var(--accent-warm); } .wallet-balance { font-family: 'Courier New', monospace; color: var(--muted); min-width: 50px; } .wallet-topup { padding: 0.2rem 0.6rem; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 0.78rem; transition: all 0.2s; } .wallet-topup:hover:not(:disabled) { background: var(--accent); color: white; } .wallet-topup:disabled { opacity: 0.4; cursor: default; } .wallet-topup.low { background: var(--accent-warm); color: white; border-color: var(--accent-warm); animation: pulse-warm 2s infinite; } @keyframes pulse-warm { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } nav { display: flex; justify-content: center; gap: 0.25rem; padding: 0.5rem 1rem; margin: 0 auto 1.5rem; max-width: 800px; flex-wrap: wrap; } .tab { background: transparent; border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-family: inherit; font-size: 0.9rem; color: var(--muted); transition: all 0.2s; } .tab:hover { background: rgba(46, 134, 171, 0.06); color: var(--ink); } .tab.active { background: var(--accent); color: white; border-color: var(--accent); } main { max-width: 900px; margin: 0 auto; padding: 0 1rem 3rem; } .tab-content { display: none; } .tab-content.active { display: block; } .card { background: var(--card-bg); backdrop-filter: blur(4px); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 2px 8px var(--shadow); } .card h2 { font-size: 1.4rem; font-weight: 400; margin-bottom: 0.5rem; color: var(--ink); } .card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); } /* Drop Zone */ .drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 3rem 1rem; text-align: center; cursor: pointer; transition: all 0.3s; background: radial-gradient(ellipse at 30% 50%, rgba(46, 134, 171, 0.04) 0%, transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(200, 85, 61, 0.04) 0%, transparent 60%), rgba(255, 255, 255, 0.3); } .drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: radial-gradient(ellipse at 30% 50%, rgba(46, 134, 171, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(200, 85, 61, 0.08) 0%, transparent 60%), rgba(255, 255, 255, 0.5); } .drop-zone svg { color: var(--muted); margin-bottom: 0.5rem; } .drop-zone p { color: var(--muted); margin: 0.3rem 0; } .drop-hint { font-size: 0.8rem; font-style: italic; } /* Analysis Results */ .analysis-results { display: grid; grid-template-columns: 1fr; gap: 1rem; } .analysis-results .wide { grid-column: 1 / -1; } .analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .analysis-grid .card canvas { display: block; max-width: 100%; border-radius: 6px; border: 1px solid var(--border); margin-bottom: 0.5rem; } /* Palette */ .palette-row { display: flex; height: 60px; border-radius: 8px; overflow: hidden; margin-bottom: 1rem; border: 1px solid var(--border); cursor: pointer; } .palette-swatch { position: relative; transition: flex 0.3s ease; min-width: 20px; } .palette-swatch:hover { flex: 2 !important; } .swatch-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 2px 4px; font-size: 0.65rem; font-family: 'Courier New', monospace; text-align: center; background: rgba(0,0,0,0.2); color: #fff; opacity: 0; transition: opacity 0.2s; } .palette-swatch:hover .swatch-label { opacity: 1; } .palette-detail { display: flex; flex-direction: column; gap: 0.4rem; } .palette-detail-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; } .detail-swatch { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); flex-shrink: 0; } .detail-hex { font-family: 'Courier New', monospace; width: 70px; color: var(--muted); } .detail-proportion { width: 35px; text-align: right; color: var(--muted); font-size: 0.8rem; } .detail-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; } .detail-bar-fill { height: 100%; border-radius: 4px; opacity: 0.7; } /* Overlay Controls */ .overlay-controls { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; flex-wrap: wrap; } .overlay-btn { padding: 0.3rem 0.7rem; background: transparent; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 0.78rem; color: var(--muted); transition: all 0.2s; } .overlay-btn:hover { background: rgba(46, 134, 171, 0.06); } .overlay-btn.active { background: var(--accent); color: white; border-color: var(--accent); } /* Harmony */ .harmony-colors { display: flex; gap: 0.4rem; margin-top: 0.5rem; } .harmony-swatch { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--border); } /* Analysis Info */ .analysis-info { margin-top: 0.5rem; } .analysis-info h3 { font-size: 1rem; margin-bottom: 0.3rem; } .analysis-info p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin: 0.2rem 0; } .edge-hint { font-size: 0.85rem; color: var(--muted); font-style: italic; margin-bottom: 0.5rem; } /* Color Analyzer */ .color-input-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; } .color-input-row input[type="color"] { width: 50px; height: 50px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; padding: 2px; } .color-input-row input[type="text"] { flex: 1; min-width: 120px; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; font-family: 'Courier New', monospace; font-size: 1rem; background: rgba(255,255,255,0.6); } .color-input-row button, .btn-primary { padding: 0.6rem 1.2rem; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: inherit; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; } .color-input-row button:hover, .btn-primary:hover { background: #246a88; } .btn-secondary { padding: 0.5rem 1rem; background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 8px; font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; } .btn-secondary:hover { background: var(--accent); color: white; } .results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .results-grid .wide { grid-column: 1 / -1; } .swatch-large { width: 100%; height: 80px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 0.5rem; } .color-values p { margin: 0.2rem 0; font-size: 0.9rem; } .color-values strong { color: var(--muted); font-weight: 600; } .hex-label { text-align: center; font-family: 'Courier New', monospace; color: var(--muted); font-size: 0.9rem; } .property-bars { display: flex; flex-direction: column; gap: 0.8rem; } .prop-row { display: flex; align-items: center; gap: 0.5rem; } .prop-row label { width: 80px; font-size: 0.85rem; color: var(--muted); } .bar-track { flex: 1; height: 12px; background: var(--border); border-radius: 6px; overflow: hidden; } .bar-fill { height: 100%; border-radius: 6px; transition: width 0.4s ease; } .prop-row span { width: 45px; text-align: right; font-size: 0.85rem; font-family: 'Courier New', monospace; } .analogous-row { display: flex; gap: 0.5rem; justify-content: center; } .analogous-swatch { flex: 1; height: 60px; border-radius: 6px; border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; font-size: 0.7rem; font-family: 'Courier New', monospace; } #colorWheel { display: block; margin: 0 auto; max-width: 100%; } /* Composition */ .comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .comp-grid canvas { display: block; margin: 0 auto 0.8rem; border-radius: 6px; border: 1px solid var(--border); background: #fff; max-width: 100%; } .tip-text p { font-size: 0.9rem; line-height: 1.5; color: var(--muted); font-style: italic; } /* Techniques */ .technique-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; } .technique-card .technique-header { margin-bottom: 0.8rem; } .technique-card h3 { margin-bottom: 0.4rem; } .water-indicator { display: flex; gap: 4px; margin: 0.4rem 0; } .water-drop { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--accent); } .water-drop.full { background: var(--accent); } .water-drop.empty { background: transparent; } .water-label { font-size: 0.8rem; color: var(--muted); } .technique-card ul { list-style: none; padding: 0; } .technique-card li { font-size: 0.88rem; line-height: 1.5; padding: 0.3rem 0; padding-left: 1rem; position: relative; color: #4a3b30; } .technique-card li::before { content: ''; position: absolute; left: 0; top: 0.65rem; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-warm); opacity: 0.6; } /* Pigments */ .table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.9rem; } th { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 2px solid var(--border); color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; } td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); } .pigment-swatch { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); display: inline-block; } .badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.78rem; font-weight: 600; } .badge-transparent { background: #e8f5e9; color: #2e7d32; } .badge-opaque { background: #fce4ec; color: #c62828; } .badge-low { background: #e3f2fd; color: #1565c0; } .badge-medium { background: #fff3e0; color: #e65100; } .badge-high { background: #fce4ec; color: #c62828; } /* Journal */ .prompt-box { margin-top: 0.8rem; padding: 1rem; background: rgba(46, 134, 171, 0.06); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink); } #journalTitle { width: 100%; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 1rem; margin-bottom: 0.5rem; background: rgba(255,255,255,0.6); } #journalBody { width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; resize: vertical; margin-bottom: 0.5rem; background: rgba(255,255,255,0.6); } .journal-entry { padding: 1rem; border-bottom: 1px solid var(--border); } .journal-entry:last-child { border-bottom: none; } .journal-entry h4 { font-weight: 600; margin-bottom: 0.2rem; } .journal-entry .entry-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; } .journal-entry .entry-body { font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; } .journal-entry .delete-entry { float: right; background: none; border: none; color: var(--accent-warm); cursor: pointer; font-size: 0.8rem; opacity: 0.6; } .journal-entry .delete-entry:hover { opacity: 1; } footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 2rem; } footer a { color: var(--accent); text-decoration: none; } footer a:hover { text-decoration: underline; } /* Wallet Setup */ .wallet-setup { display: flex; align-items: center; gap: 0.5rem; } .wallet-setup-btn { padding: 0.2rem 0.7rem; background: var(--accent); color: white; border: none; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 0.8rem; transition: background 0.2s; } .wallet-setup-btn:hover { background: #246a88; } .wallet-download { background: none; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; padding: 0.2rem 0.4rem; color: var(--muted); display: flex; align-items: center; transition: all 0.2s; } .wallet-download:hover { border-color: var(--accent); color: var(--accent); } /* Modal */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 100; backdrop-filter: blur(2px); } .modal-overlay.active { display: block; } .modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); z-index: 101; width: 90%; max-width: 460px; max-height: 85vh; overflow-y: auto; } .modal.active { display: block; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); } .modal-header h2 { font-size: 1.2rem; font-weight: 400; margin: 0; } .modal-close { background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 0.2rem; } .modal-close:hover { color: var(--ink); } .modal-body { padding: 1.5rem; } .modal-intro { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.5; } .seed-actions { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; margin-top: 1rem; } .seed-action-btn { width: 100%; max-width: 260px; } .seed-action-divider { color: var(--muted); font-size: 0.85rem; font-style: italic; } .seed-warning { background: rgba(200, 85, 61, 0.08); border: 1px solid rgba(200, 85, 61, 0.2); border-radius: 8px; padding: 0.8rem; font-size: 0.9rem; color: #7b3a2a; line-height: 1.4; margin-bottom: 1rem; } .seed-note { text-align: center; font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 1rem; } .seed-error { color: var(--accent-warm); font-size: 0.88rem; text-align: center; margin-top: 0.5rem; } .seed-words { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 1rem 0; } .seed-word { display: inline-block; padding: 0.3rem 0.6rem; background: rgba(46, 134, 171, 0.08); border: 1px solid rgba(46, 134, 171, 0.15); border-radius: 6px; font-family: 'Courier New', monospace; font-size: 0.95rem; color: var(--ink); } /* Chat Panel */ .chat-panel { margin-top: 1rem; } .chat-card { padding: 1rem; } .chat-card h3 { margin-bottom: 0.8rem; } .chat-messages { max-height: 400px; overflow-y: auto; margin-bottom: 0.8rem; padding: 0.5rem; border: 1px solid var(--border); border-radius: 8px; background: rgba(255, 255, 255, 0.5); min-height: 60px; } .chat-msg { margin-bottom: 0.6rem; padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; max-width: 85%; word-wrap: break-word; } .chat-msg.user { background: var(--accent); color: white; margin-left: auto; border-bottom-right-radius: 2px; } .chat-msg.assistant { background: var(--card-bg); border: 1px solid var(--border); margin-right: auto; border-bottom-left-radius: 2px; } .chat-msg.system { background: rgba(200, 85, 61, 0.08); border: 1px solid rgba(200, 85, 61, 0.15); color: #7b3a2a; font-size: 0.82rem; max-width: 100%; text-align: center; } .chat-msg.streaming::after { content: '|'; animation: blink-cursor 0.8s step-end infinite; } @keyframes blink-cursor { 50% { opacity: 0; } } .chat-status { font-size: 0.8rem; color: var(--muted); font-style: italic; margin-bottom: 0.5rem; padding: 0.2rem 0.5rem; } .chat-input-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; } .chat-input-row input { flex: 1; padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.9rem; background: rgba(255, 255, 255, 0.6); } .chat-send-btn { padding: 0.5rem 1rem; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: inherit; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; } .chat-send-btn:hover:not(:disabled) { background: #246a88; } .chat-send-btn:disabled { opacity: 0.4; cursor: default; } .chat-stop-btn { padding: 0.5rem 1rem; background: var(--accent-warm); color: white; border: none; border-radius: 8px; font-family: inherit; font-size: 0.9rem; cursor: pointer; } .chat-stop-btn:hover { background: #a6432e; } .chat-start-btn { width: 100%; margin-top: 0.3rem; } /* Mint Status */ .mint-row { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; font-size: 0.85rem; } .mint-label { color: var(--ink); } .mint-balance { font-family: 'Courier New', monospace; color: var(--muted); } .mint-row.mint-free .mint-label::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4caf50; margin-right: 0.4rem; } .mint-row.mint-real .mint-label::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f9a825; margin-right: 0.4rem; } .mint-status-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.82rem; } .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .status-dot.status-ok { background: #4caf50; } .status-dot.status-err { background: var(--accent-warm); } .mint-status-label { color: var(--ink); min-width: 100px; } .mint-status-url { color: var(--muted); font-family: 'Courier New', monospace; font-size: 0.75rem; } @media (max-width: 700px) { header h1 { font-size: 1.8rem; } .analysis-grid, .results-grid, .comp-grid { grid-template-columns: 1fr; } .technique-grid { grid-template-columns: 1fr; } nav { gap: 0.2rem; } .tab { font-size: 0.8rem; padding: 0.4rem 0.7rem; } .palette-row { height: 45px; } .palette-detail-row { font-size: 0.78rem; } .overlay-controls { gap: 0.3rem; } .overlay-btn { font-size: 0.72rem; padding: 0.25rem 0.5rem; } .wallet-bar { font-size: 0.75rem; padding: 0.3rem 0.6rem; } .modal { width: 95%; max-height: 90vh; } .seed-words { gap: 0.3rem; } .seed-word { font-size: 0.85rem; } .chat-msg { max-width: 95%; } }