:root{color-scheme:dark;--bg:#100e0b;--paper:#f3eee3;--muted:#c9bdab;--faint:#9b8a70;--copper:#bf9870;--light:#edcc95;--line:#9d79564a;--panel:#181511ee;--sidebar:216px;--serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;isolation:isolate}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,summary:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--light);outline-offset:5px}button,select{min-height:44px}button{border:1px solid var(--line);border-radius:9px;background:#16130ed4;color:var(--paper);padding:10px 16px;line-height:1.4;transition:background .18s,border-color .18s,transform .18s}button:hover:not(:disabled){border-color:#bc946e;background:#3a2a1dba}button:active:not(:disabled){transform:translateY(1px)}svg{width:22px;height:22px;flex-shrink:0}a{color:var(--light)}p{line-height:1.65;color:var(--muted)}h1,h2,h3{font-family:var(--serif);font-weight:400}h2{font-size:30px;margin:12px 0 20px}h3{font-size:23px}label{display:block;line-height:1.5;margin:12px 0 7px}textarea{display:block;width:100%;resize:vertical;min-height:95px;padding:16px;color:var(--paper);border:1px solid var(--line);border-radius:10px;background:#100d09b8;line-height:1.65;outline-offset:3px}textarea::placeholder{color:#c3b6a16e}select{padding:9px 30px 9px 13px;background:#19140eda;color:var(--paper);border:1px solid var(--line);border-radius:8px}input[type=file]{font-size:14px;max-width:100%}input[type=file]::file-selector-button{background:#262018;color:var(--paper);border:1px solid var(--line);padding:11px 15px;border-radius:6px;margin-right:12px}input[type=checkbox]{accent-color:var(--light);width:18px;height:18px;flex-shrink:0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 ui-monospace,SFMono-Regular,monospace;color:var(--paper);background:#0f0c08ab;padding:20px;border:1px solid var(--line);border-radius:9px;max-height:48vh;overflow:auto}summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--muted);list-style:none}summary::-webkit-details-marker{display:none}summary::after{content:'+';float:right;color:var(--light);font-size:20px;line-height:22px}details[open]>summary::after{content:'−'}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;z-index:100;top:10px;left:230px;transform:translateY(-160%);padding:12px 20px;background:var(--paper);color:var(--bg)}.skip:focus{transform:none}[hidden]{display:none!important}.scene{position:fixed;inset:0 0 0 var(--sidebar);z-index:-3;background:#14110d url('/assets/sanctuary-1280.webp') right top/auto 100vh no-repeat;pointer-events:none}.scene-shade{position:fixed;inset:0 0 0 var(--sidebar);z-index:-2;background:linear-gradient(90deg,#100e0b5c 0%,#100e0b12 70%),linear-gradient(0deg,#100e0bf5 0%,#100e0b33 35%,transparent 70%);pointer-events:none}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);display:flex;flex-direction:column;border-right:1px solid #bd946056;background:linear-gradient(180deg,#18140eae,#0b0905f0);backdrop-filter:blur(18px);z-index:5}.brand{display:flex;flex-direction:column;align-items:center;gap:18px;padding:34px 18px 32px;text-decoration:none;color:var(--paper)}.brand>svg{width:64px;height:45px;stroke:var(--light);stroke-width:1.2;fill:none}.brand>span{font:15px var(--serif);letter-spacing:.34em;margin-left:.34em}.brand small{font-size:7px;letter-spacing:.18em;color:var(--faint);text-align:center}.sidebar nav{display:grid;gap:5px;padding-top:18px}.sidebar nav button{display:flex;align-items:center;gap:18px;text-align:left;border:0;border-radius:0;background:transparent;padding:17px 24px;font-size:13px;border-left:2px solid transparent;line-height:1.3;min-height:56px;color:#dfd4c2}.sidebar nav button svg{color:#c9ad80}.sidebar nav button.active{border-left-color:var(--light);background:linear-gradient(90deg,#c79d5d20,transparent);color:var(--paper)}.sidebar nav button.active svg{filter:drop-shadow(0 0 8px #ffb75570)}.sidebar-bottom{margin-top:auto;padding:32px 29px 42px}.fine-line{display:block;width:25px;height:1px;background:var(--faint);margin-bottom:22px}.sidebar-bottom p{font:15px/1.6 var(--serif);white-space:pre-line;color:var(--muted)}.sidebar-bottom small{display:block;white-space:pre-line;font:11px/1.8 var(--serif);color:var(--faint);margin-top:26px}.page{margin-left:var(--sidebar);min-height:100vh}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 40px;gap:20px}.topbar-motto{font:12px var(--serif);letter-spacing:.12em;color:#d6c3a1b0}.topbar-controls{display:flex;align-items:center;gap:13px}.topbar select{border:0;background:transparent;font-size:12px;padding-right:18px}.topbar button{background:transparent;border:0;display:flex;gap:7px;align-items:center;font-size:12px;color:#d3c1a4;padding:7px}.topbar button svg{width:18px;height:18px}.top-divider{height:21px;width:1px;background:var(--line)}.session-indicator{display:flex;align-items:center;gap:8px;color:#d5c7b0;font-size:11px}.session-indicator i{display:block;width:5px;height:5px;background:#e3c38b;border-radius:50%;box-shadow:0 0 10px #e5b16d90}main{max-width:1300px;margin:auto;padding:0 58px 40px}.opening{padding:clamp(45px,8vh,100px) 0 0;max-width:680px;min-height:330px}.eyebrow{font:9px/1.6 var(--serif);letter-spacing:.29em;color:#d4b990;margin-bottom:18px}h1{font-size:clamp(52px,5.7vw,88px);letter-spacing:-.045em;line-height:1.06;margin:0 0 18px;text-shadow:0 2px 40px #0006}.hero-subtitle{font:19px/1.6 var(--serif);white-space:pre-line;letter-spacing:.005em;color:#e6d9c4;margin:0}.workbench{max-width:1100px;margin:auto}.workbench>#composer{position:relative;margin-top:70px;isolation:isolate;padding:14px 24px 17px;border-radius:22px;border:1px solid #d6b88d9c;background:linear-gradient(125deg,#292117d1,#100e0bed 70%);box-shadow:inset 0 0 0 3px #e7c59113,inset 0 0 0 6px #110e0980,0 20px 70px #0005,0 0 25px #a5723e12;backdrop-filter:blur(22px)}#composer::before{content:'';position:absolute;z-index:-1;inset:-1px;border-radius:22px;background:linear-gradient(110deg,transparent 4%,#ffdf9c40 12%,transparent 18%,transparent 80%,#ffdf9c38 88%,transparent 95%);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;padding:1px;pointer-events:none;opacity:.8;animation:edge-breathe 10s ease-in-out infinite}#message{border:0;background:none;font:22px/1.5 var(--serif);padding:10px 3px 16px;min-height:100px;max-height:300px;resize:vertical}#message:focus-visible{outline-offset:1px;border-radius:4px}#message::placeholder{color:#cabb9a9e}.composer-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.composer-heading select{border:0;background:transparent;color:var(--muted);font-size:11px;padding:5px 20px 5px 0;min-height:35px;max-width:60%}.text-button{display:inline-flex;align-items:center;gap:6px;background:transparent;border:0;padding:5px;color:var(--muted);font-size:11px}.text-button svg{width:14px;height:14px}.mode-hint{font-size:11px;line-height:1.6;color:#c5b491b3;max-width:740px;margin:0 0 5px}.composer-bottom{display:flex;align-items:center;gap:18px;min-height:46px}.attach{display:flex;gap:9px;align-items:center;font-size:12px;color:#c5b49a;border:0;background:transparent;padding:8px 0}.attach svg{width:17px;height:17px}.correction-check{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--faint);margin:0}.correction-check input{width:13px;height:13px}.send-button{margin-left:auto;display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex-shrink:0;border-radius:50%;padding:10px;color:#20170e;background:linear-gradient(120deg,#f3d59f,#cba068);border:1px solid #f4d9a5;box-shadow:0 0 22px #e7b96921}.send-button:hover:not(:disabled){background:#f3d59f;color:#18120d;border-color:#fff1ce}.send-button svg{width:21px;height:21px}.prompt-rail{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:17px 0 12px}.prompt-rail button{min-height:35px;font-size:11px;border-radius:24px;padding:8px 15px;background:#15110bbb;color:#decaab;border-color:#c4a2746e;font-family:var(--serif);letter-spacing:.01em}.status-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 4px;font-size:10px;color:#b5a48b}.status-line p{font-size:10px;margin:0;line-height:1.4}.ai-dot{width:5px;height:5px;border:1px solid #b8a380;border-radius:50%}.ai-ready .ai-dot{background:#dfc48c;box-shadow:0 0 8px #dbad6b}.status-line #refresh-ai{font-size:10px;min-height:25px}.privacy-button{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:10px;padding:0;background:transparent;border:0;min-height:30px;color:#c9b89a}.privacy-button svg{width:12px;height:12px}.operation-status{font-size:12px;margin:5px 0 20px;min-height:0}.operation-status:empty{margin:0}.notice{border-left:1px solid #d0a672;padding:12px 18px;background:#1d17109c;font-size:13px;line-height:1.65;border-radius:0 8px 8px 0;margin:18px 0}.notice p{margin:4px 0}#conversation-section:has(#conversation:empty){display:none}#conversation-section{margin:30px 0 20px;padding:25px 30px;border:1px solid var(--line);border-radius:16px;background:#15120eea;backdrop-filter:blur(24px)}#conversation-title{font-size:27px}.turn{padding:19px 0;border-top:1px solid var(--line);overflow-wrap:anywhere;animation:arrive .25s ease-out}.turn>strong{font-size:10px;letter-spacing:.05em;color:var(--faint);font-weight:500}.turn>p{white-space:pre-wrap;font-size:15px;line-height:1.8;color:#e2d9cb;margin:12px 0}.turn[data-role=user]>p{color:#cebc9f}.turn button{font-size:11px;padding:8px 12px;min-height:32px}.tool-panel{padding:5px 18px;border:1px solid #ad895033;border-radius:10px;background:#120f0aa3;margin:12px 0;font-size:13px;backdrop-filter:blur(18px)}.tool-panel[open]{padding:12px 24px 24px;background:#18140ff5}.tool-panel>summary{font-family:var(--serif);font-size:15px;letter-spacing:.02em}.tool-panel>p{font-size:12px}.check{display:flex;gap:9px;align-items:flex-start;font-size:13px}.check input{margin-top:3px}.small{font-size:11px;line-height:1.7;color:var(--faint)}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.primary,.h-primary{background:linear-gradient(110deg,#edcf9d,#cba26f);color:#1c140c;border-color:#efd6a9}.primary:hover:not(:disabled),.h-primary:hover:not(:disabled){background:#f2d7a7;color:#1c140c}.source-entry,.library-entry{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:15px 0;border-top:1px solid var(--line)}.source-entry .check{margin:0}.source-entry>button{font-size:11px}.library-entry{flex-wrap:wrap;overflow-wrap:anywhere}.library-entry>span{max-width:65%;line-height:1.6}.journal-entry,.term-entry{padding:15px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.journal-entry>p,.term-entry>p{white-space:pre-wrap}.journal-entry>time{font-size:11px;color:var(--faint)}#terms-version{font-size:10px;overflow-wrap:anywhere}.keeping{border-top:1px solid var(--line);margin-top:25px;padding-top:10px}.keeping button{font-size:12px}#save-state{font-size:12px}footer{display:flex;align-items:center;justify-content:space-between;padding:22px 40px;border-top:1px solid var(--line);font-size:9px;letter-spacing:.1em;color:var(--faint);gap:15px;margin-top:35px}footer>span:first-child{letter-spacing:.3em;font:10px var(--serif)}footer>button{border:0;background:none;font-size:9px;min-height:25px;color:var(--faint);padding:0}.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:35px 10px 15px;margin:20px 0 0}.trust-strip>div{display:flex;gap:14px;align-items:center;min-width:0}.trust-strip>div>svg{width:40px;height:40px;padding:9px;border:1px solid #bd986a66;border-radius:50%;stroke:#cbb58f}.trust-strip>div>p{font-family:var(--serif);font-size:12px;line-height:1.7;margin:0}.trust-strip strong{font-family:system-ui;font-size:8px;letter-spacing:.16em;font-weight:500;display:block;color:#c5af89;margin-bottom:7px}.trust-strip span{display:block;color:#b9a88d}dialog{max-width:min(800px,calc(100% - 28px));width:800px;max-height:90dvh;background:linear-gradient(120deg,#252017,#14110c);color:var(--paper);border:1px solid #b69a71a0;border-radius:18px;padding:30px;box-shadow:0 30px 120px #000b;overscroll-behavior:contain}dialog::backdrop{background:#080604ca;backdrop-filter:blur(9px)}dialog h2{font-size:32px}dialog>p{font-size:13px}#privacy-dialog{max-width:610px}.has-conversation .opening{min-height:150px;padding-top:30px}.has-conversation .opening h1{font-size:48px}.has-conversation .hero-subtitle{font-size:16px}.has-conversation #composer{margin-top:30px}.has-conversation .trust-strip{display:none}.h-panel{margin-top:25px;padding:28px 32px;border:1px solid #c7a57375;border-radius:18px;background:linear-gradient(120deg,#211b13f5,#12100df7);box-shadow:0 20px 75px #0005;backdrop-filter:blur(25px)}.h-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap}.h-eyebrow{font-size:10px;letter-spacing:.18em;color:var(--faint);text-transform:uppercase}.h-flow-nav{display:flex;gap:7px;flex-wrap:wrap}.h-flow-nav button{font-size:12px;min-height:38px;padding:8px 12px}.h-flow-nav [aria-pressed=true]{border-color:#dbb985;color:var(--light);background:#4b321f6e}.h-intro,.h-note{font-size:13px;color:var(--muted);line-height:1.7}.h-step{font:12px var(--serif);letter-spacing:.05em;color:var(--faint);margin:16px 0}.h-work{border-top:1px solid var(--line);padding-top:18px}.h-field{margin:15px 0;display:block}.h-field>span{display:block;font-size:13px;line-height:1.5;margin-bottom:9px;color:#e2d4bc}.h-field textarea{font-size:15px;background:#0e0b07b0;min-height:100px}.h-field select{width:100%}.h-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:22px 0}.h-actions button{font-size:13px}.h-check{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.7;margin:12px 0}.h-check>input{margin:4px 0}.h-choice{border:1px solid var(--line);border-radius:10px;padding:16px;margin:18px 0}.h-choice legend{font-size:13px;padding:0 8px;color:var(--muted)}.h-details{padding:12px 0;border-top:1px solid var(--line)}.h-card{border:1px solid #9f7d4c4f;background:#4d351c14;border-radius:12px;padding:18px 20px;margin:15px 0}.h-card p{white-space:pre-wrap;font-size:14px}.h-timeline{list-style:none;margin:0;padding:0}.h-timeline>*{border-left:1px solid var(--line);padding:8px 18px}.h-exact{max-height:450px;font:15px/1.7 var(--serif);background:#0c0a07e3}.h-curtain{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;background:radial-gradient(ellipse at 50% 50%,#a17d3d18,transparent 70%)}.h-curtain>h2{font-size:38px;margin:16px 0}.h-curtain>p{max-width:480px;font-size:14px;line-height:1.8}.h-curtain button{padding:14px 25px;margin-top:18px}.h-outcomes{border-top:1px solid var(--line);display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;padding-top:18px}.h-outcomes button{font-size:11px;background:transparent}.h-status{font-size:12px;color:#dbc6a4;white-space:pre-wrap;line-height:1.6}.h-draft{border-left:2px solid #d9b579;padding:16px 20px;background:#83603a18;margin:20px 0}.h-draft pre{font-family:inherit;font-size:14px;background:none;border:0;padding:0}.h-draft p{white-space:pre-wrap;font-size:14px}.motion-off *{animation:none!important;transition:none!important}.motion-off .scene{transform:none}@keyframes edge-breathe{0%,100%{opacity:.35}50%{opacity:.8}}@keyframes arrive{from{opacity:.3;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(min-width:1800px){.scene{background-size:cover}.opening{min-height:380px}}@media(max-width:1200px){:root{--sidebar:185px}main{padding:0 35px 30px}.topbar{padding:0 30px}.opening h1{font-size:68px}.opening{padding-top:65px}.hero-subtitle{font-size:18px}.sidebar nav button{padding:15px 20px;gap:13px}.brand{padding:30px 12px}.brand>span{font-size:13px}.brand small{font-size:6px}.topbar-motto{display:none}.topbar{justify-content:flex-end}#composer{margin-top:50px}.scene{background-position:60% top}}@media(max-width:900px){:root{--sidebar:0px}.sidebar{position:relative;width:100%;height:auto;display:flex;flex-direction:row;align-items:center;border-right:0;border-bottom:1px solid var(--line);background:#100d08e8;backdrop-filter:blur(12px)}.brand{padding:18px 20px;flex-direction:row;gap:12px}.brand>svg{width:35px;height:28px}.brand>span{font-size:12px}.brand small,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin-left:auto;padding:0 14px 0 0;gap:2px}.sidebar nav button{font-size:11px;padding:13px 10px;min-height:44px;border-left:0;border-bottom:1px solid transparent;gap:8px}.sidebar nav button.active{border-bottom-color:var(--light);border-left:0}.sidebar nav button svg{width:16px;height:16px}.sidebar #nav-journal{display:none}.topbar{height:55px;padding:0 26px}.scene{background-position:65% 0;background-size:auto 100vh;opacity:.8}.scene-shade{background:linear-gradient(90deg,#100e0bc0,#100e0b50 75%),linear-gradient(0deg,#100e0b 0%,transparent 80%)}main{max-width:860px;padding:0 28px 24px}.opening{padding-top:40px;min-height:250px}.opening h1{font-size:66px}.workbench>#composer{margin-top:35px}.trust-strip{gap:15px;padding-top:26px}.trust-strip>div>svg{display:none}.skip{left:15px}.h-panel{padding:23px}}
@media(max-width:600px){.sidebar{position:relative;display:block}.brand{padding:17px 19px;width:max-content}.brand>span{font-size:11px;letter-spacing:.25em}.brand>svg{width:31px;height:25px}.sidebar nav{position:absolute;right:8px;top:9px;padding:0;gap:0}.sidebar nav button{width:43px;height:43px;padding:12px;min-height:43px;border-radius:50%}.sidebar nav button span{display:none}.sidebar nav button svg{width:19px;height:19px}.sidebar nav button.active{background:#b8985520;border:1px solid #9d795650}.sidebar #nav-journal,.sidebar #nav-decide{display:none}.topbar{height:46px;padding:0 19px}.topbar-controls{gap:10px}.topbar-controls #motion-toggle{font-size:10px}.topbar-controls #motion-toggle svg{display:none}.session-indicator{font-size:9px}.scene{background-image:url('/assets/sanctuary-640.webp');background-size:auto 90vh;background-position:68% 0;opacity:.65}.scene-shade{background:linear-gradient(90deg,#100e0be8,#100e0ba0 65%,#100e0b70),linear-gradient(0deg,#100e0b 0%,#100e0b30 85%)}main{padding:0 18px 20px}.opening{padding-top:25px;min-height:200px;max-width:330px}.opening .eyebrow{font-size:8px;margin:0 0 15px}.opening h1{font-size:clamp(39px,10.2vw,55px);margin-bottom:14px;letter-spacing:-.035em}.hero-subtitle{font-size:15px;line-height:1.6}.workbench>#composer{margin-top:22px;padding:12px 15px;border-radius:17px;backdrop-filter:blur(16px)}#composer::before{border-radius:17px}.mode-hint{font-size:10px;line-height:1.6;margin-bottom:8px}.composer-heading select{font-size:10px;max-width:68%;padding-right:5px}.composer-heading .text-button{font-size:0;gap:0}.composer-heading .text-button svg{width:18px;height:18px}.composer-bottom{gap:10px}.attach{font-size:10px;gap:5px}.attach svg{width:15px;height:15px}.correction-check{font-size:9px;gap:3px}.correction-check input{width:12px;height:12px}#message{font-size:19px;min-height:100px;padding:8px 0 12px}.send-button{width:40px;height:40px;min-height:40px}.prompt-rail{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:13px}.prompt-rail button{font-size:10px;line-height:1.45;min-height:39px;padding:7px 9px;border-radius:15px}.status-line{font-size:9px;padding:3px 0;column-gap:6px;row-gap:0}.status-line p{font-size:9px;max-width:75%}.status-line .privacy-button{font-size:9px;margin-left:0;width:100%;margin-top:4px}.status-line .text-button{font-size:9px}#conversation-section{padding:18px 17px;margin-top:20px;border-radius:12px}.turn>p{font-size:14px;line-height:1.8}#conversation-title{font-size:25px}.tool-panel{font-size:12px;padding:2px 14px}.tool-panel[open]{padding:10px 15px 18px}.tool-panel>summary{font-size:14px}.trust-strip{grid-template-columns:1fr;gap:18px;padding:25px 3px 5px}.trust-strip>div{gap:14px}.trust-strip>div>svg{display:block;width:34px;height:34px;padding:8px}.trust-strip p{font-size:12px}.trust-strip strong{font-size:7px;margin-bottom:3px}.trust-strip span{font-size:11px}.has-conversation .opening{min-height:120px;padding-top:22px}.has-conversation .opening h1{font-size:39px}.has-conversation .hero-subtitle{font-size:13px}.has-conversation #composer{margin-top:20px}.has-conversation #prompt-rail{display:none}.h-panel{padding:20px 16px;margin-top:15px;border-radius:13px}.h-header{gap:10px}.h-header h2{font-size:28px}.h-flow-nav{gap:5px}.h-flow-nav button{font-size:10px;padding:7px 9px;min-height:35px}.h-field textarea{font-size:14px}.h-card{padding:15px 13px}.h-actions button{font-size:12px}.h-curtain{min-height:260px;padding:20px 5px}.h-curtain>h2{font-size:31px}.h-curtain>p{font-size:13px}.h-outcomes button{font-size:10px}dialog{padding:22px 18px;border-radius:13px;max-height:90dvh}dialog h2{font-size:28px}dialog pre{font-size:11px;padding:13px}footer{padding:20px;flex-wrap:wrap;font-size:8px;gap:12px}footer>span:nth-child(2){display:none}.library-entry>span{max-width:100%}.row button{font-size:12px}.skip{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Structured Decisions uses the same material system, with a distinct comparison canvas. */
.d-panel{margin-top:25px;padding:28px 32px;border:1px solid #c7a57375;border-radius:18px;background:linear-gradient(120deg,#211b13f5,#12100df7);backdrop-filter:blur(25px);box-shadow:0 20px 75px #0005}.d-intro,.d-note{font-size:13px;line-height:1.7;color:var(--muted)}.d-phase-nav{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.d-phase-nav button{font-size:12px;min-height:38px;padding:8px 12px}.d-phase-nav [aria-current],.d-phase-nav [aria-pressed=true]{border-color:var(--light);color:var(--light)}.d-step{font:12px var(--serif);color:var(--faint)}.d-work{border-top:1px solid var(--line);padding-top:18px}.d-field{display:block;margin:17px 0}.d-field>span{display:block;font-size:13px;margin-bottom:8px;color:#dfcfb7}.d-field textarea{font-size:15px}.d-check{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.6}.d-details{border-top:1px solid var(--line);padding:12px 0}.d-card{border:1px solid #9f7d4c4f;background:#4d351c14;border-radius:12px;padding:18px;margin:15px 0}.d-card p{font-size:14px;white-space:pre-wrap}.d-exact{font:15px/1.7 var(--serif);max-height:500px}.d-timeline{list-style:none;padding:0}.d-timeline>*{border-left:1px solid var(--line);padding:10px 18px}.d-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.d-actions button{font-size:13px}.d-primary{background:linear-gradient(110deg,#edcf9d,#cba26f);color:#1c140c;border-color:#efd6a9}.d-status{font-size:12px;white-space:pre-wrap;color:#dbc6a4}.d-draft{border-left:2px solid #d9b579;padding:16px 20px;background:#83603a18;margin:20px 0}.d-draft p{font-size:14px;white-space:pre-wrap}.d-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;margin:20px 0}.d-table{border-collapse:collapse;width:100%;min-width:520px;font-size:13px}.d-table th,.d-table td{padding:16px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.d-table th{font:16px var(--serif);font-weight:400;color:#e6d9c3;background:#2b221658}.d-table input{width:75px;max-width:100%;background:#0c0906b5;border:1px solid var(--line);color:var(--paper);border-radius:6px;padding:9px;min-height:42px}.d-table th:last-child,.d-table td:last-child{border-right:0}.d-table tr:last-child td{border-bottom:0}.d-table tr:last-child{color:var(--light)}.d-table label{margin:0}.d-table .d-check{gap:5px}.d-table input[type=checkbox]{width:18px}.d-score-bar{height:3px;background:linear-gradient(90deg,#c49d6c,#f0d59a);min-width:2px;border-radius:3px}@media(max-width:600px){.d-panel{padding:20px 16px;margin-top:15px;border-radius:13px}.d-phase-nav{gap:5px}.d-phase-nav button{font-size:10px;padding:8px;min-height:36px}.d-table th,.d-table td{padding:13px}.d-actions button{font-size:12px}.d-field textarea{font-size:14px}.d-card{padding:15px 13px}}

.topbar-controls{padding:3px 10px;border:1px solid #d7b78530;border-radius:30px;background:#15100bdd;backdrop-filter:blur(15px)}.topbar select{color:var(--paper)}.topbar-controls button,.session-indicator{color:#e3d3b9}.h-proposal-fields{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.h-proposal-fields .h-field:nth-child(-n+2){grid-column:1/-1}.h-field input{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px;color:var(--paper);background:#0e0b07b0;min-height:44px}.h-proposal-fields .h-field textarea{min-height:85px}@media(max-width:600px){.h-proposal-fields{grid-template-columns:1fr}.h-proposal-fields .h-field{grid-column:1}.topbar-controls{padding:0 7px}}
.next-steps{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;font:12px/1.5 system-ui;color:var(--muted,#c7bca9)}.next-steps button{font:inherit;padding:7px 13px;border-radius:24px;background:transparent;border:1px solid #806742;color:inherit}.next-steps .dismiss-suggestions{border:0;padding:6px 10px}.research-panel form{display:grid;gap:12px}.research-panel textarea{width:100%;box-sizing:border-box}.research-panel ol{display:grid;gap:14px;padding-left:22px}.research-panel a{color:#ead1a1;text-underline-offset:4px;overflow-wrap:anywhere}.research-panel li small{display:block;opacity:.7;font:11px/1.7 system-ui;margin-top:4px}#research-result>p{white-space:pre-wrap;overflow-wrap:anywhere}.composer-bottom{flex-wrap:wrap}

.footer-actions{display:flex;gap:18px;align-items:center;flex-wrap:nowrap}.footer-actions button{border:0;background:transparent;padding:6px 0;white-space:nowrap;letter-spacing:0;font-size:11px;color:var(--muted)}#user-guide{width:min(850px,calc(100vw - 28px));max-height:88dvh}.guide-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.guide-header h2{margin:0 0 12px}.guide-header button{flex-shrink:0;font-size:11px}.guide-topics{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.guide-topics button{font-size:12px;min-height:42px;padding:8px 13px;border-radius:25px}.guide-topics button[aria-pressed=true]{border-color:var(--light);background:#94733b2b}.guide-body{padding:8px 0 22px}.guide-body ol{padding-left:24px;display:grid;gap:15px;color:var(--muted);line-height:1.8}.guide-body li{padding-left:8px}.guide-body>p{font-size:13px}.guide-downloads{border-top:1px solid var(--line);padding-top:14px}.guide-downloads p{font-size:12px}.guide-downloads a{display:inline-block;min-height:44px;padding:10px 0;margin-right:24px;text-underline-offset:5px}.research-summary code{font-size:.94em;background:#100e0b66;padding:2px 4px;border-radius:3px}@media(max-width:600px){.guide-header{display:block}.guide-header button{margin-bottom:8px}.guide-topics{gap:6px}.guide-topics button{font-size:11px}.guide-body ol{font-size:13px}.footer-actions{gap:15px}}
