:root{--bg:#f7f5f0;--paper:#fffefa;--ink:#242b22;--muted:#81877c;--olive:#515d3d;--olive-light:#e7eadf;--border:#e9e8e0;--accent:#c8ae72;--warm:#f8ebe2;--blue:#eaf0f4;--shadow:0 8px 30px rgba(51,60,44,.045);font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',sans-serif;font-synthesis:none;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a5b292;outline-offset:2px}a{color:var(--olive)}.app-shell{display:flex;min-height:100vh}.sidebar{width:252px;flex:0 0 252px;background:#f3f1eb;border-right:1px solid var(--border);padding:30px 17px 24px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 42px}.brand-mark{height:40px;width:40px;background:var(--olive);color:#fff;border-radius:14px;display:grid;place-items:center;font-size:30px}.brand strong{display:block;font-family:Georgia,serif;letter-spacing:1.1px;font-size:17px;white-space:nowrap}.brand small{font-family:Georgia,serif;font-style:italic;color:#949487;font-size:11px}.menu-label{color:#999d92;letter-spacing:1.7px;font-size:10px;font-weight:700;padding:0 13px 14px}.nav-menu{display:flex;flex-direction:column;gap:6px}.nav-item{border:0;background:transparent;text-align:left;padding:13px 14px;border-radius:11px;color:#61685b;display:flex;gap:12px;align-items:center;font-size:13px}.nav-item.active,.nav-item:hover{background:#e6e7dc;color:var(--olive);font-weight:700}.nav-icon{font-size:22px;font-weight:400;line-height:17px;width:22px;text-align:center}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding:25px 11px 0}.sidebar-bottom p{font-family:Georgia,serif;font-style:italic;font-size:13px;line-height:1.65;color:#798071}.sidebar-bottom small{color:#a8aa9e;font-size:10px}.privacy-chip{font-size:11px;font-weight:700;color:#55664c}.privacy-dot{display:inline-block;width:8px;height:8px;background:#82a47c;border-radius:50%;margin-right:4px}.main-area{min-width:0;flex:1}.topbar{height:82px;border-bottom:1px solid var(--border);padding:0 clamp(22px,4%,62px);display:flex;justify-content:space-between;align-items:center;background:rgba(255,254,250,.65)}.breadcrumb{color:#757d70;font-size:12px}.breadcrumb span{color:#bbc0b2;margin:0 10px}.top-actions{display:flex;align-items:center;gap:16px}.round-icon{border:1px solid var(--border);background:var(--paper);border-radius:50%;height:36px;width:36px;color:var(--olive);font-size:20px}.avatar{width:35px;height:35px;display:grid;place-items:center;background:#d8dfc6;border-radius:50%;color:#536047;font-size:11px;font-weight:800}.saved-indicator{color:#778876;font-size:11px;white-space:nowrap}.content{max-width:1380px;margin:0 auto;padding:36px clamp(20px,4%,64px) 80px}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:#9c9e8c;font-weight:700;margin-bottom:9px}.heading-row{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;margin-bottom:24px}h1,h2,h3,h4{font-family:'Playfair Display',Georgia,serif;font-weight:600;margin:0}h1{font-size:clamp(31px,3.8vw,42px);letter-spacing:-.9px}h2{font-size:25px}h3{font-size:20px}.lede{color:#858a81;font-size:13px;line-height:1.7;margin:9px 0 0}.primary{background:var(--olive);color:#fff;border:1px solid var(--olive);border-radius:10px;padding:11px 18px;font-size:12px;font-weight:700;min-height:42px;white-space:nowrap}.primary:hover{background:#38442d}.secondary{background:var(--paper);color:var(--olive);border:1px solid #dadfd1;border-radius:10px;padding:10px 15px;font-size:12px;font-weight:700;min-height:40px}.secondary:hover{background:var(--olive-light)}.ghost{border:0;background:transparent;color:#6b745f;padding:8px;border-radius:7px;font-size:12px}.ghost:hover{background:#ecefe6}.danger{color:#ac5a50}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:21px}.search{background:var(--paper);border:1px solid var(--border);border-radius:10px;padding:11px 13px;min-width:220px;flex:1;display:flex;gap:10px;align-items:center}.search input{width:100%;border:0;outline:0;background:transparent;font-size:12px}.search input:focus{outline:0}.select{border:1px solid var(--border);border-radius:10px;background:var(--paper);color:#737c69;padding:10px;font-size:12px;min-height:41px;max-width:170px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 23px}.stat{display:flex;align-items:center;gap:16px;background:var(--paper);border:1px solid #f0eee8;box-shadow:var(--shadow);border-radius:13px;padding:19px}.stat-ico{color:var(--olive);font-size:25px}.stat-number{font-family:Georgia,serif;font-size:27px;font-weight:600;line-height:1}.stat-label{color:#8c9288;font-size:11px;margin-top:5px}.section-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 14px}.section-row h2{font-size:20px}.section-hint{color:#9a9e96;font-size:11px}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.idea-card{background:var(--paper);border:1px solid var(--border);border-radius:13px;padding:20px 20px 17px;min-height:205px;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:transform .16s,border-color .16s}.idea-card:hover{transform:translateY(-3px);border-color:#d4d6c6}.card-top{display:flex;justify-content:space-between;align-items:center;gap:9px}.pill{border-radius:6px;background:#efeee8;color:#6b7563;font-weight:700;font-size:10px;padding:5px 8px;display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill.content{background:#ecefe7;color:#5c6952;padding:5px 8px}.pill.product{background:#f8eada;color:#977956}.pill.observation{background:#ebf0f4;color:#597183}.pill.other{background:#f0ebef;color:#79647a}.star{border:0;background:transparent;color:#b8bcae;font-size:22px;padding:0 3px}.star.active{color:#c7a43c}.card-title{font-family:Georgia,serif;font-size:18px;line-height:1.32;margin:13px 0 9px;overflow-wrap:anywhere}.card-desc{font-size:12px;color:#898f86;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-bottom{border-top:1px solid #f1efe9;margin-top:auto;padding-top:14px;display:flex;justify-content:space-between;gap:6px;font-size:10px;color:#9ca097}.tag-inline{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}.empty{padding:50px 20px;text-align:center;background:var(--paper);border:1px dashed #d8d9cb;border-radius:15px}.empty .symbol{font-size:35px;color:#9eac92}.empty p{color:var(--muted);font-size:13px}.notice{border-radius:11px;background:#edf0e8;border:1px solid #dfe8d9;color:#65775a;font-size:12px;line-height:1.6;padding:14px 17px;margin-bottom:18px}.warning{background:#fcf2e3;border-color:#f0e3cf;color:#846848}.two-col{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(275px,1fr);gap:20px}.panel{background:var(--paper);border:1px solid var(--border);border-radius:14px;padding:23px;box-shadow:var(--shadow);min-width:0}.detail-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.detail-title{font-size:31px;line-height:1.27;margin-bottom:9px}.meta{color:#92968d;font-size:11px;line-height:1.65}.body-text{white-space:pre-wrap;font-size:13px;line-height:1.85;color:#5c655a;overflow-wrap:anywhere}.mini-label{font-size:10px;font-weight:800;letter-spacing:1.4px;color:#92998d;text-transform:uppercase;margin:18px 0 8px}.tag{display:inline-flex;align-items:center;gap:4px;background:#eff1ea;color:#64735c;padding:6px 9px;border-radius:7px;font-size:11px;margin:2px 4px 2px 0}.timeline{margin:4px 0 0;padding:0 0 0 22px;list-style:none;border-left:1px solid #e2e3d8}.timeline li{position:relative;margin:0 0 24px;padding-left:14px}.timeline li:before{content:'';position:absolute;left:-28px;top:3px;border-radius:50%;height:10px;width:10px;background:#8b976d;border:3px solid #fff}.timeline time{font-size:10px;color:#a2a69d}.timeline strong{font-size:12px;color:#4e5b48;display:block;margin:5px 0}.timeline p{font-size:12px;line-height:1.6;color:#7e8878;margin:0;overflow-wrap:anywhere}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px;min-width:0}.field label{font-size:11px;font-weight:700;color:#626d59}.field input,.field select,.field textarea{border:1px solid #dddcd2;border-radius:9px;background:#fffefa;padding:12px;font-size:13px;color:var(--ink);width:100%;min-width:0}.field textarea{resize:vertical;min-height:90px;line-height:1.65}.field small{color:#92968d;font-size:10px}.modal-layer{position:fixed;inset:0;z-index:15;background:rgba(22,31,21,.43);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}.modal{background:var(--paper);border-radius:18px;max-height:min(92vh,900px);overflow:auto;width:min(650px,100%);padding:26px;box-shadow:0 30px 85px #202b2040}.modal-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:22px}.modal-header h2{font-size:27px}.modal-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:15px}.list-item{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--border);padding:14px 0}.list-item:last-child{border-bottom:0}.list-item strong{display:block;font-size:13px}.list-item p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.inline-link{border:0;background:transparent;color:var(--olive);font-size:12px;font-weight:700;padding:8px;text-align:left}.flow-steps{display:flex;flex-direction:column;gap:9px}.flow-step{display:flex;align-items:center;gap:13px;padding:13px;background:#f6f7f1;border:1px solid #e9ebdf;border-radius:9px;font-size:12px}.flow-step .number{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#e1e7d6;color:#526648;font-weight:800;flex:none}.output-editor{min-height:290px}.connection-item{padding:11px 12px;border:1px solid var(--border);border-radius:10px;margin-top:8px;display:flex;justify-content:space-between;align-items:center;gap:10px}.connection-item .title{font-size:12px;font-weight:700}.connection-item p{font-size:10px;color:var(--muted);margin:3px 0 0}.grid-project{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.project-card{background:var(--paper);border:1px solid var(--border);border-radius:12px;padding:18px}.project-card h3{font-size:18px}.project-card p{font-size:12px;color:var(--muted);line-height:1.65}.toast{position:fixed;right:24px;bottom:25px;background:#3f4f38;color:#fff;padding:12px 18px;border-radius:10px;font-size:12px;box-shadow:0 15px 40px #22301d39;z-index:25;max-width:340px}.mobile-brand,.mobile-tabs{display:none}.split-actions{display:flex;flex-wrap:wrap;gap:8px}.flex-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.count{font-size:11px;color:var(--muted)}.small-note{font-size:11px;color:#8d9188;line-height:1.6}.divider{height:1px;background:var(--border);margin:18px 0}.tab-strip{display:flex;gap:5px;border-bottom:1px solid var(--border);overflow:auto;margin:18px 0}.tab-button{background:none;border:0;padding:10px 13px;color:#879084;white-space:nowrap;font-size:12px}.tab-button.active{color:var(--olive);font-weight:800;border-bottom:2px solid var(--olive)}#toastRoot:empty{display:none}@media(max-width:1100px){.sidebar{width:220px;flex-basis:220px}.stats-grid{grid-template-columns:repeat(2,1fr)}.card-grid{grid-template-columns:repeat(2,1fr)}.content{padding-left:26px;padding-right:26px}}@media(max-width:750px){.sidebar{display:none}.mobile-brand{display:block;font-family:Georgia,serif;font-weight:700;letter-spacing:.7px;color:var(--olive)}.mobile-brand span{font-size:15px}.topbar{height:62px;padding:0 16px}.breadcrumb{display:none}.saved-indicator{font-size:10px}.content{padding:24px 15px 100px}.mobile-tabs{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fffefa;border-top:1px solid var(--border);z-index:10;justify-content:space-around;padding:6px 3px calc(8px + env(safe-area-inset-bottom))}.mobile-tabs button{border:0;background:transparent;font-size:10px;color:#8b9388;display:flex;align-items:center;flex-direction:column;gap:2px;padding:5px 2px;min-width:56px}.mobile-tabs button span{font-size:21px;line-height:22px}.mobile-tabs button.active{color:var(--olive);font-weight:800}.heading-row{flex-wrap:wrap;gap:15px}.heading-row .primary{width:100%}.toolbar{gap:7px}.search{min-width:100%;flex:1}.select{flex:1;min-width:calc(50% - 5px);max-width:none}.stats-grid{gap:9px}.stat{padding:12px;gap:9px}.stat-number{font-size:23px}.stat-label{font-size:10px}.card-grid,.two-col,.grid-project{grid-template-columns:1fr}.idea-card{min-height:170px}.form-grid{grid-template-columns:1fr}.modal-layer{padding:10px;align-items:center}.modal{padding:20px 16px;border-radius:14px}.modal-footer .primary,.modal-footer .secondary{flex:1}.detail-title{font-size:27px}.top-actions{gap:8px}.toast{bottom:80px;left:14px;right:14px;max-width:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* R0.1: readable sync status on desktop and phone */
.sync-trigger{padding:8px 12px;min-height:36px;border:1px solid #d8dfd2;background:#f0f3e9;color:#46563c;border-radius:14px;font-size:12px;font-weight:650;cursor:pointer;white-space:nowrap}
.sync-trigger[data-status=ok]{background:#e8f2e7;color:#356144;border-color:#cbe2cb}
.sync-trigger[data-status=error],.sync-trigger[data-status=warning]{background:#fff0e4;border-color:#eac8a6;color:#89501b}
.sync-trigger[data-status=offline]{background:#f3eee8;color:#755a46}
.sync-trigger:hover{filter:brightness(.96)}
.sync-form{display:flex;flex-direction:column;gap:12px}
.sync-check{display:flex;align-items:flex-start;gap:10px;padding:14px 0;cursor:pointer;line-height:1.5}
.sync-check input{margin-top:4px;min-width:18px;min-height:18px}
@media(max-width:760px){.sync-trigger{max-width:132px;overflow:hidden;text-overflow:ellipsis;padding:8px}.topbar .saved-indicator{display:none}}

/* R0.2 FG05 demo: persistent, accessible destination for rescued conflict copies. */
.conflict-entry{display:inline-flex;align-items:center;justify-content:center;gap:4px;border:1px solid #d8a76f;background:#fcf1e1;color:#805118;border-radius:12px;padding:8px 11px;min-height:36px;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap}
.conflict-entry[hidden]{display:none!important}
.conflict-entry:hover{background:#f7e6c8}
.conflict-saved{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#f8f0e2;border-color:#e4d1ac;color:#6f582e}
.conflict-saved p{margin:6px 0 0;line-height:1.65}
.conflict-saved .secondary{flex:none}
@media(max-width:950px){.conflict-saved{align-items:stretch;flex-direction:column}.conflict-entry{font-size:10px;padding:8px;max-width:158px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:430px){.conflict-entry{max-width:124px}.sync-trigger{max-width:112px}}
