:root { --accent: #0f766e; }
* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; max-width: 820px; margin: 0 auto; padding: 2em 1.2em; line-height: 1.6; }
#record-btn, #stop-btn { font-size: 1.2em; padding: 0.8em 1.4em; border: 0; border-radius: 10px; color: #fff; background: var(--accent); cursor: pointer; }
#stop-btn { background: #b91c1c; }
#elapsed { margin-left: 1em; font-variant-numeric: tabular-nums; }
.error { color: #b91c1c; }
.sessions { list-style: none; padding: 0; }
.sessions li { padding: 0.5em 0; border-bottom: 1px solid #eee; }
.visit-note h2 { color: var(--accent); border-bottom: 2px solid #ccfbf1; padding-bottom: 0.2em; }
.session-actions { display: flex; gap: 1em; align-items: center; margin: 1.4em 0; flex-wrap: wrap; }
.session-actions form { margin: 0; }
.session-actions button[type="submit"] { font-size: 1em; padding: 0.6em 1em; border: 1px solid var(--accent); background: #fff; color: var(--accent); border-radius: 8px; cursor: pointer; }
.note-meta { color: #6b7280; font-size: 0.85em; margin: 0 0 0.4em; }
#record-widget #record-btn { background: var(--accent); }
.processing { color: var(--accent); font-weight: 600; }
button[disabled] { opacity: 0.45; cursor: not-allowed; }
.corrections { margin: 2em 0 1em; border-top: 1px solid #eee; padding-top: 1em; }
.corrections textarea { width: 100%; font: inherit; padding: 0.5em; }
.corrections .chat { list-style: none; padding: 0; }
.corrections .chat li { background: var(--accent-bg, #f0fdfa); border-left: 3px solid var(--accent); padding: 0.5em 0.8em; margin-bottom: 0.4em; border-radius: 0 6px 6px 0; }
.muted { color: #6b7280; }
table.rules { border-collapse: collapse; width: 100%; }
table.rules th, table.rules td { text-align: left; padding: 0.5em 0.6em; border-bottom: 1px solid #eee; vertical-align: top; }
tr.rule-applied td:nth-child(2) { color: var(--accent); font-weight: 600; }
tr.rule-rejected { opacity: 0.5; }
form.inline { display: inline; margin: 0 0.2em 0 0; }
ul.rule-list { list-style: none; padding-left: 0; margin: 0.3em 0; }
ul.rule-list li { padding: 0.3em 0; border-bottom: 1px solid #eee; }
li.rule-applied { color: var(--accent); font-weight: 600; }
details.prompt-preview { margin: 0.8em 0; }
details.prompt-preview summary { cursor: pointer; font-weight: 600; }
pre.prompt { white-space: pre-wrap; word-break: break-word; background: #f6f6f6; padding: 0.8em; border-radius: 4px; font-size: 0.85em; max-height: 24em; overflow-y: auto; }
