:root {
    --ink: #171a2b;
    --muted: #5a6075;
    --line: #dde1e8;
    --bg: #f4f5f7;
    --card: #ffffff;
    --accent: #0b4f9c;
    --accent-ink: #083a73;
    --ok: #1f7a4d;
    --mine: #eaf1fa;
    --radius: 14px;
    font-family: "Fira Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; }

.wrap { max-width: 920px; margin: 0 auto; padding: 48px 20px 64px; display: flex; flex-direction: column; gap: 24px; }

.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; margin: .2em 0 .4em; letter-spacing: -.01em; }
.eyebrow { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 0; max-width: 46em; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h2 { margin: 0 0 16px; font-size: 1.35rem; }
.card h3 { margin: 16px 0 6px; font-size: 1.05rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 10px 18px; border-radius: 10px; border: 2px solid var(--accent);
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--accent); }
.btn-secondary:hover { background: var(--mine); }
.btn-small { min-height: 36px; padding: 4px 12px; font-size: .9rem; background: #fff; color: var(--accent); }
.btn:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; }

.hint, .small, .muted { color: var(--muted); }
.hint { font-size: .9rem; margin: 10px 0 0; }
.small { font-size: .92rem; }

.prompt { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.prompt label { font-weight: 600; font-size: .9rem; }
.prompt textarea {
    width: 100%; resize: vertical; font: inherit; padding: 12px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}

.status { margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: #c2c7d2; flex: none; animation: pulse 1.6s ease-in-out infinite; }
.status.done { background: #e6f4ec; }
.status.done .dot { background: var(--ok); animation: none; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .status .dot { animation: none; } }

.dev summary { cursor: pointer; list-style: none; }
.dev summary::-webkit-details-marker { display: none; }
.dev summary h2 { display: inline; margin: 0; }
.dev summary::after { content: " ▾"; color: var(--muted); }
.dev[open] summary::after { content: " ▴"; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 12px; }
.copyline { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 8px; padding: 6px 6px 6px 10px; }
.copyline code { flex: 1; overflow-x: auto; white-space: nowrap; }
.links { padding-left: 1.1em; margin: 0; }

.notes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.note { padding: 14px 0; border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; }
.note.mine { background: var(--mine); border-radius: 10px; padding: 14px; border-top-color: transparent; }
.note.mine + .note.mine { margin-top: 6px; }
.note.fresh { animation: fresh 1.5s ease-out; }
@keyframes fresh { from { background: #fff6d6; } }
.note-text { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.note-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; color: var(--muted); align-items: center; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: #e3e7ee; color: #2c3246; }
.badge-mcp { background: #dfeafb; color: #0b3f7d; }
.badge-rest { background: #e6f4ec; color: #165c3a; }
.badge-link { background: #fdf0dc; color: #7a4a06; }
.empty { color: var(--muted); padding: 12px 0; }

.foot { color: var(--muted); font-size: .9rem; text-align: center; }
