/* Written 2026-11-23T20:05+01:00 by pi session 58a24aaa (build-core). */
:root { font: 15px/1.45 system-ui, sans-serif; color: #1d232b; background: #f6f7f9; }
* { box-sizing: border-box; }
body { margin: 0; }
#root { min-height: 100vh; display: flex; flex-direction: column; } /* header + page; the viewer takes the rest (no fixed header height) */
a { color: #2457c5; }
button, select, input, textarea { font: inherit; }
button { padding: 6px 12px; border: 1px solid #2457c5; background: #2f63d6; color: #fff; border-radius: 6px; cursor: pointer; }
button.ghost { background: transparent; color: #2457c5; }
button:disabled { opacity: .5; }
input, textarea, select { padding: 6px 8px; border: 1px solid #c8ced6; border-radius: 6px; background: #fff; }
.top { display: flex; gap: 14px; align-items: center; padding: 8px 16px; background: #fff; border-bottom: 1px solid #e2e6eb; }
.brand { font-weight: 600; text-decoration: none; color: inherit; margin-right: auto; }
.page { max-width: 760px; margin: 32px auto; padding: 0 16px; }
.page.narrow { max-width: 460px; }
.page label { display: block; margin: 12px 0; }
.page label input { display: block; width: 100%; margin-top: 4px; }
.hint { color: #5b6470; font-size: 13px; }
.error { color: #b3261e; }
.viewer { flex: 1; min-height: 0; height: 0; display: flex; flex-direction: column; }
#root:has(.viewer) { height: 100vh; }
.bar { display: flex; gap: 12px; align-items: center; padding: 6px 16px; background: #fff; border-bottom: 1px solid #e2e6eb; flex-wrap: wrap; }
.bar h1 { font-size: 16px; margin: 0; }
.status { font-size: 12px; color: #5b6470; }
.status[data-status="connected"] { color: #1d7a3a; }
.owner { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.invite-url { width: 280px; font-size: 12px; }
.stage { flex: 1; display: flex; min-height: 0; }
.frame { flex: 1; display: flex; }
.frame iframe { flex: 1; border: 0; background: #fff; }
.comments { width: 280px; padding: 10px 12px; border-left: 1px solid #e2e6eb; background: #fff; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.comments h2 { font-size: 14px; margin: 0; }
.comments ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.comments textarea { min-height: 60px; }
/* chunk 3 (pi session 8eddc587, build-tools, 2026-11-23T23:25+01:00): approval / connect notices, consent dialog, share warning */
.notice { padding: 8px 16px; background: #fff8e1; border-bottom: 1px solid #f0d98c; font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stage { position: relative; }
.consent { position: absolute; inset: 24px auto auto 50%; transform: translateX(-50%); width: min(460px, 90%); z-index: 2; background: #fff; border: 1px solid #c8ced6; border-radius: 10px; padding: 16px 20px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.consent h2 { font-size: 17px; margin: 0 0 8px; }
.warning { color: #8a5a00; font-size: 13px; max-width: 420px; }
/* comment threads (2026-11-23 pi session 5d09c3e0, build-loop) */
.comments .thread { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid #eef0f3; }
.comments .meta { font-size: 11px; color: #5b6470; display: flex; gap: 6px; align-items: center; }
.comments .badge { padding: 0 5px; border-radius: 8px; background: #e8eefc; color: #2457c5; }
.comments .badge.done { background: #e3f4e8; color: #1d7a3a; }
.comments .reply { margin: 2px 0 0 10px; padding-left: 6px; border-left: 2px solid #c9d6f5; }
button.small { padding: 1px 6px; font-size: 11px; }
