:root {
  --paper:#f7f6f0; --white:#fffef8; --ink:#2d4438; --muted:#737c6f;
  --green:#285748; --green-soft:#e8eddf; --sage:#a3b398; --apricot:#e4b681;
  --apricot-soft:#f3e9d8; --line:#dfe3d5; --danger:#9a554c;
  --serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong",SimSun,serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.7;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button{border:0;background:none;color:inherit;cursor:pointer}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #92ad8f;outline-offset:4px}
svg.icon{width:21px;height:21px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
::selection{background:#d9e4ce;color:#284a38}
.boot-screen{height:100vh;display:grid;align-content:center;justify-items:center;gap:12px;color:var(--muted)}
.layout{min-height:100vh;padding-left:240px}

/* The desktop rail is the spine of the notebook. */
.sidebar{position:fixed;inset:0 auto 0 0;width:240px;padding:34px 23px 27px;background:#f0f2e8;border-right:1px solid #dfe4d4;display:flex;flex-direction:column;z-index:30}
.brand{display:flex;align-items:center;gap:11px;padding:4px 2px}
.brand-mark{width:44px;height:49px;display:grid;place-items:center;background:#e3ead9;border:1px solid #d9e2ce;border-radius:22px 22px 10px 10px}
.brand img{width:32px;height:32px}
.brand-name{font-family:var(--serif);font-size:23px;letter-spacing:3px;font-weight:600;line-height:1.6}
.brand-sub{font-size:7px;color:#7f8c78;letter-spacing:1.45px;margin-top:3px}
.nav-caption{display:flex;justify-content:space-between;align-items:center;margin:57px 12px 15px;color:#89927f;font-size:10px}
.nav-caption span{font-size:7px;letter-spacing:1.3px}
.nav{display:grid;gap:10px}
.nav-link{display:flex;gap:13px;align-items:center;padding:13px 12px;border:1px solid transparent;border-radius:15px;color:#6f7c67;transition:background .2s,border-color .2s}
.nav-link:hover{background:#e9eddf}
.nav-link.active{background:#e3eada;border-color:#dae2d0;color:var(--green)}
.nav-symbol{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}
.nav-symbol img{width:22px;height:22px}
.nav-link.active .nav-symbol{background:var(--green);box-shadow:0 3px 7px #28574813}
.nav-copy{display:flex;flex-direction:column;gap:1px;font-size:14px;letter-spacing:2px}
.nav-en{font-size:7px;color:#87937d;letter-spacing:1.25px}
.nav-indicator{width:5px;height:5px;margin-left:auto;border-radius:50%;background:var(--green);opacity:0}
.nav-link.active .nav-indicator{opacity:.65}
.sidebar-bottom{margin-top:auto;padding:32px 12px 0}
.sidebar-sprig{margin:0 0 15px 6px;width:44px;height:44px;color:#96aa87;transform:rotate(-17deg)}
.sidebar-sprig svg{width:41px;height:41px;stroke-width:.9}
.sidebar-bottom p{font-family:var(--serif);font-size:13px;line-height:2.1;color:#6f8066;margin:0 0 26px;letter-spacing:.5px}
.sidebar-note{border-top:1px solid #dce3d1;padding-top:17px;display:grid;gap:7px;color:#8b947e;font-size:9px;letter-spacing:.7px}
.sidebar-note span:last-child{color:#a0a98f;font-family:Georgia,serif;font-size:10px}
.topbar{height:84px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.topbar-label{color:#7e8875;font-size:11px;letter-spacing:1px;display:flex;align-items:center;gap:17px}
.topbar-label>span{color:#5f7559;font-size:11px}
.topbar-label i{height:12px;width:1px;background:#d7deca}
.topbar-actions{display:flex;gap:18px;align-items:center}
.mode-badge{display:flex;align-items:center;gap:7px;border:1px solid #dce3d1;background:#eff2e7;color:#657b5c;border-radius:30px;font-size:10px;padding:5px 11px}
.mode-dot{width:5px;height:5px;border-radius:50%;background:#8ca37a}
.avatar{width:32px;height:32px;display:grid;place-items:center;border:1px solid #d9e0cb;border-radius:50%;background:#e7ecdc;color:#647a58;font-family:var(--serif)}
.mobile-brand{display:none}
.content{max-width:1260px;margin:0 auto;padding:22px 48px 42px}

/* Illustrated opening pages. */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:32px;align-items:center;min-height:350px;margin:0 0 32px}
.hero-copy{padding:12px 0 8px}
.eyebrow{display:flex;align-items:center;gap:11px;color:#859278;font-size:9px;letter-spacing:2.5px;line-height:1.6}
.eyebrow:before{content:"";width:20px;height:1px;background:#a8b49a;flex-shrink:0}
.hero h1{font-family:var(--serif);font-weight:400;font-size:52px;line-height:1.45;letter-spacing:5px;margin:18px 0 16px;color:var(--green)}
.hero h1 em{font-style:normal;color:#5e7857;white-space:nowrap}
.hero p{color:var(--muted);font-size:13px;line-height:2;letter-spacing:.8px;margin:0}
.hero-note{display:flex;align-items:center;gap:10px;margin-top:23px;color:#8e9b7f;font-size:10px;letter-spacing:1px}
.hero-note>span{width:25px;height:1px;background:var(--apricot)}
.hero-visual{margin:0;position:relative;padding:0 0 11px}
.hero-art{width:350px;height:auto}
.hero-visual figcaption{text-align:center;color:#8b987e;font-family:var(--serif);font-size:10px;letter-spacing:2px;margin-top:-8px}
.writing-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:26px;align-items:start}
.journal-card{background:var(--white);border:1px solid #e1e4d7;border-radius:21px;overflow:hidden;box-shadow:0 5px 0 -3px #eeeee3,0 6px 0 -3px #dfe3d3}
.mood-area{padding:25px 28px 20px;border-bottom:1px solid #e7eadf}
.section-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#556a4c}
.section-caption-title{display:inline-flex;align-items:center;gap:10px}
.step-number{color:#b0b69d;font-family:Georgia,serif;font-size:13px;font-style:italic;letter-spacing:1px;flex-shrink:0}
.section-caption .subtle{font-size:10px;color:#919b84;letter-spacing:.6px;white-space:nowrap}
.mood-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-top:19px}
.mood-option{position:relative;display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 2px 13px;border:1px solid transparent;border-radius:13px;color:#7b876e;transition:background .2s,border-color .2s,transform .2s}
.mood-illustration{width:47px;height:47px;display:grid;place-items:center}
.mood-art{width:43px;height:43px;object-fit:contain}
.mood-option>span:last-of-type{font-size:11px;letter-spacing:.4px}
.mood-option:hover{background:#f4f5eb;transform:translateY(-2px)}
.mood-option.selected{background:#edf1e4;border-color:#d6e0c8;color:var(--green)}
.mood-selection{position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:#6f8c5e;opacity:0}
.mood-option.selected .mood-selection{opacity:1}
.composer{padding:26px 28px 22px;transition:background-color .2s}
.composer:focus-within{background-color:#fcfcf5}
.compose-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}
.compose-label{display:flex;align-items:center;gap:10px;color:#405e3c;font-family:var(--serif);font-size:18px;letter-spacing:.6px}
.compose-aside{color:#929d85;font-size:10px;white-space:nowrap}
.composer textarea{display:block;width:100%;min-height:164px;resize:vertical;border:0;border-radius:0;background-color:transparent;background-image:linear-gradient(to bottom,transparent 31px,#e7eadf 31px,#e7eadf 32px);background-size:100% 32px;color:var(--ink);font-size:14px;line-height:32px;padding:0 0 4px;margin-bottom:20px}
.composer textarea::placeholder{color:#a2ac95}
.composer textarea:focus-visible{outline:2px solid #bacbb0;outline-offset:6px}
.prompt-chips{display:flex;flex-wrap:wrap;gap:7px;padding:0 0 21px}
.prompt-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e8e8da;border-radius:6px;padding:5px 9px;color:#78856b;background:#f7f7ed;font-size:10px;transition:border-color .2s,background .2s}
.prompt-chip:before{content:"";width:3px;height:3px;background:#c4b28d;border-radius:50%}
.prompt-chip:hover{background:#edf2e3;border-color:#c5d2b7;color:#4e7042}
.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px solid #e7eadf}
.compose-hint{display:flex;align-items:center;gap:6px;color:#849177;font-size:10px}
.compose-hint svg{width:13px;height:13px}
.send-cluster{display:flex;align-items:center;gap:13px}
.char-count{color:#8f9b80;font-size:10px;font-variant-numeric:tabular-nums}
.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;min-height:43px;padding:10px 19px;border:1px solid var(--green);border-radius:11px;background:var(--green);color:#fffef5;font-size:12px;letter-spacing:.5px;white-space:nowrap;transition:background .2s,transform .2s}
.primary-button:hover{background:#214a3b;transform:translateY(-1px)}
.primary-button svg{width:16px;height:16px}
.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 14px;border:1px solid #d4dfc8;border-radius:9px;background:#f0f4e8;color:#526e44;font-size:12px;white-space:nowrap}
.secondary-button:hover{background:#e6eddb}
.secondary-button svg{width:15px;height:15px}
.text-button{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 0;color:#617b53;font-size:12px}
.text-button svg{width:15px;height:15px}
.danger-button{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px;color:var(--danger);font-size:12px}
.danger-button svg{width:15px;height:15px}
.no-wrap{white-space:nowrap}

/* A small paper note beside the writing area. */
.journal-aside{padding-top:9px}
.aside-card{position:relative;isolation:isolate;padding:27px 22px 28px;border:1px solid #dce3cd;border-radius:6px 18px 8px 15px;background:#e9eedf;box-shadow:3px 5px 0 #e3e8d780;margin:4px 0 26px}
.aside-card:before{content:"";position:absolute;z-index:2;top:-9px;left:34%;width:72px;height:20px;transform:rotate(-5deg);background:#e6cfaa99;border-left:2px solid #e0c9a18c;border-right:2px solid #e0c9a18c}
.aside-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#7b8e6c;font-size:10px}
.aside-caption span{color:#94a180;font-size:7px;letter-spacing:1px}
.quote-mark{display:block;color:#adbf98;font-family:Georgia,serif;font-size:71px;line-height:.9;margin-top:30px;height:40px}
.aside-card blockquote{position:relative;z-index:1;margin:0;font-family:var(--serif);font-size:17px;line-height:2.05;letter-spacing:.4px;color:#49643e}
.quote-foot{display:flex;align-items:center;gap:8px;color:#859674;font-size:10px;margin-top:28px}
.quote-foot:before{content:"";width:18px;height:1px;background:#b1bda1}
.aside-leaf{position:absolute;z-index:-1;right:-9px;bottom:17px;width:79px;height:99px;border:1px solid #ced9bf;border-radius:100% 0 100% 0;transform:rotate(-19deg)}
.aside-leaf:after{content:"";position:absolute;width:1px;height:78px;background:#ced9bf;left:41px;top:12px;transform:rotate(35deg)}
.small-note{padding:3px 8px}
.small-note-title{display:flex;align-items:center;gap:9px;margin-bottom:11px;color:#607a51;font-family:var(--serif);font-size:14px}
.small-note-title svg{width:18px;height:18px}
.small-note p{color:#89957b;font-size:11px;line-height:2;margin:0}
.recent-link{display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:6px 8px;margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}
.recent-link>span{grid-column:1/-1;color:#9aa58a;font-size:9px;letter-spacing:1px}
.recent-link strong{color:#657c56;font-size:11px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recent-link svg{width:16px;height:16px;color:#859777}
.page-foot{margin-top:30px;color:#87937b;font-size:10px;text-align:center;letter-spacing:.5px;line-height:1.9}
.page-foot button{color:#70865f;font-size:10px;text-decoration:underline;text-underline-offset:4px;padding:0 2px}

/* History: loose sheets with small weather marks. */
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}
.page-heading h1{font-family:var(--serif);color:var(--green);font-size:36px;font-weight:400;line-height:1.55;letter-spacing:3px;margin:13px 0 11px}
.page-heading p{color:var(--muted);font-size:13px;letter-spacing:.4px;line-height:1.9;margin:0}
.illustrated-heading{min-height:274px;margin-bottom:22px;padding:4px 0 15px}
.illustrated-heading h1{font-size:40px;line-height:1.5}
.page-art{width:260px;height:auto;margin-right:40px;flex-shrink:0}
.mobile-break{display:none}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:23px;margin-bottom:24px}
.search-field{display:flex;align-items:center;gap:9px;width:100%;max-width:320px;border:1px solid #dfe4d3;border-radius:10px;padding:11px 13px;color:#879776;background:#fffef7}
.search-field svg{width:17px;height:17px}
.search-field input{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);font-size:12px;outline:none}
.search-field:focus-within{border-color:#9fb58c}
.search-field input::placeholder{color:#939f85}
.history-actions{display:flex;align-items:center;gap:22px;flex-shrink:0}
.history-actions .primary-button{min-height:40px;padding:8px 15px}
.entry-count{color:#859577;font-size:11px;white-space:nowrap}
.history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.entry-card{position:relative;display:block;width:100%;min-height:231px;padding:20px 25px 18px;border:1px solid #e0e4d5;border-radius:7px 18px 18px 18px;background:var(--white);text-align:left;transition:transform .2s,border-color .2s,box-shadow .2s}
.entry-card:before{content:"";position:absolute;top:-1px;left:25px;width:22px;height:4px;background:#d5b58c;border-radius:0 0 2px 2px;opacity:.65}
.entry-card:hover{transform:translateY(-3px);border-color:#bacda7;box-shadow:0 8px 20px #3b542b09}
.entry-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:37px;font-size:10px;color:#8b987d;letter-spacing:.4px}
.entry-card .entry-weather{width:37px;height:37px}
.entry-card h2{font-family:var(--serif);color:#3e5d36;font-size:20px;font-weight:400;line-height:1.7;margin:13px 0 8px;overflow-wrap:anywhere}
.entry-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#7d8970;font-size:12px;line-height:1.9;margin:0}
.entry-card-bottom{display:flex;align-items:center;gap:10px;margin-top:22px;padding-top:13px;border-top:1px solid #eaecdf}
.mood-tag{color:#7e916f;font-size:10px}
.mood-tag:after{content:"";display:inline-block;height:9px;width:1px;background:#d8dfcc;margin-left:11px}
.status-tag{display:inline-flex;align-items:center;gap:5px;color:#9a825b;background:#f6eddd;padding:3px 8px;border-radius:20px;font-size:10px;white-space:nowrap}
.status-tag.complete{color:#6a8555;background:#edf3e5}
.entry-open{width:27px;height:27px;margin-left:auto;display:grid;place-items:center;border:1px solid #dfe7d4;border-radius:50%;color:#789169}
.entry-open svg{width:14px;height:14px}
.empty-state{grid-column:1/-1;text-align:center;padding:48px 25px 51px;border:1px dashed #d3ddc7;border-radius:16px;background:#f9faf2}
.empty-icon{width:62px;height:70px;margin:0 auto 16px;border:1px solid #d9e2ce;border-radius:32px 32px 12px 12px;display:grid;place-items:center;background:#e9efdd}
.empty-icon img,.empty-icon svg{width:29px;height:29px}
.empty-eyebrow{color:#9aa78a;font-size:8px;letter-spacing:2px}
.empty-state h2{font-family:var(--serif);color:#58764a;font-weight:400;font-size:23px;letter-spacing:2px;margin:12px 0 10px}
.empty-state p{color:#849376;font-size:12px;margin:0 0 22px}

/* Conversation and the saved paper keepsake. */
.view-entry{padding-top:27px}
.detail-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.entry-heading{margin-bottom:29px}
.entry-heading h1{font-size:33px}
.entry-heading p{max-width:620px;overflow-wrap:anywhere;font-size:12px}
.entry-heading-leaf{display:grid;place-items:center;width:60px;height:73px;border:1px solid #dfe5d3;border-radius:35px 35px 10px 10px;margin-right:14px;color:#a5b695;transform:rotate(7deg)}
.entry-heading-leaf svg{width:36px;height:36px;stroke-width:1}
.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 26px;border-bottom:1px solid #e4e9d9;background:#fbfcf4}
.chat-meta{display:flex;align-items:center;gap:9px;color:#7f9170;font-size:11px}
.chat-meta .mood-art{width:30px;height:30px}
.chat-meta i{font-style:normal;margin:0 7px;color:#b4bda7}
.chat-header .secondary-button{padding:7px 11px;min-height:35px;font-size:11px}
.chat-messages{display:grid;gap:25px;padding:26px 27px 3px}
.message{max-width:94%}
.message.user{max-width:88%;margin-left:auto}
.message-heading{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:#839574;font-size:10px}
.message.user .message-heading{justify-content:flex-end}
.message-heading img{width:23px;height:23px;border-radius:8px;padding:3px;background:#e9efdf}
.message-content{padding:15px 18px;border:1px solid #e7eadc;border-radius:4px 16px 16px 16px;background:#f5f6ed;color:#435e3b;font-size:13px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}
.user .message-content{background:#e9efdf;border-color:#e0e8d4;border-radius:16px 4px 16px 16px}
.source-tag{padding:0 6px;border:1px solid #dfe6d4;border-radius:10px;font-size:9px;color:#879b76}
.pending-reply{display:flex;align-items:center;gap:10px;color:#829574;font-size:12px;padding:12px 0}
.dots{display:inline-flex;gap:3px}
.dots i{width:4px;height:4px;border-radius:50%;background:#91a780;animation:pulse 1.2s infinite}
.dots i:nth-child(2){animation-delay:.2s}
.dots i:nth-child(3){animation-delay:.4s}
@keyframes pulse{0%,80%,100%{opacity:.3}40%{opacity:1}}
.chat-composer{margin-top:20px;border-top:1px solid #e8ebdc}
.chat-composer .compose-label{font-size:17px}
.chat-composer textarea{min-height:100px;margin-bottom:19px}
.saved-summary{position:relative;background:#f8f3e7;border:1px solid #e5deca;border-radius:4px 14px 8px 14px;padding:27px 25px 19px;margin:36px 27px 27px;box-shadow:3px 4px 0 #ede9db}
.summary-tape{position:absolute;top:-11px;left:50%;width:94px;height:22px;transform:translateX(-50%) rotate(-4deg);background:repeating-linear-gradient(90deg,#bfcca6b0 0,#bfcca6b0 7px,#cad4b5a8 7px,#cad4b5a8 9px);border-left:2px solid #c6d0b1;border-right:2px solid #c6d0b1}
.summary-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:17px;border-bottom:1px solid #e1dcc9}
.summary-label{font-family:var(--serif);font-size:20px;color:#4f6940;letter-spacing:2px}
.summary-date{font-size:9px;color:#9b9f83;letter-spacing:.6px;margin-top:5px}
.summary-seal{width:37px;height:43px;display:grid;place-content:center;border:1px solid #bca47f;border-radius:5px;color:#b2966d;font-family:var(--serif);font-size:13px;line-height:1.25;transform:rotate(8deg)}
.saved-summary p{font-size:13px;line-height:2.05;color:#6a7459;margin:19px 0;overflow-wrap:anywhere}
.saved-summary blockquote{position:relative;color:#456039;font-family:var(--serif);font-size:21px;line-height:1.85;margin:26px 0 20px;padding:7px 0 0 21px;overflow-wrap:anywhere}
.saved-summary blockquote>span{position:absolute;top:-13px;left:0;font-family:Georgia,serif;font-size:43px;color:#c2c4a2}
.summary-keepsake{display:flex;align-items:center;justify-content:flex-end;gap:9px;color:#9a9d7c;font-size:9px;letter-spacing:1px;margin:14px 0 19px}
.summary-keepsake svg{width:19px;height:19px;color:#a4b08b;stroke-width:1.2;transform:rotate(-14deg)}
.summary-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:17px;border-top:1px solid #e3ddc9}
.summary-actions .text-button{font-size:11px}
.summary-actions .secondary-button{background:#f0f0df;border-color:#d3dcc3;font-size:11px}

/* A quiet personal space with one clear data-management column. */
.settings-heading .page-art{width:245px;margin-right:56px}
.settings-content{max-width:900px}
.profile-overview{border:1px solid #dfe5d3;border-radius:20px;background:#fffef7;margin-bottom:30px;overflow:hidden}
.profile-card{display:flex;align-items:center;gap:18px;padding:25px 29px 23px;background:#edf2e4}
.profile-avatar{position:relative;width:58px;height:63px;display:grid;place-items:center;border:1px solid #cfdcc0;border-radius:31px 31px 13px 13px;background:#dfe9d3;color:#70865a;font-family:var(--serif);font-size:26px;flex-shrink:0}
.profile-avatar>span{position:absolute;width:9px;height:9px;background:#dcb17b;border:2px solid #edf2e4;border-radius:50%;bottom:3px;right:-3px}
.profile-eyebrow{color:#91a17e;font-size:8px;letter-spacing:1.6px}
.profile-card h2{font-family:var(--serif);font-size:21px;color:#4e6c3e;font-weight:400;letter-spacing:1px;margin:1px 0 2px}
.profile-card p{color:#859774;font-size:11px;margin:0}
.profile-sprig{margin-left:auto;margin-right:8px;color:#b7c7a6;transform:rotate(17deg)}
.profile-sprig svg{width:44px;height:44px;stroke-width:.85}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:23px 0}
.stat{text-align:center;border-right:1px solid #e4e9d8}
.stat:last-child{border:0}
.stat strong{display:block;font-size:30px;line-height:1.4;font-weight:400;font-family:Georgia,serif;color:#557b43;margin-bottom:5px}
.stat span{color:#8b9a7a;font-size:10px}
.settings-section-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;font-family:var(--serif);font-size:15px;font-weight:400;color:#667e55;letter-spacing:.5px;margin:27px 3px 12px}
.settings-section-caption>span{font-family:var(--sans);font-size:8px;letter-spacing:1.4px;color:#9aa78c}
.settings-group{border:1px solid #e0e6d5;border-radius:15px;background:#fffef8;margin-bottom:22px;overflow:hidden}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 25px;border-bottom:1px solid #e8ecde}
.setting-row:last-child{border-bottom:0}
.setting-icon{display:flex;align-items:flex-start;gap:14px;min-width:0}
.setting-icon>svg{width:21px;height:21px;color:#829d6e;margin-top:3px}
.setting-label{font-size:13px;color:#4d6940;margin-bottom:5px}
.setting-desc{max-width:550px;font-size:11px;color:#88977a;line-height:1.95}
.setting-row>button{flex-shrink:0}
.support-group{background:#f2f5e9;border-color:#dce6cf}
.support-group .setting-icon>svg{color:#9ca771}
.setting-description{font-size:10px;line-height:2;color:#8d9a7f;margin:22px 4px}

/* System states retain the same paper palette and readable controls. */
.loading-panel{display:grid;justify-items:center;gap:18px;padding:92px 25px;color:#839874;font-family:var(--serif);font-size:16px;letter-spacing:1px}
.loading-panel>img{width:33px;height:33px;opacity:.7}
.error-panel{margin:40px auto;max-width:680px;padding:34px;border:1px solid #e1d9c3;border-radius:16px;background:#fffaf0}
.error-panel h2{font-family:var(--serif);font-size:23px;font-weight:400;letter-spacing:1px;margin:0 0 14px}
.error-panel p{color:#8b816a;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.error-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.toast{position:fixed;bottom:32px;left:calc(50% + 120px);transform:translate(-50%,12px);max-width:min(430px,90vw);padding:13px 22px;border:1px solid #477252;border-radius:12px;background:#2b533f;color:#f9fbed;box-shadow:0 8px 30px #24453020;font-size:12px;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
dialog{width:calc(100% - 36px);max-width:460px;padding:31px;border:1px solid #dce4d0;border-radius:21px;background:var(--white);color:var(--ink);box-shadow:0 30px 100px #273d262b}
dialog::backdrop{background:#283b294d;backdrop-filter:blur(4px)}
dialog h2{font-family:var(--serif);color:#3e5e35;font-size:23px;font-weight:400;letter-spacing:1px;margin:0 0 15px}
dialog p{color:#7a8a6b;font-size:13px;line-height:2;white-space:pre-line}
.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-top:25px}
.button-danger{background:#a15b50;border-color:#a15b50}
.button-danger:hover{background:#8f4b43}

@media(min-width:1500px){
  .content{padding-top:31px}.hero{grid-template-columns:minmax(0,1fr) 380px;min-height:375px;margin-bottom:38px}.hero h1{font-size:57px}.hero-art{width:380px}.writing-grid{grid-template-columns:minmax(0,1fr) 258px;gap:28px}.composer textarea{min-height:196px}.chat-composer textarea{min-height:100px}
}
@media(max-width:1150px){
  .layout{padding-left:205px}.sidebar{width:205px;padding:32px 16px 24px}.brand-name{font-size:20px;letter-spacing:2px}.brand-sub{font-size:6px;letter-spacing:1.15px}.brand-mark{width:39px;height:45px}.brand img{width:29px;height:29px}.nav-caption{margin:50px 9px 14px}.nav-caption span{font-size:6px}.nav-link{padding:11px 8px;gap:10px}.nav-symbol{width:34px;height:36px}.sidebar-bottom{padding-left:8px;padding-right:8px}.topbar{padding:0 32px}.content{padding:22px 32px 38px}.hero{grid-template-columns:minmax(0,1fr) 285px;gap:18px;min-height:317px}.hero h1{font-size:46px;letter-spacing:3px}.hero-art{width:285px}.hero-note{margin-top:17px}.writing-grid{grid-template-columns:minmax(0,1fr) 205px;gap:20px}.mood-area,.composer{padding-left:23px;padding-right:23px}.aside-card{padding:25px 17px}.aside-card blockquote{font-size:15px}.aside-caption span{display:none}.compose-aside,.compose-hint>span{display:none}.page-art{width:230px;margin-right:5px}.settings-heading .page-art{width:225px;margin-right:8px}.illustrated-heading h1{font-size:36px}.toast{left:calc(50% + 102px)}
}
@media(max-width:1080px){
  .writing-grid{grid-template-columns:minmax(0,1fr)}.journal-aside{display:none}.compose-aside,.compose-hint>span{display:inline}.history-grid{gap:15px}.entry-card{padding:18px 20px}.history-actions{gap:14px}.topbar-label>span,.topbar-label>i{display:none}
}
@media(max-width:900px) and (min-width:801px){
  .hero{grid-template-columns:minmax(0,1fr) 240px;gap:10px}.hero h1{font-size:40px}.hero-art{width:240px}.hero p{font-size:12px}.eyebrow{font-size:8px;letter-spacing:1.5px}.history-grid{grid-template-columns:minmax(0,1fr)}.page-art,.settings-heading .page-art{width:200px}.illustrated-heading h1{font-size:32px}.entry-heading h1{font-size:29px}.entry-heading-leaf{display:none}
}

/* Mobile navigation floats above the page like a rounded bookmark. */
@media(max-width:800px){
  .layout{padding-left:0;padding-bottom:calc(104px + env(safe-area-inset-bottom))}
  .sidebar{inset:auto 18px calc(13px + env(safe-area-inset-bottom)) 18px;width:auto;height:70px;padding:6px;border:1px solid #dde4d1;border-radius:25px;background:#fffef7f2;box-shadow:0 8px 34px #354c2d17,0 2px 7px #354c2d08;backdrop-filter:blur(18px)}
  .sidebar .brand,.nav-caption,.sidebar-bottom{display:none}
  .nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;height:100%}
  .nav-link{flex-direction:column;justify-content:center;gap:0;padding:5px 7px;border:0;border-radius:19px;min-width:0}
  .nav-link:hover{background:#f0f4e8}.nav-link.active{background:var(--green);color:#fffef3;border:0}
  .nav-symbol{width:25px;height:25px;border-radius:0}.nav-symbol img{width:21px;height:21px}
  .nav-link.active .nav-symbol{background:transparent;box-shadow:none}.nav-copy{font-size:10px;letter-spacing:1.5px;line-height:1.7}
  .nav-en,.nav-indicator{display:none}
  .topbar{max-width:700px;margin:0 auto;height:77px;padding:0 25px;border:0}.topbar-label{display:none}
  .mobile-brand{display:flex;align-items:center;gap:9px;font-family:var(--serif);font-size:21px;letter-spacing:2px}.mobile-brand img{width:30px;height:30px}
  .mode-badge{font-size:9px;padding:4px 9px}.avatar{display:none}.content{max-width:700px;padding:13px 25px 25px}
  .hero{min-height:285px;grid-template-columns:minmax(0,1fr) 240px;gap:15px;margin-bottom:26px}.hero h1{font-size:43px}.hero-art{width:240px}.hero-note{margin-top:16px}.hero-visual{padding-bottom:0}.hero-visual figcaption{font-size:9px;letter-spacing:1px}
  .writing-grid{gap:0}.mood-area{padding:24px 25px 19px}.composer{padding:25px}
  .page-heading h1{font-size:34px}.illustrated-heading{min-height:240px;margin-bottom:17px}.page-art,.settings-heading .page-art{width:220px;margin-right:0}
  .history-toolbar{padding-top:21px}.history-grid{gap:15px}.toast{left:50%;bottom:calc(98px + env(safe-area-inset-bottom))}
  .view-entry{padding-top:8px}.entry-heading h1{font-size:31px}.entry-heading-leaf{width:48px;height:59px;margin-right:2px}.entry-heading-leaf svg{width:29px;height:29px}
}
@media(max-width:540px){
  .topbar{padding:0 22px;height:73px}.mobile-brand{font-size:20px}.content{padding:7px 22px 23px}
  .hero{grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);gap:0;min-height:251px;margin-bottom:19px}
  .hero-copy{padding:10px 0 12px}.eyebrow{font-size:7px;letter-spacing:1.35px;gap:7px}.eyebrow:before{width:13px}
  .hero h1{font-size:32px;letter-spacing:1px;line-height:1.55;margin:14px 0 12px}.hero p{font-size:11px;letter-spacing:.2px;line-height:1.95}
  .hero-note{font-size:8px;letter-spacing:.3px;margin-top:14px;gap:7px}.hero-note>span{width:13px}.hero-art{width:100%}
  .hero-visual{margin-right:-10px;padding-top:16px}.hero-visual figcaption{font-size:8px;letter-spacing:.5px;margin-top:-1px}
  .journal-card{border-radius:18px}.mood-area{padding:21px 17px 16px}
  .section-caption{font-size:12px;gap:8px}.section-caption-title{gap:8px}.section-caption .subtle{font-size:9px}.step-number{font-size:11px}
  .mood-options{gap:4px;margin-top:15px}.mood-option{padding:9px 1px 13px;gap:6px;border-radius:11px}.mood-illustration{width:40px;height:40px}.mood-art{width:36px;height:36px}.mood-option>span:last-of-type{font-size:10px;letter-spacing:0}
  .composer{padding:23px 20px 20px}.compose-heading{margin-bottom:16px}.compose-label{font-size:16px;gap:8px;letter-spacing:.3px}.compose-aside{display:none}
  .composer textarea{min-height:164px;font-size:14px;margin-bottom:17px}.prompt-chips{gap:6px;padding-bottom:19px}.prompt-chip{font-size:9px;padding:5px 7px;gap:4px}
  .composer-footer{gap:8px;padding-top:16px}.compose-hint{font-size:9px;gap:4px}.compose-hint>span{display:none}.compose-hint svg{width:14px;height:14px}
  .send-cluster{gap:11px}.char-count{font-size:9px}.primary-button{padding:9px 16px;font-size:12px;min-height:42px}
  .page-foot{font-size:9px;letter-spacing:0;margin-top:23px}.page-foot button{font-size:9px}
  .illustrated-heading{min-height:232px;gap:4px;margin-bottom:12px;padding-bottom:12px}.illustrated-heading>div{min-width:0;flex:1}
  .illustrated-heading h1{font-size:28px;line-height:1.6;letter-spacing:1.2px;margin:12px 0 10px}.illustrated-heading p{font-size:11px;line-height:1.95;letter-spacing:0}
  .page-art,.settings-heading .page-art{width:44%;max-width:175px;margin-right:-8px}.mobile-break{display:block}
  .history-toolbar{gap:11px;flex-wrap:wrap;padding-top:19px;margin-bottom:21px}.search-field{max-width:none;width:100%;padding:10px 12px}
  .history-actions{width:100%;justify-content:space-between;margin-top:2px}.history-actions .primary-button{font-size:11px;min-height:36px;padding:6px 12px}
  .history-grid{grid-template-columns:minmax(0,1fr);gap:17px}.entry-card{padding:19px 22px 17px;min-height:218px}.entry-card h2{font-size:20px;margin-top:10px}.entry-card-bottom{margin-top:18px}.entry-card p{font-size:12px}
  .empty-state{padding:35px 20px 40px}.empty-state h2{font-size:21px;letter-spacing:1px}.empty-state p{font-size:11px}
  .view-entry{padding-top:4px}.detail-top{margin-bottom:13px}.entry-heading{margin-bottom:22px}.entry-heading h1{font-size:25px;letter-spacing:1px;margin-top:12px}.entry-heading p{font-size:11px}.entry-heading-leaf{display:none}
  .chat-header{padding:15px 16px;gap:8px}.chat-meta{gap:5px;font-size:10px}.chat-meta .mood-art{width:25px;height:25px}.chat-meta i{margin:0 4px}
  .chat-header .secondary-button{font-size:10px;padding:7px 9px;gap:5px}.chat-header .secondary-button svg{width:13px;height:13px}
  .chat-messages{padding:21px 18px 0;gap:23px}.message{max-width:100%}.message.user{max-width:94%}.message-content{padding:13px 15px;font-size:13px}
  .chat-composer{margin-top:21px}.chat-composer .compose-label{font-size:15px}.chat-composer textarea{min-height:100px}
  .saved-summary{margin:33px 17px 23px;padding:25px 19px 17px}.summary-label{font-size:18px;letter-spacing:1px}.summary-date{font-size:8px;letter-spacing:0}.summary-seal{width:31px;height:37px;font-size:11px}
  .saved-summary p{font-size:12px;margin:17px 0}.saved-summary blockquote{font-size:19px;padding-left:15px;margin-top:23px}
  .summary-actions{gap:9px}.summary-actions .text-button{font-size:10px}.summary-actions .secondary-button{font-size:10px;padding:7px 10px}.summary-keepsake{font-size:8px}
  .profile-overview{border-radius:18px;margin-bottom:25px}.profile-card{padding:22px 20px;gap:15px}.profile-avatar{width:53px;height:58px;font-size:24px}
  .profile-card h2{font-size:20px}.profile-card p{font-size:10px}.profile-sprig{margin-right:0}.profile-sprig svg{width:31px;height:31px}
  .stats{padding:22px 0}.stat strong{font-size:27px}.stat span{font-size:9px}.settings-section-caption{font-size:14px;margin-top:25px}.settings-section-caption>span{font-size:6px;letter-spacing:1px}
  .setting-row{padding:20px 18px;gap:13px}.setting-icon{gap:10px}.setting-icon>svg{width:18px;height:18px}.setting-label{font-size:12px}.setting-desc{font-size:10px}
  .setting-row .text-button{font-size:11px}.setting-row .secondary-button{font-size:11px;padding:7px 11px}.setting-description{font-size:9px}
  .error-panel{margin:20px 0;padding:26px}.error-panel h2{font-size:21px}.loading-panel{padding:80px 22px}
  dialog{padding:27px 24px}dialog h2{font-size:21px}dialog p{font-size:12px}
}
@media(max-width:360px){
  .content{padding-left:17px;padding-right:17px}.topbar{padding-left:18px;padding-right:18px}
  .hero h1{font-size:29px;letter-spacing:1px}.hero{min-height:235px}.hero-note{font-size:7px}.hero-visual figcaption{font-size:7px}
  .section-caption .subtle{display:none}.mood-area{padding-left:14px;padding-right:14px}.mood-illustration{width:35px;height:37px}.mood-art{width:33px;height:33px}
  .illustrated-heading h1{font-size:25px;letter-spacing:1px}.chat-meta .mood-art{display:none}.profile-card{padding-left:17px;padding-right:17px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

