:root{color-scheme:light;--bg:#f7f7f2;--surface:#fff;--ink:#202723;--muted:#7a817b;--line:#e7ebe4;--green:#2d6650;--green-soft:#eaf4ed;--orange:#a86b38;--orange-soft:#fcf3e9;--shadow:0 9px 30px rgba(35,43,36,.025);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}svg{height:20px;width:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #84b9a0;outline-offset:3px}button:disabled{opacity:.48;cursor:not-allowed}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}.app{min-height:100vh}.sidebar{width:252px;background:#fff;position:fixed;left:0;top:0;bottom:0;display:flex;flex-direction:column;padding:30px 18px;border-right:1px solid var(--line);z-index:4}.brand{display:flex;align-items:center;gap:13px;padding:0 12px 44px}.brand strong{display:block;font-weight:750;font-size:23px;letter-spacing:-.8px}.brand small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.brand-mark{height:43px;width:43px;display:grid;place-items:center;background:#253f35;border-radius:14px;color:#e8d6a7;box-shadow:0 5px 12px #314c3724}.brand-mark-glyph{font-weight:600;font-size:26px;font-family:Georgia,serif;line-height:1;transform:translateY(-1px)}.brand-mark.small{width:34px;height:34px;border-radius:11px}.brand-mark.small .brand-mark-glyph{font-size:22px}.nav-label{font-size:10px;color:#a1a9a2;font-weight:750;letter-spacing:1.2px;margin:0 15px 16px}.side-nav{display:flex;flex-direction:column;gap:4px}.nav-btn{border:0;background:transparent;display:flex;align-items:center;gap:14px;width:100%;border-radius:11px;text-align:left;padding:13px 15px;color:#5d665f;font-weight:570}.nav-btn:hover{background:#f4f6f2}.nav-btn.active{color:#275b46;background:#edf4ee}.nav-btn svg{width:19px;height:19px}.nav-count{margin-left:auto;color:#8b968e;font-size:12px}.side-bottom{margin-top:auto;padding:16px 5px 0}.mini-card{display:flex;gap:10px;background:#f3f7f3;padding:14px 10px;border-radius:12px;color:#426250}.mini-card svg{width:18px;height:18px}.mini-card strong{display:block;font-size:12px}.mini-card span{display:block;margin-top:4px;color:#859189;font-size:11px;line-height:1.4}.version{font-size:11px;color:#a2aaa3;text-align:center;margin:23px 0 0}.main{margin-left:252px;padding:52px clamp(30px,4.8vw,78px) 35px;max-width:1660px}.mobile-header,.bottom-nav{display:none}.page{display:none;animation:fade-in .16s ease}.page.active{display:block}@keyframes fade-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:33px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#77917f;font-weight:800;margin-bottom:12px}.page-heading h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-2.1px;font-size:clamp(38px,4.4vw,53px);line-height:1.06;margin-bottom:13px}.accent-dot{color:#be8f56}.heading-sub{font-size:14px;line-height:1.5;color:#818a82;margin-bottom:0}.date-pill{white-space:nowrap;border:1px solid var(--line);background:#fff;padding:11px 15px;font-size:12px;color:#647568;border-radius:99px;margin-top:22px}.editor-layout{display:grid;grid-template-columns:minmax(0,720px) minmax(220px,280px);gap:25px;align-items:start}.editor{min-width:0}.form-card,.settings-card,.insight-card{background:#fff;border:1px solid #e7ebe4;border-radius:19px;box-shadow:var(--shadow)}.form-card{padding:27px 29px;margin-bottom:14px}.step-heading{display:flex;align-items:flex-start;gap:15px;margin-bottom:23px}.step-number{display:grid;place-items:center;flex-shrink:0;height:32px;width:32px;border-radius:10px;background:#eff3ef;color:#607566;font-size:11px;font-weight:800}.step-heading h2{font-size:19px;font-weight:700;letter-spacing:-.4px;margin-bottom:5px}.step-heading p{color:#939b93;font-size:12.5px;margin-bottom:0;line-height:1.5}.field{margin-top:21px}.field-label{display:block;color:#536058;font-size:12px;font-weight:750;margin-bottom:10px}.field-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.field-head .field-label{margin-bottom:10px}.form-card textarea{display:block;width:100%;border:1px solid #e5eae2;border-radius:12px;resize:vertical;background:#fbfcfa;color:#2a342d;padding:14px 15px;min-height:72px;line-height:1.6;font-size:14px;outline-offset:2px}.form-card textarea::placeholder{color:#afb7af}.form-card textarea:focus{background:white;border-color:#a6c0ad}.thought-card textarea{font-size:15px;min-height:112px}.below-input{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.quiet-hint,.small-note{font-size:11.5px;color:#9ba49c;line-height:1.6;margin:0}.text-action{display:inline-flex;align-items:center;gap:5px;background:transparent;border:0;color:var(--green);font-weight:740;font-size:12px;padding:4px 0}.text-action svg{height:16px;width:16px}.text-action:hover{text-decoration:underline}.ego-card{border-top:3px solid #f0d9c0}.spirit-card{border-top:3px solid #b9d7c2}.ego-num{background:#fbefe2;color:#9b693d}.spirit-num{background:#eaf3ed;color:#356d4d}.result-num{background:#f0f1f6;color:#606b82}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #e3e8e0;background:#fafbf8;border-radius:8px;padding:8px 11px;font-size:12px;color:#657269;font-weight:550;transition:background .15s,border-color .15s}.chip:hover{border-color:#a5b2a4}.chip:active{transform:scale(.98)}.chip.active-ego{background:#fcf0e4;border-color:#ddbb98;color:#996037}.chip.active-spirit{background:#eaf5ed;border-color:#a2cbb1;color:#266046}.small-action{font-size:11px;margin-bottom:8px}.result-footnote{margin:12px 0 0;font-size:11.5px;color:#a0a69f}.form-actions{display:flex;gap:10px;margin:20px 0 30px;align-items:center}.primary-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #28543e;background:#2c6048;color:#fff;border-radius:11px;padding:14px 20px;font-size:13px;font-weight:720;min-height:48px}.primary-btn:hover{background:#214e39}.primary-btn svg,.secondary-btn svg{height:17px;width:17px}.secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #dfe6dd;background:#fff;color:#58655a;border-radius:11px;padding:13px 18px;font-size:13px;font-weight:640;min-height:46px}.secondary-btn:hover{background:#f2f6f2}.right-rail{display:flex;flex-direction:column;gap:16px}.quote-card{padding:30px 26px 27px;background:#284b3c;color:#fff;border-radius:19px}.quote-mark{font-family:Georgia,serif;font-size:57px;line-height:.65;color:#a1b9a2;height:44px}.quote-card p{font:italic 21px/1.4 Georgia,'Times New Roman',serif;letter-spacing:-.3px;margin-bottom:23px}.quote-card span{font-size:11px;color:#b3c9bb}.right-card{border:1px solid var(--line);border-radius:17px;background:#fff;padding:22px 21px}.right-card h3{font-size:14px;margin-bottom:12px}.right-card p{font-size:12px;line-height:1.7;color:#8e9990;margin:0}.rail-stat{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:9px 0;font-size:12px;color:#869087}.rail-stat strong{font-size:15px;color:#2d4536}.rail-link{margin-top:16px}.page-footer{text-align:center;margin-top:35px;color:#b3bbb2;font-size:10.5px}.edit-banner{background:#f4f8eb;border:1px solid #d6e7c6;border-radius:13px;padding:13px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.edit-banner strong{font-size:13px;display:block}.edit-banner span{font-size:11px;color:#7c8b76;display:block;margin-top:4px}.plain-btn{border:0;background:transparent;color:#4e6a43;font-size:12px;font-weight:700}.history-tools{max-width:970px;display:flex;gap:14px;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap}.search-wrap{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:11px 14px;flex:1;min-width:230px}.search-wrap svg{color:#a7afa8;width:18px;height:18px}.search-wrap input{outline:none;border:0;background:none;min-width:0;width:100%;font-size:13px;color:var(--ink)}.filters{display:flex;gap:5px;background:#eaece6;padding:4px;border-radius:12px}.filter{border:0;background:transparent;font-size:11.5px;color:#7e8a7e;border-radius:8px;padding:9px 12px;white-space:nowrap}.filter.active{background:#fff;box-shadow:0 1px 4px #384b3620;color:#365843;font-weight:750}.history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;max-width:970px;align-items:stretch}.entry-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px 21px;display:flex;flex-direction:column;min-height:184px;overflow-wrap:anywhere}.entry-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:13px}.entry-date{font-size:11px;color:#9aab9c}.entry-state{border-radius:60px;padding:5px 9px;font-size:10px;background:#fff3e6;color:#a06b34}.entry-state.done{background:#ebf5ed;color:#38704e}.entry-title{font-size:16px;line-height:1.45;margin-bottom:12px;font-weight:680;letter-spacing:-.2px;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.entry-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:15px}.entry-tag{font-size:10px;background:#f2f4f0;color:#718075;padding:5px 7px;border-radius:6px}.entry-tag.s{color:#396a50;background:#eef7ef}.entry-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:12px;border-top:1px solid #eef0ec;gap:12px}.entry-actions{display:flex;align-items:center;gap:12px}.entry-actions button{font-size:11px;background:none;border:0;color:#6c7b6d;padding:4px;display:flex;align-items:center;gap:5px}.entry-actions button.delete{color:#b17e78}.entry-actions svg{height:14px;width:14px}.entry-bottom .hint{font-size:10px;color:#a5b1a6}.empty-state{border:1px dashed #cbd7c9;background:#fff;border-radius:18px;padding:55px 25px;grid-column:1/-1;text-align:center}.empty-state .empty-icon{width:52px;height:52px;border-radius:17px;background:#eef5ee;color:#4b7d5e;display:grid;place-items:center;margin:0 auto 15px}.empty-state h3{margin:0 0 7px}.empty-state p{font-size:13px;line-height:1.5;color:#93a092;margin-bottom:17px}.stats-grid{max-width:1000px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:15px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:24px}.stat-card span{display:block;font-size:12px;color:#738477}.stat-card strong{display:block;font-size:39px;font-weight:650;letter-spacing:-2px;margin:12px 0 5px;color:#30563f}.stat-card small{font-size:11px;color:#a6b0a6}.insight-grid{max-width:1000px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.insight-card{padding:25px;min-height:240px}.insight-card h2{font-size:17px;margin-bottom:7px}.insight-card>p{color:#a0aba0;font-size:12px;margin-bottom:25px}.bars{display:flex;flex-direction:column;gap:15px}.bar-head{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#596b5d;margin-bottom:7px}.bar-head strong{font-weight:650}.bar-track{height:7px;background:#f0f2ed;border-radius:8px;overflow:hidden}.bar-fill{height:100%;background:#caa578;border-radius:8px}.spirit-fill{background:#7eaf8a}.chart-empty{font-size:12px;color:#abb5ab;line-height:1.6}.insight-note{max-width:1000px;display:flex;gap:11px;margin-top:16px;border-radius:12px;background:#edf2eb;padding:15px 18px;color:#69806c}.insight-note svg{width:17px;height:17px}.insight-note p{font-size:11px;line-height:1.6;margin:0}.settings-stack{max-width:940px;display:flex;flex-direction:column;gap:15px}.settings-card{padding:26px 29px}.settings-heading{display:flex;justify-content:space-between;gap:15px}.settings-card h2{font-size:18px;margin-bottom:8px}.settings-card p{font-size:12.5px;line-height:1.65;color:#879389;margin-bottom:15px}.settings-card h3{font-size:12px;margin:18px 0 12px}.custom-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.add-line{display:flex;gap:8px}.add-line input{border:1px solid var(--line);background:#fbfcfa;border-radius:10px;padding:12px 13px;min-width:0;width:100%;font-size:13px}.square-btn{border:0;background:#315f48;color:white;border-radius:10px;width:43px;display:grid;place-items:center}.custom-list{margin-top:11px;display:flex;flex-wrap:wrap;gap:7px;min-height:22px}.custom-item{display:inline-flex;align-items:center;gap:6px;border:1px solid #dfe8dc;border-radius:7px;padding:6px 8px;font-size:11.5px;color:#5f7261;background:#f9fbf8}.custom-item button{border:0;color:#9daba0;background:none;display:flex;padding:0}.custom-item svg{height:13px;width:13px}.heading-icon{color:#6d9278}.backup-actions{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}.settings-card .small-note{margin-top:8px;font-size:11px}.update-line{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#748678;font-size:12px}.small-btn{min-height:37px;padding:9px 13px;font-size:11.5px}.danger-zone{border-color:#f0e3df}.danger-zone h2{color:#96564b}.danger-btn{border:1px solid #ebcbc7;background:#fff8f7;color:#a15e51;display:inline-flex;gap:8px;align-items:center;border-radius:10px;padding:10px 14px;font-size:12px;font-weight:650}.danger-btn svg{width:16px;height:16px}.toast{position:fixed;z-index:20;left:50%;bottom:24px;transform:translate(-50%,20px);padding:13px 19px;border-radius:12px;background:#263f32;color:#fff;box-shadow:0 13px 28px #1b392e33;font-size:13px;max-width:calc(100% - 32px);text-align:center;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}.toast.visible{opacity:1;transform:translate(-50%,0)}.toast.error{background:#924e45}.warning{border:1px solid #edc8bc;color:#8f5542;background:#fff3ef;padding:13px 17px;border-radius:11px;font-size:13px;line-height:1.5;margin-bottom:20px}
@media(max-width:1140px){.editor-layout{grid-template-columns:minmax(0,1fr)}.right-rail{display:none}.main{padding:42px 36px}.sidebar{width:220px}.main{margin-left:220px}}
@media(max-width:760px){.sidebar{display:none}.main{margin-left:0;padding:0 16px calc(91px + env(safe-area-inset-bottom))}.mobile-header{position:sticky;top:0;z-index:5;height:64px;background:#f7f7f2ec;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:flex;justify-content:space-between;align-items:center;margin:0 -16px 22px;padding:0 20px;border-bottom:1px solid #e7ebe4}.brand-mini{display:flex;align-items:center;gap:10px}.brand-mini strong{font-size:19px;letter-spacing:-.5px}.status-pill{font-size:10.5px;color:#6d8774;background:#eef5ec;border-radius:25px;padding:7px 10px}.page-heading{margin-bottom:23px;align-items:flex-start}.page-heading h1{font-size:40px;margin-bottom:9px}.page-heading .heading-sub{font-size:12.5px;max-width:350px}.eyebrow{font-size:9px;margin-bottom:9px}.date-pill{display:none}.form-card{padding:22px 18px;border-radius:16px;margin-bottom:12px}.step-heading{margin-bottom:19px;gap:12px}.step-heading h2{font-size:17px}.step-heading p{font-size:11.5px}.step-number{width:30px;height:30px}.chip{font-size:12px;padding:9px 10px}.field{margin-top:20px}.form-card textarea{font-size:16px;padding:12px 13px;min-height:75px}.thought-card textarea{font-size:16px}.below-input{align-items:flex-start;flex-direction:column}.form-actions{margin:16px 0 21px}.form-actions .primary-btn{flex:1}.bottom-nav{display:flex;position:fixed;z-index:7;bottom:0;left:0;right:0;height:calc(69px + env(safe-area-inset-bottom));padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid #e6ebe5;backdrop-filter:blur(19px);-webkit-backdrop-filter:blur(19px);justify-content:space-around}.bottom-btn{width:25%;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:3px;border:0;background:transparent;color:#99a49b;font-weight:650;font-size:10px}.bottom-btn svg{width:21px;height:21px}.bottom-btn.active{color:#356a4d}.bottom-btn.active svg{stroke-width:2.5}.page-footer{display:none}.history-tools{gap:10px}.search-wrap{flex-basis:100%}.filters{width:100%;justify-content:space-around;overflow-x:auto}.filter{padding:10px 11px}.history-list{grid-template-columns:1fr}.entry-card{min-height:155px;padding:18px}.desktop-new{display:none}.stats-grid{gap:7px}.stat-card{padding:16px 11px;border-radius:12px}.stat-card span{font-size:10px}.stat-card strong{font-size:31px;margin:9px 0 3px}.stat-card small{font-size:9px}.insight-grid,.custom-columns{grid-template-columns:1fr}.insight-card,.settings-card{padding:20px 18px}.toast{bottom:calc(86px + env(safe-area-inset-bottom));font-size:12px}.edit-banner{padding:12px}.edit-banner strong{font-size:12px}.edit-banner span{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
