@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root { color-scheme: light; --ink: #17211c; --muted: #69736d; --lime: #d8f36a; --paper: #f4f1e8; --line: #d5d6c8; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 80% 10%, #e3efb0 0, transparent 28%), var(--paper); font-family: 'Space Grotesk', sans-serif; }
.shell { width: min(680px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 72px; }
.eyebrow, label, .record-state { font: 500 12px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { color: #73822e; margin: 0 0 42px; }
h1 { font-size: clamp(42px, 8vw, 78px); line-height: .96; letter-spacing: -.05em; margin: 0; }
h1 em { color: #7c9220; font-style: normal; }
.intro { color: var(--muted); font-size: 17px; line-height: 1.5; max-width: 420px; margin: 24px 0 48px; }
form { display: grid; gap: 12px; }
label { margin-top: 8px; color: var(--muted); }
input, textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.55); color: var(--ink); font: inherit; padding: 15px 16px; outline: none; }
input:focus, textarea:focus { border-color: #849c29; box-shadow: 0 0 0 3px rgba(216,243,106,.45); }
.question-panel { margin-top: 16px; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.48); }
.question-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.question-heading .eyebrow { margin: 0; color: #73822e; }
.question-panel h2 { margin: 26px 0 8px; font-size: 28px; line-height: 1.1; }
#question-help, .save-note { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.question-actions { display: flex; gap: 8px; margin-top: 10px; }
.question-actions button { border: 0; padding: 13px 15px; background: var(--ink); color: #f7f5ec; font: 600 14px inherit; cursor: pointer; }
.question-actions button:last-child { background: var(--lime); color: var(--ink); }
.question-actions button span { margin-left: 8px; }
.question-actions #question-record-button.recording { background: #ff886d; }
.record-panel { margin: 14px 0 4px; padding: 28px; background: var(--ink); color: #f7f5ec; min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.record-state { align-self: flex-start; color: #bdc6b9; display: flex; align-items: center; gap: 8px; }
#record-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
#record-button { width: 86px; height: 86px; margin: 10px 0 14px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 30px; cursor: pointer; box-shadow: 0 0 0 12px rgba(216,243,106,.1); }
#record-button.recording { background: #ff886d; animation: pulse 1.2s infinite; }
#transcript { margin: 0; color: #c5cdc3; text-align: center; line-height: 1.5; }
.save-button { margin-top: 10px; border: 0; padding: 16px 18px; background: var(--lime); color: var(--ink); font: 600 15px inherit; cursor: pointer; text-align: left; }
.save-button span { float: right; font-size: 20px; line-height: 12px; }
#message { min-height: 24px; margin: 2px 0 0; color: #657e1b; }
.history-panel { margin-top: 72px; border-top: 1px solid var(--line); padding-top: 28px; }
.history-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.history-heading .eyebrow { margin: 0 0 10px; }
.history-heading h2 { margin: 0; font-size: 32px; }
#refresh-history-button { border: 1px solid var(--line); background: transparent; color: var(--ink); width: 42px; height: 42px; font-size: 22px; cursor: pointer; }
.history-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.history-item-top { display: flex; justify-content: space-between; gap: 16px; }
.history-item-top strong { font-size: 19px; }
.history-item time, .history-meta { color: var(--muted); font: 12px 'DM Mono', monospace; }
.history-item p { margin: 8px 0 0; color: var(--muted); }
.history-item p b { color: var(--ink); font-size: 22px; }
.history-item .history-meta { margin-top: 10px; }
.empty-history { color: var(--muted); padding: 22px 0; }
@keyframes pulse { 50% { box-shadow: 0 0 0 20px rgba(255,136,109,.12); } }
@media (max-width: 520px) { .shell { padding-top: 36px; } .eyebrow { margin-bottom: 54px; } .record-panel { padding: 22px; } .question-panel { padding: 18px; } .question-actions { flex-direction: column; } }