@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Golos+Text:wght@400;500;600;700&family=Lora:wght@400;500;600&display=swap');
:root{--paper:#f6f5ef;--ink:#23332e;--muted:#748078;--orange:#dc633e;--line:#e4e6dd;--sage:#e5ecdf;--white:#fff;--peach:#f7e9df;--serif:'Lora',Georgia,serif;--sans:'Golos Text','DM Sans',system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.6 var(--sans)}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #edaa85;outline-offset:4px}button{border:0;background:none}.prototype{padding:9px 5vw;display:flex;gap:18px;align-items:center;background:#e8ece1;color:#526454;font-size:11px}.prototype span{font-size:9px;font-weight:700;letter-spacing:1.2px;white-space:nowrap}.prototype p{margin:0}.topbar{max-width:1260px;margin:auto;height:102px;padding:0 32px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;text-decoration:none;font:600 29px var(--serif);letter-spacing:-1.2px}.brand-mark{font:italic 600 26px var(--serif);width:36px;height:36px;background:var(--ink);border-radius:50%;color:var(--paper);text-align:center;line-height:31px;margin-right:12px}.brand-dot{color:var(--orange)}.profile-switch{display:flex;gap:10px;align-items:center;border:1px solid #dce0d5;border-radius:24px;background:#fafbf7;padding:6px 13px 6px 6px;font-size:12px}.avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#d9e2d2;font-size:11px;font-weight:600}.chevron{margin-left:13px;color:var(--muted)}.layout{max-width:1260px;margin:auto;padding:15px 32px 90px;display:grid;grid-template-columns:185px minmax(0,1fr);gap:46px}.sidebar{position:sticky;top:20px;align-self:start;padding-top:15px;min-height:650px;display:flex;flex-direction:column;justify-content:space-between}.nav{display:flex;width:100%;align-items:center;text-align:left;padding:11px 13px;margin-bottom:7px;gap:13px;border-radius:9px;font-size:12px;color:#7e8982}.nav span{font-size:20px}.nav.active{background:#e6ecdf;color:var(--ink);font-weight:600}.sidebar-bottom{border-top:1px solid var(--line);padding:20px 12px;font-size:11px;color:var(--muted)}.sidebar-bottom p{font-size:10px;line-height:1.9}.status-dot{display:inline-block;width:6px;height:6px;background:#789077;border-radius:50%;margin-right:5px}main{min-width:0}.eyebrow{letter-spacing:1.7px;text-transform:uppercase;font-size:9px;font-weight:600;color:var(--muted)}h1{font:400 44px/1.18 var(--serif);letter-spacing:-1.6px;margin:10px 0 17px;max-width:670px}h2{font:500 25px/1.3 var(--serif);letter-spacing:-.6px;margin:0}h3{font-size:14px;margin:0 0 7px;line-height:1.5}.lead{max-width:650px;color:var(--muted);font-size:13px;line-height:1.8}.hero{margin-bottom:25px}.hero-row{display:flex;align-items:center;justify-content:space-between;gap:20px}.link-button{color:var(--orange);font-size:11px;padding:8px 0;white-space:nowrap}.profile-strip{background:var(--sage);border-radius:13px;padding:17px 20px;margin:22px 0 33px;display:flex;gap:17px;align-items:center}.mini-compass{width:37px;height:37px;display:grid;place-items:center;border:1px solid #b8c8b2;border-radius:50%;font-size:22px;flex-shrink:0}.profile-strip strong{font-size:12px;font-weight:500}.profile-strip p{font-size:11px;color:#75836f;margin:3px 0 0}.profile-strip .link-button{margin-left:auto}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 19px}.section-head .count{border:1px solid var(--line);padding:3px 10px;border-radius:20px;font-size:10px;color:var(--muted)}.cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card{background:var(--white);border:1px solid #e3e5dd;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.card:hover{transform:translateY(-3px);box-shadow:0 7px 20px #24332d08}.card-art{height:176px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e9eee5}.card-art .tag{position:absolute;left:17px;top:15px;font-size:9px;letter-spacing:.3px;background:#ffffffa6;padding:3px 8px;border-radius:4px;z-index:1}.art-health{background:#e5ede1}.art-legal{background:#f0e9df}.art-sales{background:#e6ecec}.art-knowledge{background:#ede9f3}.art-education{background:#f3ede0}.art-trial{background:#e8eee7}.art-promise{background:#eee9e0}.art-caption{position:absolute;bottom:13px;right:16px;font-size:10px;color:#68786b}.flow-art{display:flex;gap:11px;align-items:center}.node{background:#fbfcf7;border:1px solid #d0d8c9;border-radius:11px;padding:12px 16px;box-shadow:0 5px 0 #d6dfd0;font-size:11px;line-height:1.5;text-align:center}.node.dark{background:var(--ink);border-color:var(--ink);color:white;box-shadow:0 5px 0 #b3c2ac}.flow-arrow{color:var(--orange);font-size:20px}.price{font:400 65px var(--serif);letter-spacing:-4px}.price small{font:12px var(--sans);letter-spacing:0}.doc-stack{width:94px;height:108px;background:#fefdf9;border:1px solid #d4cec1;transform:rotate(-8deg);border-radius:6px;box-shadow:12px 7px 0 #dbd5c9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.doc-line{width:56px;height:3px;background:#ddd8ce}.doc-line.short{width:35px}.doc-check{width:27px;height:27px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:16px}.card-body{padding:18px 20px 0}.card-kicker{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:9px}.company{font-size:11px;font-weight:600;color:var(--ink)}.card-title{font:500 20px/1.4 var(--serif);letter-spacing:-.4px;margin:0 0 10px}.card-summary{color:#778179;font-size:11px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 13px}.reason{border-top:1px solid var(--line);padding-top:12px;margin-bottom:10px;font-size:10px;color:#737f73}.reason span{color:#4b6351;font-weight:500}.card-actions{display:flex;align-items:center;gap:5px;margin-top:auto;padding:8px 17px 15px}.read-button{background:var(--paper);border:1px solid #e3e5dc;border-radius:6px;padding:7px 11px;font-size:10px;margin-right:auto}.reaction{padding:6px 8px;font-size:12px;border:1px solid transparent;border-radius:5px;line-height:1}.reaction.selected{background:#e6ecdf;border-color:#c7d5bd}.reaction.disliked{background:var(--peach);border-color:#e9c7b3}.reaction .label{font-size:9px;margin-left:3px}.explore-note{margin:25px 0 5px;padding:18px 20px;border:1px dashed #d6dece;border-radius:11px;display:flex;gap:14px}.explore-note span{font-size:22px;color:#879b7d}.explore-note p{margin:0;font-size:11px;color:var(--muted)}.explore-note strong{font-size:11px;color:#4c604c;font-weight:500}.bottom-nav{display:none}.pane{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin:20px 0}.pane-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.pill{display:inline-block;padding:4px 9px;border-radius:20px;background:var(--sage);font-size:9px;color:#60705e}.muted{color:var(--muted)}.small{font-size:11px}.field{margin:21px 0}.field label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}.field .hint{font-size:10px;color:var(--muted);margin:5px 0}input[type=text],textarea,select{display:block;width:100%;border:1px solid #dce2d4;border-radius:9px;padding:12px 14px;background:#fcfdf9;font-size:12px;color:var(--ink);line-height:1.7;resize:vertical}input[type=range]{accent-color:var(--orange);width:100%}textarea{min-height:94px}.weight{display:grid;grid-template-columns:1fr 110px 75px;gap:14px;align-items:center;margin:15px 0;font-size:12px}.weight output{text-align:right;font-size:10px;color:var(--muted)}.primary{background:var(--ink);color:white;padding:12px 20px;border-radius:8px;font-size:11px;display:inline-flex;align-items:center;justify-content:center;gap:10px}.secondary{background:#eef0e8;border:1px solid #dce1d4;color:var(--ink);padding:11px 18px;border-radius:8px;font-size:11px}.danger-link{color:#ac5a3f;font-size:11px}.action-row{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:25px}.learning-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.belief{padding:15px 0;border-bottom:1px solid var(--line)}.belief:last-child{border:0}.belief p{font-size:12px;line-height:1.8;margin:5px 0}.belief .origin{font-size:9px;color:var(--muted)}.metric-number{font:400 48px var(--serif);letter-spacing:-1px}.stats-row{display:flex;gap:40px}.stats-row p{font-size:10px;color:var(--muted);margin:0}.empty{padding:25px 0;color:var(--muted);font-size:12px;line-height:1.9}.event-line{padding:12px 0 12px 17px;border-left:1px solid #dce3d3;font-size:11px;position:relative}.event-line:before{position:absolute;left:-4px;top:20px;width:7px;height:7px;border-radius:50%;background:#c0ceb4;content:''}.event-line small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:25px}.profile-tile{background:white;border:1px solid var(--line);border-radius:13px;padding:24px}.profile-tile.current{border-color:#a1b394;box-shadow:0 0 0 1px #a1b394}.profile-tile h3{font:500 23px var(--serif);margin:14px 0 12px}.profile-tile p{color:var(--muted);font-size:11px;line-height:1.9;min-height:62px}.profile-tile.add{border-style:dashed;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:260px}.profile-tile.add .plus{font:300 42px var(--sans);color:var(--orange)}.topic-chip{display:inline-block;background:#eef2e8;border-radius:4px;padding:3px 7px;margin:3px 4px 0 0;font-size:9px;color:#697b60}.onboarding{max-width:650px;margin:0 auto}.step-indicator{display:flex;gap:8px;margin:15px 0 35px}.step-indicator span{height:3px;flex:1;background:#e3e7db;border-radius:5px}.step-indicator .done{background:var(--orange)}.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.option{border:1px solid #d8dfcf;border-radius:10px;background:white;text-align:left;font-size:11px;padding:16px}.option.chosen{background:#e7efdf;border-color:#8caa7c}.big-number{font:500 16px var(--serif);color:var(--orange);margin-right:10px}.search{position:relative;margin:25px 0 22px}.search input{padding-left:37px;background:white}.search span{position:absolute;left:14px;top:9px;font-size:19px;color:var(--muted)}.knowledge-item{display:flex;gap:18px;background:white;border:1px solid var(--line);border-radius:10px;padding:18px;margin:12px 0;text-align:left;width:100%}.knowledge-symbol{background:var(--sage);border-radius:8px;flex-shrink:0;width:48px;height:48px;display:grid;place-items:center;font-size:22px}.knowledge-item h3{font:500 18px var(--serif);margin:0 0 6px}.knowledge-item p{margin:0;color:var(--muted);font-size:11px}.modal-backdrop{position:fixed;inset:0;background:#17261a66;z-index:10;display:grid;place-items:center;padding:24px;backdrop-filter:blur(3px)}.modal{background:var(--paper);width:740px;max-width:100%;max-height:90vh;overflow:auto;border-radius:18px;padding:36px;position:relative}.modal .close{position:absolute;top:15px;right:17px;font-size:25px;z-index:2;color:var(--muted)}.modal h1{font-size:34px;margin-top:18px}.modal h3{font-family:var(--serif);font-size:21px;font-weight:500;margin:24px 0 10px}.modal p{font-size:12px;color:#607066;line-height:1.9}.source{background:#e9eee2;border-radius:10px;padding:17px 20px;margin:12px 0}.source blockquote{font-size:12px;margin:5px 0 12px;line-height:1.8;color:#53614e}.source a{font-size:10px;color:#75816f}.source small{display:block;font-size:9px;color:#7e8979}.mechanism-flow{display:flex;flex-direction:column;gap:15px;margin:20px 0}.mechanism-step{display:flex;align-items:center;gap:15px;padding:17px;background:#e7eddf;border-radius:9px;font-size:12px}.mechanism-step span{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;background:var(--ink);color:white;border-radius:50%;font-size:10px}.caveat{border-left:2px solid var(--orange);padding:4px 14px!important;margin:20px 0!important;font-size:11px!important}.toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:white;padding:11px 20px;border-radius:9px;font-size:11px;z-index:20;opacity:0;transition:.2s;pointer-events:none;max-width:90vw}.toast.show{opacity:1;transform:translate(-50%,0)}.reason-options{display:grid;gap:9px;margin:22px 0}.reason-options button{background:white;border:1px solid var(--line);border-radius:9px;padding:14px 16px;text-align:left;font-size:12px}.ask-box{background:var(--sage);border-radius:12px;padding:20px;margin:25px 0}.ask-box textarea{background:#f7faf3;min-height:70px}.ask-box h3{font-family:var(--serif);font-size:20px}.answer-box{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin-top:20px;line-height:1.9;font-size:12px}.hidden{display:none!important}.check-row{display:flex;gap:10px;align-items:start;font-size:12px;line-height:1.8}.check-row input{accent-color:var(--ink);margin-top:5px}.notice{background:var(--peach);color:#9b694e;font-size:11px;line-height:1.8;padding:14px 18px;border-radius:9px;margin:20px 0}.tag-row{margin-bottom:15px}
@media(max-width:980px){.layout{grid-template-columns:150px minmax(0,1fr);gap:25px}.topbar{padding:0 25px}.learning-grid{grid-template-columns:1fr}.hero-row{align-items:flex-start}.cards{gap:12px}.card-art{height:150px}.flow-art{gap:7px}.node{padding:10px;font-size:10px}.card-body{padding:17px 15px 0}.card-actions{padding:8px 12px 15px}.weight{grid-template-columns:1fr 95px 60px;gap:8px}.reaction .label{display:none}}
@media(max-width:700px){.prototype{padding:8px 20px;display:block;font-size:10px}.prototype p{margin:3px 0 0;font-size:10px}.prototype span{font-size:8px}.topbar{padding:0 20px;height:82px}.brand{font-size:24px}.brand-mark{width:30px;height:30px;font-size:23px;line-height:26px;margin-right:9px}.profile-switch{font-size:10px;max-width:165px;gap:7px;padding-right:9px}.profile-switch #current-profile-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:95px}.chevron{margin-left:0}.avatar{height:25px;width:25px}.layout{display:block;padding:12px 20px 110px}.sidebar{display:none}h1{font-size:36px;letter-spacing:-1.2px;max-width:430px}.hero-row{display:block}.hero-row>.link-button{margin-top:4px}.hero{margin-bottom:20px}.lead{font-size:12px}.profile-strip{padding:15px;gap:12px;margin-bottom:27px}.profile-strip strong{font-size:11px}.profile-strip p{font-size:10px}.profile-strip .link-button{font-size:10px}.mini-compass{width:31px;height:31px;font-size:20px}.section-head h2{font-size:23px}.cards{grid-template-columns:1fr;gap:20px}.card-art{height:183px}.node{padding:15px 21px;font-size:12px}.flow-art{gap:15px}.card-body{padding:20px 22px 0}.card-title{font-size:23px}.card-summary{font-size:12px;line-height:1.8}.card-kicker{font-size:10px}.company{font-size:12px}.reason{font-size:11px;line-height:1.9}.card-actions{padding:10px 19px 18px}.read-button{font-size:11px;padding:9px 13px}.reaction{font-size:16px;padding:8px 10px}.reaction .label{display:inline;font-size:10px}.art-caption{font-size:10px}.price{font-size:73px}.bottom-nav{display:flex;position:fixed;z-index:5;bottom:0;left:0;right:0;background:#f8f9f3f5;backdrop-filter:blur(15px);border-top:1px solid #dfe5d5;justify-content:space-around;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.bottom-nav button{font-size:9px;color:#97a28e;padding:0 10px;display:flex;flex-direction:column;gap:2px;align-items:center}.bottom-nav span{font-size:22px;line-height:1.4}.bottom-nav button.active{color:var(--ink)}.pane{padding:20px}.profile-grid{grid-template-columns:1fr}.profile-tile p{min-height:0}.profile-tile.add{min-height:180px}.modal-backdrop{padding:8px;align-items:end}.modal{padding:30px 24px;max-height:94vh;border-radius:19px 19px 10px 10px}.modal h1{font-size:30px}.modal p{font-size:12px}.source blockquote{font-size:11px}.profile-strip .link-button{margin-left:auto}.weight{grid-template-columns:1fr 90px 64px;font-size:11px}.stats-row{gap:38px}.onboarding h1{font-size:33px}.field label{font-size:12px}.option-grid{gap:9px}.option{font-size:11px;padding:14px 11px}.toast{bottom:91px;font-size:11px}.learning-grid{display:block}.action-row .primary,.action-row .secondary{padding:12px 15px}.knowledge-item{padding:15px;gap:13px}.knowledge-item h3{font-size:17px}.knowledge-symbol{width:39px;height:39px}.eyebrow{font-size:9px}.ask-box{padding:17px}.pane-head h2{font-size:23px}}

.reason{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.art-editing{background:#e8e9f0}.art-relational{background:#e5ede3}

.live-flow{height:auto;min-height:220px;padding:28px;display:flex;flex-direction:column;align-items:stretch;gap:6px}.live-flow>div{display:flex;align-items:center;gap:16px}.live-flow strong{font-weight:500;font-size:15px;line-height:1.5}.flow-number{font-size:12px;color:#7b8b7d;min-width:24px}.vertical-arrow{font-size:20px;color:#b57752;margin-left:6px}.source-art{height:auto;min-height:220px;padding:42px 26px 26px}.source-art blockquote{font-family:Lora,Georgia,serif;font-size:20px;line-height:1.45;margin:20px 0 0}.answer-text{white-space:pre-wrap;line-height:1.7}.entry-link{display:inline-block;text-decoration:none;margin:16px 0}.saving [type=submit]{opacity:.6;pointer-events:none}.live-status{background:#e8eee7}

[hidden]{display:none!important}

.landing .layout{grid-template-columns:minmax(0,1fr);max-width:1000px}.landing main{max-width:720px;padding-top:32px}
.control-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.control-stats button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:18px 12px;text-align:left}.control-stats strong{display:block;font:32px var(--serif)}.control-stats span{display:block;font-size:11px;color:var(--muted)}.delivery-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.delivery-fields select,#new-cadence{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fafbf7;color:var(--ink)}.pane-head{gap:12px}.answer-text{white-space:normal;overflow-wrap:anywhere}.answer-case{min-width:0}@media(max-width:600px){.control-stats{gap:7px}.control-stats button{padding:14px 9px}.control-stats strong{font-size:26px}.control-stats span{font-size:10px}.delivery-fields{gap:10px}.section-head{flex-wrap:wrap;gap:12px}}

/* Release06: compact, readable controls in Telegram's narrow webview. */
:root{--muted:#56675e;--orange:#b84b2b}
body{font-size:15px;line-height:1.55}
button,a,input,textarea,select{touch-action:manipulation}
button,.primary,.secondary,.link-button,summary{min-height:44px}
button{line-height:1.4}.primary,.secondary{font-size:14px;padding:12px 18px}
.link-button{display:inline-flex;align-items:center;font-size:13px;color:var(--orange)}
.topbar{height:76px}.profile-switch{padding:0 8px 0 6px;max-width:260px;gap:4px}
.profile-switch select{width:auto;min-width:120px;max-width:205px;border:0;background:transparent;padding:9px 25px 9px 5px;font-size:13px;min-height:44px}
.profile-switch .avatar{flex-shrink:0}.layout{padding-top:5px}
.compact-hero{margin-bottom:20px}.compact-hero h1{font-size:32px;line-height:1.2;margin:7px 0 9px;letter-spacing:-.8px}
.compact-hero .lead{margin:0;font-size:14px;line-height:1.5}
.compact-hero .eyebrow{font-size:10px;letter-spacing:1px}
.pane{margin:16px 0;padding:20px}.pane h2{font-size:24px}.pane p{font-size:14px;line-height:1.6}
.goal-pane>p{margin-bottom:10px}.topic-chip{font-size:12px;color:#425a44}
.small,.search-hint,.origin{font-size:12px}.lead,.muted,.knowledge-item p,.card-summary,.reason,.profile-tile p,.source blockquote,.source a{color:var(--muted)}
.field label{font-size:14px}.field .hint{font-size:12px}
input[type=text],input[type=search],textarea,select{font-size:16px;min-height:46px}
.search{margin:16px 0 4px;width:100%}
.search input{display:block;width:100%;min-width:0;box-sizing:border-box;border:1px solid #b5c1b1;border-radius:10px;padding:11px 14px 11px 42px;background:#fff;color:var(--ink);font-size:16px;line-height:1.5;-webkit-appearance:none;appearance:none}
.search span{top:50%;left:14px;transform:translateY(-50%);line-height:1;font-size:23px;pointer-events:none}
.search-hint{margin:0 0 12px;color:var(--muted);line-height:1.4}
.library-tabs{display:flex;gap:9px;margin:0;flex-wrap:wrap}.library-tabs button{font-size:13px;padding:10px 16px}
.knowledge-item{display:block;padding:0;overflow:hidden;margin:12px 0;border-color:#d5dccf}
.knowledge-open{display:flex;align-items:flex-start;gap:13px;text-align:left;padding:16px;width:100%;border-radius:10px;min-width:0}
.knowledge-copy{display:block;min-width:0}.knowledge-copy h3{font-size:20px;margin:0 0 6px}.knowledge-copy p{font-size:13px;line-height:1.55;margin:0 0 6px}.knowledge-copy .small{display:block;font-size:12px}
.knowledge-symbol{width:38px;height:38px;font-size:21px}
.save-control{display:block;margin:0 16px 8px auto;min-height:44px;padding:8px 12px;border-radius:8px;font-size:13px;color:#3e5746}
.save-control.selected{background:var(--sage)}.save-control:hover,.knowledge-open:hover{background:#f3f7ee}
.search-match,.match-label{display:block;font-size:12px;color:#53684d;margin-top:7px}.coverage-note{font-size:13px;line-height:1.55;border-left:2px solid #a8b49e;padding-left:12px;color:#50614f}
.empty{padding:20px;background:#eef2e8;border-radius:12px}.empty h3{font-size:18px;color:var(--ink)}.empty p{font-size:14px}.empty .link-button{margin-left:8px}
.saved-answer>h2{font-size:22px}.answer-text{font-size:14px;line-height:1.7}.answer-version{font-size:13px!important;background:#f4eddf;padding:12px;border-radius:8px;color:#6c4d30}
.answer-details{border-top:1px solid var(--line);margin-top:15px;padding-top:5px}.answer-details summary,.context-details summary{font-size:14px;font-weight:600;cursor:pointer;padding:11px 0;color:var(--ink);line-height:1.5}
.insight-action{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 18px}.project-grid{display:grid;gap:15px}.project-card{border:1px solid #cfdbc5;background:#f4f7ef;border-radius:11px;padding:17px}.project-card h3{font-family:var(--serif);font-size:23px;line-height:1.35;margin:12px 0}.project-card h4{font-size:14px;margin:17px 0 6px}.project-card .pill{font-size:11px}.project-card p{margin:7px 0!important;font-size:14px!important}.project-card .formatted-answer{font-size:14px}
.case-reference{display:inline;min-height:32px;border:0;border-bottom:1px solid #a6b89e;border-radius:0;background:transparent;color:#31543c;font-size:inherit;padding:0 3px;line-height:1.7;vertical-align:baseline;text-align:left}.case-reference:hover{background:var(--sage)}
.source h4{font-size:15px;margin:0 0 7px}.source a{display:inline-block;min-height:44px;padding:10px 0;font-size:13px;overflow-wrap:anywhere}.source blockquote{font-size:13px}.context-details h3{margin-top:24px}.context-details p{font-size:14px}.version{border-top:1px solid var(--line);padding:14px 0}.version>span{display:block;color:var(--muted);font-size:12px}
.read-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0}.modal p{font-size:14px;line-height:1.7}.modal h1{font-size:29px}.modal .close{min-height:44px;min-width:44px;top:8px;right:8px}.modal .caveat{font-size:13px!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){
 .topbar{padding:0 16px;height:66px}.brand{font-size:23px}.brand-mark{margin-right:7px}
 .profile-switch{max-width:190px;gap:1px}.profile-switch select{max-width:148px;min-width:90px;font-size:12px;padding-right:18px}
 .profile-switch .avatar{width:25px;height:25px}.layout{padding:4px 16px 105px}
 .compact-hero{margin-bottom:14px}.compact-hero h1{font-size:28px;margin:6px 0 7px}.compact-hero .lead{font-size:13px;line-height:1.5}.compact-hero .eyebrow{font-size:9px;letter-spacing:.8px}
 .pane{padding:17px;margin:14px 0}.pane h2{font-size:22px}.pane-head{margin-bottom:12px}
 .library-tabs{gap:8px}.library-tabs button{padding:9px 13px;font-size:13px}
 .search{margin-top:12px}.search-hint{font-size:11px}.knowledge-item{margin:10px 0}.knowledge-open{padding:14px;gap:11px}.knowledge-copy h3{font-size:19px}.knowledge-copy p{font-size:13px}.knowledge-copy .small{font-size:11px}.knowledge-symbol{width:31px;height:31px;font-size:19px}
 .bottom-nav{padding:5px 7px calc(5px + env(safe-area-inset-bottom))}.bottom-nav button{min-height:54px;font-size:12px;color:#59695f;padding:3px 10px}.bottom-nav span{font-size:22px}.bottom-nav button.active{color:#20372b;font-weight:600}
 .onboarding h1{font-size:29px;margin-top:8px}.step-indicator{margin:12px 0 22px}.option{min-height:52px;font-size:13px;padding:13px}.option-grid{gap:8px}.onboarding .lead{font-size:14px}.field{margin:18px 0}.field label{font-size:14px}.check-row{font-size:14px}.weight{font-size:13px;grid-template-columns:minmax(0,1fr) 90px 74px}.weight output{font-size:12px}.pill{font-size:11px}
 .modal-backdrop{padding:7px}.modal{padding:42px 20px 25px}.modal h1{font-size:27px}.project-card{padding:15px}.project-card h3{font-size:22px}.saved-answer>h2{font-size:21px}.toast{font-size:13px;line-height:1.5;bottom:87px}.profile-grid{margin-top:18px}.profile-tile{padding:19px}.profile-tile p{font-size:14px;line-height:1.6}.profile-tile h3{font-size:24px}
}
@media(max-width:380px){.brand{font-size:20px}.brand-mark{width:27px;height:27px;font-size:22px}.profile-switch .avatar{display:none}.profile-switch select{max-width:145px}.topbar{gap:10px}.weight{grid-template-columns:minmax(0,1fr) 85px 70px;gap:6px}.control-stats strong{font-size:24px}.bottom-nav button{padding:3px 6px}}

.case-reference{display:inline-flex;align-items:center;min-height:44px}.question-copy{font-size:14px;color:var(--muted);line-height:1.5}.project-sources{font-size:13px;margin-top:12px}

/* Dialog owns its viewport; only the content scrolls, so Close always remains visible. */
.modal-open{overflow:hidden}.modal-backdrop{grid-template-columns:minmax(0,1fr);justify-items:center}
.modal{width:min(740px,100%);min-width:0;max-width:100%;height:auto;max-height:90dvh;padding:0;overflow:hidden;display:flex;flex-direction:column}
.modal-head{flex:none;display:flex;justify-content:space-between;align-items:center;padding:8px 14px;border-bottom:1px solid var(--line);background:var(--paper);font-size:12px}
.modal .close{position:static;flex:none;font-size:14px;min-height:44px;min-width:90px;color:var(--ink);border-radius:8px;background:#e7ecdf}
.modal-content{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-width:0;padding:18px 28px 28px;overflow-wrap:anywhere;word-break:normal}
.modal-content>*{min-width:0;max-width:100%}.modal-content .link-button{white-space:normal}.modal-content blockquote{margin-inline:0;overflow-wrap:anywhere}.modal-content .source{min-width:0}.modal-content .read-tools>*{min-width:0}
.landing-example{margin-top:28px}.landing-example .live-flow{min-height:220px;border-radius:12px}.landing-example h2{margin:12px 0}.landing-example blockquote{margin:12px 0;padding-left:14px;border-left:2px solid var(--orange)}
@media(max-width:700px){.modal{max-height:94dvh;width:100%;border-radius:16px}.modal-content{padding:15px 18px 22px}.modal-content h1{font-size:26px}}

/* Optional topic refinement: literal user choices, no inferred classification. */
.goal-reminder{margin:12px 0;padding:10px 14px;border:1px solid var(--line);border-radius:10px;background:#eef2e8}.goal-reminder summary{font-size:14px;cursor:pointer;display:flex;align-items:center}.goal-reminder p{font-size:14px;line-height:1.6;margin:8px 0}.option.chosen{background:#e1edd8;border:2px solid #637f53;color:#213b26;font-weight:600}.modal-content{min-height:0}
