/* Local design exploration over Planroom's actual built components. */
:root { --ink:#20312e; --muted:#7b8680; --line:#e7ebe5; --accent:#3e6652; --sidebar:#f4f5f0; --sidebar-muted:#8b948d; }
body { background:#e9ede6; color:var(--ink); font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.preview-note { height:32px; display:flex; align-items:center; justify-content:center; gap:18px; color:#627267; font-size:9px; font-weight:700; letter-spacing:.13em; }
.preview-note span { font-size:10px; font-weight:400; letter-spacing:0; color:#758278; }
.shell { height:calc(100dvh - 56px); min-height:650px; margin:0 18px 24px; border:1px solid #dce3d8; border-radius:18px; overflow:hidden; box-shadow:0 12px 40px #2538280b; grid-template:72px minmax(0,1fr) / 210px minmax(460px,1.35fr) minmax(335px,.9fr); background:white; }
.topbar { grid-template-columns:210px 1fr auto; background:#fff; border-color:var(--line); backdrop-filter:none; }
.brand { background:#f4f5f0; color:var(--ink); padding-left:23px; font-size:17px; letter-spacing:-.04em; }
.brand-mark { width:32px; height:32px; border-radius:10px; font-family:Georgia,serif; font-style:italic; font-size:24px; color:white; background:#365a47; }
.room-title { padding-inline:30px; gap:16px; }
.room-title strong { font-size:14px; font-weight:600; }
.room-title span { color:#8b968e; font-size:10px; }
.security { color:#6c7e6f; font-size:10px; padding-right:25px; font-weight:500; }
.sidebar { grid-column:1; grid-row:2; background:#f4f5f0; color:#43574a; padding:24px 20px; }
.sidebar section { margin-bottom:23px; padding-bottom:23px; border-color:#e1e7dd; }
.section-label { color:#869383; font-size:9px; letter-spacing:.08em; font-weight:600; gap:7px; }
.section-label svg { width:13px; }
.member-list { gap:20px; }
.member { grid-template-columns:33px 1fr 5px; gap:9px; }
.member .avatar { background:#dfe7da; color:#4e6b4e; width:33px; height:33px; font-size:10px; border-radius:11px; }
.member:nth-child(2) .avatar { background:#e9dfd4; color:#8d664e; }
.member:nth-child(3) .avatar { background:#dce4eb; color:#5b718c; }
.member strong { color:#43574a; font-size:11px; font-weight:600; }
.member small { color:#8a9788; font-size:9px; }
.presence.here { background:#7d9c70; box-shadow:0 0 0 3px #e7ecdf; width:5px; height:5px; }
.sidebar small { color:#8a9687; }
.invite-form input { border:1px solid #dbe3d7; background:#fafbf7; color:#4b6150; font-size:10px; padding:10px; border-radius:7px; }
.invite-form button { border:1px solid #cfdbcc; background:#e4ebde; color:#536a50; padding:9px; border-radius:7px; font-weight:500; }
.data-boundary p { color:#758671; font-size:10px; line-height:1.7; }
.data-boundary small { line-height:1.7; font-size:9px; }
.discussion { grid-column:2; grid-row:2; border-right:1px solid var(--line); background:#fff; min-height:0; }
.discussion-head { min-height:96px; padding:24px 32px; border-color:#edf0eb; }
.discussion-head h2 { margin-top:6px; color:#273a30; font-size:23px; letter-spacing:-.045em; font-weight:600; }
.eyebrow { font-size:9px; color:#8b978d; letter-spacing:.075em; font-weight:500; }
.search { width:32px; height:32px; padding:8px; overflow:hidden; border:1px solid #e4e9e1; border-radius:9px; background:white; color:#8c9a8e; }
.search:focus-within { width:140px; }
.search input { font-size:11px; }
.thread { padding:30px 32px 20px; overflow:auto; }
.thread-item { position:relative; margin:0 0 28px; padding:0 0 0 43px; border:0; }
.thread-item::before { content:'Y'; position:absolute; left:0; top:0; display:grid; place-items:center; width:29px; height:29px; border-radius:10px; background:#e4ebdd; color:#55704e; font-size:10px; font-weight:600; }
.thread-item:nth-child(2)::before { content:'G'; background:#e8ded2; color:#896349; }
.message-meta { min-height:23px; gap:9px; }
.message-meta strong { font-size:11px; font-weight:600; color:#40543f; }
.message-meta time { color:#a0aaa0; font-size:9px; }
.message-meta span { color:#6c8b64; font-size:9px; font-weight:500; margin-left:auto; }
.thread-item > p { margin:6px 0 16px; font-size:13px; line-height:1.65; color:#475447; max-width:520px; }
.agent-reply { margin-top:15px; padding:16px 18px; background:#f4f7ef; border:1px solid #e7edde; border-radius:0 12px 12px 12px; box-shadow:none; }
.agent-reply .message-meta strong { color:#426239; }
.agent-reply .markdown { font-size:12px; line-height:1.7; color:#56634d; }
.agent-reply .markdown p { margin:8px 0 0; }
.composer-wrap { margin:0 26px 20px; padding:0; border:0; background:white; backdrop-filter:none; }
.composer { border:1px solid #e3e9de; border-radius:14px; background:#fafbf7; box-shadow:0 3px 14px #304c2104; }
.composer textarea { min-height:77px; color:#a3ac9d; padding:16px; font-size:12px; background:transparent; }
.composer textarea::placeholder { color:#9aa592; }
.composer button { border-radius:9px; background:#638458; width:32px; height:32px; margin:0 10px 10px 0; }
.composer-wrap > small { display:block; margin:10px 4px 0; font-size:9px; color:#a1aa9a; }
.plan-pane { grid-column:3; grid-row:2; background:#fbfcf9; border:0; backdrop-filter:none; min-height:0; }
.pane-head { padding:24px; min-height:96px; background:#fbfcf9; border-bottom:1px solid #edf0e9; }
.pane-head h1 { color:#405338; font-size:20px; letter-spacing:-.035em; font-weight:600; margin-top:7px; }
.revision-controls { height:28px; border-color:#e2e8dc; background:#fff; border-radius:7px; }
.revision-controls button { height:26px; }
.revision-controls span { padding-inline:5px; font-size:9px; }
.plan-scroll { padding:0 24px 30px; }
.plan-meta { padding:12px 0; gap:10px; min-height:54px; border:0; font-size:9px; }
.plan-meta time { display:none; }
.digest { color:#7c9270; font-size:9px; }
.text-button { color:#6b8260; font-size:9px; margin-left:auto; padding:0; }
.change-summary { margin-top:3px; padding:12px 14px; border:1px solid #e3eada; border-radius:8px; background:#f1f5e9; color:#7c8f6a; font-size:10px; line-height:1.65; }
.plan-markdown { padding-top:23px; font-size:11px; color:#73816a; }
.plan-markdown h1 { font-size:22px; line-height:1.25; letter-spacing:-.045em; color:#455a38; margin-bottom:24px; font-weight:600; }
.plan-markdown h2 { margin:23px 0 9px; border:0; padding:0; color:#637a53; font-size:13px; font-weight:600; }
.plan-markdown p,.plan-markdown ul { margin:7px 0 12px; line-height:1.75; }
.plan-markdown ul { padding-left:17px; }
.plan-markdown li::marker { color:#8fa87a; }
@media(max-width:900px) { .shell { grid-template-columns:150px minmax(300px,1fr) 300px; overflow-x:auto; } .topbar { grid-template-columns:150px 1fr auto; } .preview-note { font-size:8px; } .sidebar{padding:20px 14px}.discussion-head,.thread{padding-inline:24px} }
@media(prefers-reduced-motion:reduce) { * { animation:none!important; } }
.codex-reply { margin:16px 0 0; padding:15px 17px; border:1px solid #e5edde; border-radius:0 12px 12px 12px; background:#f4f7ef; box-shadow:none; }
.codex-reply .message-meta strong { color:#426239; }
.codex-reply .markdown { font-size:12px; line-height:1.7; color:#506146; }
.codex-reply .markdown p { margin:8px 0 0; }
.thread-item { margin-bottom:24px; }
.discussion-head,.pane-head { min-height:84px; }
.search { width:34px; flex:none; }
.search input { opacity:0; }
.search:focus-within { width:130px; }
.search:focus-within input { opacity:1; }
@media(max-width:1000px) {
 .shell { margin:0 12px 18px; min-height:0; height:auto; grid-template:64px auto auto / minmax(0,1.35fr) minmax(280px,.9fr); }
 .topbar { grid-template-columns:auto 1fr auto; }
 .brand { padding:0 18px; background:white; }
 .room-title { padding-inline:18px; }
 .sidebar { grid-column:1/-1; grid-row:2; padding:14px 20px; border-bottom:1px solid #e0e7da; }
 .sidebar section { display:none; }
 .sidebar section:first-child { display:flex; align-items:center; gap:22px; padding:0; margin:0; border:0; }
 .section-label { margin:0; gap:6px; }
 .section-label span { margin-left:5px; }
 .member-list { flex-direction:row; gap:23px; }
 .member { grid-template-columns:28px 1fr; gap:8px; }
 .member .avatar { width:28px; height:28px; }
 .member .presence,.member small { display:none; }
 .discussion { grid-column:1; grid-row:3; min-height:600px; }
 .plan-pane { grid-column:2; grid-row:3; }
 .thread { padding:24px 20px; }
 .discussion-head { padding:20px; }
 .composer-wrap { margin-inline:20px; }
}
@media(max-width:640px) {
 .preview-note { height:39px; flex-direction:column; gap:3px; font-size:8px; }
 .preview-note span { font-size:8px; }
 .shell { grid-template:58px auto auto auto / minmax(0,1fr); margin-inline:8px; border-radius:13px; }
 .brand { font-size:15px; gap:8px; padding:0 14px; }
 .brand-mark { width:27px; height:27px; font-size:20px; }
 .room-title { display:none; }
 .security { padding-right:14px; font-size:9px; }
 .topbar { grid-template-columns:1fr auto; }
 .sidebar { padding:14px; }
 .sidebar section:first-child { gap:14px; flex-wrap:wrap; }
 .section-label { font-size:8px; }
 .member-list { gap:12px; }
 .member { gap:6px; }
 .member strong { font-size:9px; }
 .member .avatar { width:24px;height:24px;border-radius:8px; }
 .discussion { grid-column:1; grid-row:3; min-height:0; border-right:0; }
 .thread { overflow:visible; padding:24px 18px 5px; }
 .thread-item { padding-left:38px; }
 .thread-item >p { font-size:13px; }
 .codex-reply { padding:13px; }
 .discussion-head h2 { font-size:21px; }
 .plan-pane { grid-column:1; grid-row:4; border-top:1px solid #e3e9dc; }
}
/* Keep the actual-size preview readable as well as the portfolio thumbnail. */
.thread-item > p { font-size:14px; color:#3e4e3e; }
.codex-reply .markdown { font-size:13px; color:#42573a; }
.message-meta strong { font-size:12px; }
.message-meta time { font-size:10px; color:#75816f; }
.message-meta span { font-size:10px; color:#607b50; }
.member strong { font-size:12px; }
.member small,.sidebar small { font-size:10px; color:#6d7b64; }
.section-label { font-size:10px; color:#6a7b60; }
.plan-markdown { font-size:12px; color:#607153; }
.plan-markdown h2 { font-size:14px; color:#526b40; }
.change-summary { font-size:11px; color:#5c7347; }
.eyebrow { color:#6f8063; font-size:10px; }
@media(max-width:640px) { .member strong { font-size:10px; } .section-label { font-size:9px; } }
.search,.search:focus-within { width:120px; }
.search svg { flex-shrink:0; }
.search input,.search:focus-within input { width:100%; opacity:1; font-size:11px; }
@media(max-width:640px) { .search,.search:focus-within { width:95px; } }
@media(max-width:1000px) {
 .shell { display:grid; }
 .discussion { order:initial; }
 .plan-pane { order:initial; }
}
@media(max-width:640px) {
 .shell { display:grid; }
 .brand { width:auto; }
 .brand > span:not(.brand-mark) { display:inline; }
 .security { display:flex; }
}

/* Keep capture metadata in the portfolio notes, outside the product UI. */
.preview-note,.security{display:none!important}
.shell{height:calc(100dvh - 36px);margin-top:18px}
@media(max-width:1000px){.shell{height:auto;min-height:calc(100dvh - 36px)}}
@media(max-width:640px){.topbar{grid-template-columns:1fr}.shell{margin-top:10px;min-height:calc(100dvh - 20px)}}
.room-title span { display:none; }
.digest { font-size:0; }
.digest svg { width:14px; height:14px; }
.digest::after { content:'Checking plan'; font-size:10px; }
.digest.verified::after { content:'Verified plan'; }
.digest.mismatch::after { content:'Plan verification failed'; color:#8b3e35; }
