:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #6366f1;
  --danger: #f87171;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); }
.topbar, .footer { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.5rem; background: #020617; }
.topbar { justify-content: space-between; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
nav { display: flex; gap: 1rem; align-items: center; }
.page { max-width: 960px; margin: 0 auto; padding: 1.5rem; }
.hero { padding: 3rem 0; }
.btn { background: var(--accent); color: white; border: 0; padding: .6rem 1rem; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-block; }
.form { display: grid; gap: .75rem; max-width: 24rem; }
.form input, textarea, .title-input, .row input { width: 100%; padding: .6rem; border-radius: 8px; border: 1px solid #334155; background: var(--card); color: var(--text); }
.error { color: var(--danger); }
.muted { color: var(--muted); }
.note-list { list-style: none; padding: 0; }
.note-list li { padding: .75rem 0; border-bottom: 1px solid #1e293b; }
.note-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .note-grid { grid-template-columns: 1fr 16rem 20rem; } }
.chat-log { min-height: 12rem; max-height: 24rem; overflow: auto; background: var(--card); border-radius: 12px; padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.bubble { align-self: flex-end; background: #312e81; padding: .5rem .75rem; border-radius: 12px 12px 4px 12px; max-width: 90%; }
.chat-media { max-width: 16rem; border-radius: 8px; display: block; }
.bubble-actions { display: flex; gap: .75rem; margin-top: .35rem; font-size: .85rem; }
.btn.icon { padding: .55rem .7rem; }
.secret { font-family: ui-monospace, monospace; word-break: break-all; background: var(--card); padding: .75rem; border-radius: 8px; }
.row { display: flex; gap: .5rem; margin-top: .5rem; }
.inline { display: inline; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; }
.danger { color: var(--danger); }
.title-input { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; }
