@font-face{font-family:Journal;src:local('나눔스퀘어라운드'),local('Pretendard'),local('Apple SD Gothic Neo'),local('Malgun Gothic');font-display:swap}
:root{--paper:#fff9f1;--ink:#293143;--muted:#777168;--coral:#f6b9ad;--coral-dark:#854b42;--lavender:#b8a5d9;--line:#eae2d8;--gold:#b78236;--white:#fffefa;--shadow:0 12px 35px #66513b08;font-family:Journal,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:wait;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #9277b9;outline-offset:4px}button{min-height:44px}p{line-height:1.8}h1,h2,h3,p{margin-top:0}h1{font-size:38px;letter-spacing:-1.7px;font-weight:650;line-height:1.45}h2{font-size:23px;letter-spacing:-.6px}h3{font-size:17px}small,.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:600;color:#9a8c7c}.skip{position:fixed;top:-80px;z-index:100;background:white;padding:12px}.skip:focus{top:0}.app-shell{max-width:1600px;margin:auto;min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{padding:42px 27px 25px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:#faf5ed}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:750;letter-spacing:-1px}.brand-mark{font-size:38px;color:#cf9860}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1px;margin-top:6px}.desktop-nav{display:grid;gap:10px;margin-top:65px}.desktop-nav button{text-align:left;padding:14px 17px;border-radius:13px;color:#817970;font-size:14px;display:flex;align-items:center;gap:14px}.desktop-nav button span{font-size:23px;width:24px;text-align:center}.desktop-nav button.active{background:#f3e3d7;color:#714d40;font-weight:650}.desktop-nav button:hover{background:#efe9df}.sidebar-note{margin:auto 4px 40px;padding:22px 6px;color:#9a8876}.sidebar-note>span{font-size:35px;color:#bba1ce}.sidebar-note p{font-size:14px;margin:15px 0 24px}.note-line{height:1px;width:30px;background:#d6c8b7;margin-bottom:20px}.sidebar-note small{font-size:8px;letter-spacing:1.4px}.settings-link{text-align:left;font-size:12px;color:#7a746e;display:flex;gap:12px;align-items:center}.settings-link span{font-size:19px}.main-wrap{min-width:0}.topbar{height:99px;padding:0 60px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee7dd80}.storage-badge{font-size:11px;color:#6e7467;background:#f1f1e6;border:1px solid #e6e7d7;border-radius:30px;padding:0 14px;min-height:32px}.lock{margin-right:5px}main{max-width:1100px;padding:44px 60px 28px;margin:auto;min-height:70vh}main:focus{outline:none}.mobile-brand,.bottom-nav{display:none}.page-footer{text-align:center;font-size:11px;color:#958b80;padding:30px 20px 35px;letter-spacing:.2px}.date-line{font-size:12px;color:#897a6e;letter-spacing:1px;display:flex;align-items:center;gap:9px;margin-bottom:17px}.date-line:before{content:'';display:inline-block;width:18px;height:1px;background:#bf9c79}.home-heading{margin-bottom:22px}.home-heading h1{margin-bottom:12px}.home-heading h1 em{font-style:normal;color:#aa715e}.home-heading p{font-size:14px;color:#897d70}.hero{background:#f4ebdf;border:1px solid #ecdfcd;border-radius:24px;min-height:260px;padding:36px 38px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--shadow)}.hero-copy{position:relative;z-index:1;max-width:60%}.tag{font-size:10px;letter-spacing:1px;color:#9c765b;margin-bottom:17px;display:block}.hero h2{font-size:24px;line-height:1.65;margin-bottom:9px}.hero p{font-size:12px;color:#8c7c6c;margin-bottom:24px}.primary{background:var(--coral);color:#55382f;border:1px solid #e8a89a;border-radius:12px;padding:14px 22px;font-weight:650;font-size:13px;box-shadow:0 4px 0 #b66f4c0a;transition:transform .2s,background .2s}.primary:hover{background:#f1aa9c;transform:translateY(-1px)}.primary .arrow{margin-left:24px}.secondary{border:1px solid var(--line);background:var(--white);padding:12px 20px;border-radius:12px;font-size:13px}.text-button{color:#897461;font-size:12px;padding:5px 0}.text-button:hover{text-decoration:underline}.scene{position:relative;width:235px;height:220px;flex-shrink:0;display:grid;place-items:center}.scene:before{content:'';position:absolute;width:220px;height:220px;border:1px solid #d4bd9a60;border-radius:50%;transform:rotate(-20deg) scaleY(.73)}.scene:after{content:'';position:absolute;width:180px;height:180px;border:1px solid #d4bd9a40;border-radius:50%;transform:rotate(30deg) scaleY(.8)}.star-friend{width:142px;height:142px;filter:drop-shadow(0 14px 14px #c2965650);transform:rotate(9deg);z-index:1}.scene .spark{position:absolute;color:#ba975e;font-size:21px}.spark.one{top:18px;left:36px}.spark.two{right:10px;top:57px;font-size:13px}.spark.three{left:25px;bottom:35px;font-size:11px}.orbit-note{position:absolute;bottom:0;font-family:Georgia,serif;font-style:italic;font-size:13px;color:#a78963;transform:rotate(-7deg)}.home-lower{display:grid;grid-template-columns:1.35fr 1fr;gap:22px;margin-top:30px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:30px 0 16px}.section-heading h2{font-size:16px;margin:0}.section-heading .count{font-size:12px;color:#ab8862;margin-left:8px}.paper-card{border:1px solid var(--line);border-radius:19px;background:var(--white);padding:24px;box-shadow:var(--shadow)}.today-empty{display:flex;gap:17px;align-items:center;min-height:122px}.empty-icon{background:#f5efe6;color:#c4a772;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font-size:26px;flex-shrink:0}.today-empty p{font-size:13px;margin:0 0 5px}.today-empty small{font-size:11px}.quote-card{background:#f0ebf6;border:1px solid #e7deef;border-radius:19px;padding:24px;position:relative;min-height:154px}.quote-card .tag{color:#89729b;margin-bottom:13px}.quote-card p{font-size:14px;margin-bottom:14px;color:#655673}.quote-card small{font-size:10px;color:#9d8ba9}.quote-card .quote-star{position:absolute;right:20px;bottom:20px;font-size:23px;color:#b8a5ce}.constellation{display:flex;align-items:center;gap:16px;padding:22px 25px;border:1px solid var(--line);border-radius:17px;background:#fcf8ef;margin-top:22px}.constellation .stars{color:#c5a371;letter-spacing:6px;white-space:nowrap}.constellation p{font-size:12px;margin:0}.constellation small{display:block;font-size:10px;margin-top:5px}.constellation button{margin-left:auto;white-space:nowrap}.page-title{margin-bottom:28px}.page-title h1{font-size:32px;margin-bottom:9px}.page-title p{font-size:13px;color:#887b70}.page-title .eyebrow{display:block;margin-bottom:15px}.editor-wrap{max-width:680px;margin:auto}.editor{background:var(--white);border:1px solid var(--line);border-radius:22px;padding:30px}.editor-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8e7c69;border-bottom:1px solid var(--line);padding-bottom:20px}.editor-head span:last-child{font-size:10px}.editor label.text-label{display:block;margin:24px 0 12px;font-size:16px}.editor textarea{resize:vertical;border:0;width:100%;min-height:180px;background:repeating-linear-gradient(transparent,transparent 35px,#ece5da 36px);line-height:36px;color:var(--ink);font-size:15px;padding:0 2px;outline-offset:5px}.editor textarea::placeholder{color:#a69b8e}.editor-meta{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:#9a8c7c;font-size:10px}.prompt-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.prompt-chips button{min-height:30px;padding:6px 12px;background:#faf5ed;border:1px solid #eee5da;border-radius:30px;color:#8c7967;font-size:11px}.form-section{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.field-heading{display:flex;gap:10px;align-items:center;margin-bottom:14px;font-size:13px}.field-heading small{font-size:10px}.moods{display:flex;gap:8px;flex-wrap:wrap}.mood-chip{display:flex;flex-direction:column;gap:6px;align-items:center;border:1px solid transparent;border-radius:12px;min-width:72px;padding:12px 10px;font-size:10px;color:#807368;background:#faf7f1}.mood-chip span{font-size:23px}.mood-chip.selected{border-color:#c7acd9;background:#f0eaf7;color:#665178}.photo-control{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.photo-button{border:1px dashed #ccbba6;border-radius:12px;padding:13px 20px;font-size:12px}.photo-control small{font-size:10px}.photo-preview{width:100%;max-height:260px;object-fit:contain;margin-top:15px;border-radius:12px;background:#f8f1e7}.save-area{text-align:center;margin-top:24px}.save-area .primary{width:100%;font-size:15px;padding:17px}.save-area p{font-size:11px;color:#9a8c7c;margin:15px 0 0}.back-button{font-size:12px;color:#887967;margin-bottom:20px;padding:0}.calendar-card{padding:26px}.month-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.month-header h2{font-size:19px;margin:0}.month-header button{width:44px;border-radius:50%;background:#faf5ed;font-size:20px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.weekday{text-align:center;font-size:11px;color:#9c8c7c;padding:8px}.day{aspect-ratio:1.18;border-radius:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:13px;min-height:50px}.day:hover{background:#faf1e7}.day.today{box-shadow:inset 0 0 0 1px #c6ad91}.day.selected{background:#f6dfd6;color:#714e41}.day .day-star{height:17px;color:#b88c45;font-size:18px;line-height:17px}.calendar-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;align-items:start}.calendar-caption{font-size:11px;color:#9c8a76;text-align:center;margin:22px 0 0}.calendar-selection h2{font-size:17px;margin:5px 0 17px}.empty-state{text-align:center;border:1px dashed #dfd2c2;border-radius:20px;padding:45px 22px;margin:20px 0;background:#fffcf6}.empty-state .empty-star{font-size:40px;color:#c7ab7b;margin-bottom:17px}.empty-state h2{font-size:18px;line-height:1.7}.empty-state p{color:#918170;font-size:12px;margin-bottom:22px}.filters{display:flex;gap:8px;margin-bottom:24px;align-items:center;flex-wrap:wrap}.filter{font-size:12px;padding:9px 17px;min-height:36px;border:1px solid var(--line);border-radius:25px;background:#fffdf8}.filter.active{background:#ebe3f2;border-color:#d9cbe5;color:#6e5486}.filters .total{margin-left:auto;font-size:11px;color:#978876}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.entry-card{background:#fffefa;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow);transition:transform .2s}.entry-card:hover{transform:translateY(-2px)}.entry-top{display:flex;align-items:center;justify-content:space-between;color:#9b8b78;font-size:11px}.favorite{font-size:21px;color:#ac9b88;width:44px}.favorite.on{color:#ad7758}.entry-open{display:block;width:100%;text-align:left;padding:0}.entry-text{line-height:1.9;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0 18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.entry-card .entry-photo{width:100%;height:150px;object-fit:cover;border-radius:10px;margin-bottom:12px}.mood-label{font-size:10px;color:#8c7a68;background:#f5f0e7;border-radius:20px;padding:6px 9px;display:inline-block}.entry-bottom{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#9f8f7d}.entry-card.compact{box-shadow:none;padding:18px;margin-bottom:13px}.entry-card.compact .entry-text{-webkit-line-clamp:3;font-size:13px}.entry-card.compact .entry-photo{height:110px}.success{max-width:590px;margin:25px auto;text-align:center}.success .scene{margin:auto;height:230px}.success h1{font-size:29px;margin:27px 0 12px}.success .praise{font-size:17px;line-height:1.9;max-width:450px;margin:0 auto 25px;color:#85705e}.success .saved-note{padding:20px 25px;background:#fffefa;border:1px solid var(--line);border-radius:17px;text-align:left;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:25px 0}.success .buttons{justify-content:center}.success .star-friend{animation:arrive .8s ease-out}.success .spark{animation:twinkle 1.5s ease-out}.buttons{display:flex;gap:10px;flex-wrap:wrap}.info{font-size:11px;color:#918371;line-height:1.8;margin-top:18px}.error{color:#9a493b;font-size:13px;line-height:1.7}.hidden{display:none!important}dialog{border:1px solid var(--line);border-radius:24px;padding:30px;background:var(--paper);color:var(--ink);width:min(560px,calc(100% - 28px));max-height:88vh;box-shadow:0 30px 90px #3d2c2733;overflow:auto}dialog::backdrop{background:#40352d66;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.dialog-heading h2{margin:0;font-size:21px}.close{font-size:23px;border-radius:50%;background:#f1e9dd;width:44px;flex-shrink:0}.detail-text{font-size:17px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:25px 0}.detail-photo{width:100%;max-height:340px;object-fit:contain;border-radius:12px}.detail-praise{padding:20px;background:#efe8f5;border-radius:15px;font-size:13px;color:#75627e}.danger{color:#a14b3f}.detail-actions{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;margin-top:23px}.detail-actions button{font-size:12px;padding:9px 15px;border:1px solid var(--line);border-radius:10px}.setting-row{display:flex;gap:18px;align-items:flex-start;border-top:1px solid var(--line);padding:22px 0}.setting-row input{width:20px;height:20px;accent-color:#9679b5;flex-shrink:0}.setting-row b{font-size:13px}.setting-row p{font-size:11px;margin:7px 0 0;color:#887c6f}.auth-form h2{font-size:21px}.auth-form .hint{font-size:12px;color:#87796c}.auth-form label{font-size:12px;display:block;margin:18px 0}.auth-form input{display:block;width:100%;padding:12px;border:1px solid #d7cabb;background:#fffdf8;border-radius:9px;margin-top:8px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions button{border:1px solid var(--line);padding:9px 15px;border-radius:9px;font-size:12px}.card h2{font-size:17px}.card p{font-size:12px;color:#827568}.share-preview{display:block;width:100%;border-radius:16px;box-shadow:0 5px 30px #57412918}.share-note{font-size:12px;color:#877565;line-height:1.8}.loading{padding:70px 20px;text-align:center;color:#927f6b}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#3d443e;color:#fffdf3;padding:13px 22px;border-radius:13px;font-size:12px;max-width:90vw;z-index:100;transition:.2s}#toast.show{transform:translate(-50%,0);opacity:1}@keyframes arrive{0%{transform:scale(.5) rotate(-20deg);opacity:0}65%{transform:scale(1.08) rotate(12deg)}100%{transform:scale(1) rotate(9deg)}}@keyframes twinkle{0%,100%{opacity:.4}50%{opacity:1;transform:scale(1.5)}}
@media(min-width:1400px){main{padding-top:54px}.hero{min-height:285px}.home-heading h1{font-size:42px}}
@media(max-width:1100px){.app-shell{grid-template-columns:200px 1fr}.sidebar{padding:35px 18px}.brand{font-size:22px}.topbar{padding:0 35px}main{padding:35px}.hero{padding:27px}.scene{width:185px}.scene:before{width:180px;height:180px}.hero h2{font-size:21px}.calendar-layout{grid-template-columns:1fr}.entry-grid{gap:14px}}
@media(max-width:760px){.app-shell{display:block}.sidebar,.desktop-only{display:none}.topbar{height:75px;padding:0 22px;border:0}.mobile-brand{display:block;font-size:20px;font-weight:700;letter-spacing:-.8px}.storage-badge{font-size:10px;padding:0 10px;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{padding:22px 22px 10px}.home-heading h1{font-size:30px}.home-heading p{font-size:12px}.date-line{font-size:10px;margin-bottom:14px}.hero{border-radius:20px;min-height:265px;padding:27px 23px;align-items:flex-start}.hero-copy{max-width:75%}.hero .scene{position:absolute;right:-26px;top:53px;width:155px;height:170px;opacity:.85}.hero .star-friend{width:105px;height:105px}.hero .scene:before{width:155px;height:155px}.hero .scene:after{width:125px;height:125px}.hero .orbit-note{display:none}.hero h2{font-size:20px;line-height:1.75}.hero p{font-size:11px;max-width:185px}.hero .primary{font-size:12px;padding:13px 15px;margin-top:7px}.hero .primary .arrow{margin-left:10px}.hero .tag{font-size:9px}.home-lower{grid-template-columns:1fr;gap:16px;margin-top:24px}.section-heading{margin:24px 0 13px}.home-lower .section-heading{margin-top:0}.quote-card{padding:21px;min-height:130px}.quote-card p{margin-bottom:10px}.constellation{gap:12px;padding:19px 16px;flex-wrap:wrap}.constellation .stars{font-size:14px;letter-spacing:3px}.constellation p{font-size:11px}.constellation button{font-size:10px}.page-footer{font-size:9px;padding:28px 15px 115px}.bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;background:#fffcf6f5;backdrop-filter:blur(15px);border-top:1px solid var(--line);padding:9px 12px calc(10px + env(safe-area-inset-bottom));z-index:10}.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;color:#9b8f83;font-size:10px;min-height:47px}.bottom-nav button span{font-size:24px;line-height:26px}.bottom-nav button.active{color:#885d4e}.bottom-nav button.active span{background:#f6e2d7;border-radius:10px;width:55px}.page-title h1{font-size:28px}.page-title p{font-size:12px}.page-title .eyebrow{font-size:9px}.editor{padding:23px 19px}.editor textarea{font-size:14px;min-height:180px}.moods{gap:5px}.mood-chip{flex:1;min-width:45px;padding:10px 4px;font-size:9px}.mood-chip span{font-size:22px}.field-heading{font-size:12px}.editor label.text-label{font-size:14px}.calendar-card{padding:20px 13px}.calendar-grid{gap:3px}.day{font-size:12px;min-height:43px}.entry-grid{grid-template-columns:1fr}.entry-card{padding:19px}.calendar-selection{margin-top:5px}.success{margin-top:0}.success h1{font-size:25px}.success .praise{font-size:15px}.success .scene{height:200px}.success .buttons button{flex:1}.success .buttons{gap:8px}#toast{bottom:95px;width:max-content;max-width:90vw}.dialog-heading h2{font-size:19px}dialog{padding:24px 20px}.detail-text{font-size:15px}.today-empty{min-height:110px;padding:20px}.today-empty p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation:none!important;transition:none!important}

h1,h2,h3,p,.hero-copy,.page-footer{word-break:keep-all;overflow-wrap:break-word}.eyebrow{color:#80715f}.hero p,.page-title p,.home-heading p,.info,.calendar-caption,.editor-meta,.page-footer{color:#786c5e}.tag{color:#87654c}.prompt-chips button,.filter{min-height:40px}.share-preview{margin-bottom:20px}

/* 기분 반짝: a small, optional resting place beside the journal. */
.sparkle-entry{width:100%;display:flex;align-items:center;gap:16px;text-align:left;padding:18px 23px;margin:18px 0 0;border:1px solid #e3d8ec;border-radius:18px;background:#f2edf7;transition:background .2s,transform .2s}
.sparkle-entry:hover{background:#eae1f3;transform:translateY(-1px)}.sparkle-entry-icon{font-size:29px;color:#9b7ab6;width:36px;text-align:center}.sparkle-entry b{display:block;font-size:15px;color:#64516f;margin-bottom:5px}.sparkle-entry small{font-size:12px;color:#7c6d86;line-height:1.6}.sparkle-entry-arrow{margin-left:auto;font-size:21px;color:#9277a5}.sparkle-entry.compact{padding:14px 18px;margin:0 0 20px}.sparkle-entry.compact b{font-size:13px}.sparkle-entry.compact small{font-size:11px}
.sparkle-page,.sparkle-finish{max-width:900px;margin:0 auto;animation:sparkle-enter .32s ease-out}.sparkle-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.sparkle-top .eyebrow{font-size:9px}.sparkle-top .text-button{min-height:44px}.sparkle-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0 26px}.sparkle-pill{display:inline-block;padding:7px 12px;border-radius:30px;background:#f4e8de;color:#916b58;font-size:11px;letter-spacing:.3px}.sparkle-welcome h1{font-size:40px;margin:17px 0 13px;color:#6c536e}.sparkle-welcome p{font-size:14px;color:#7e7165;margin-bottom:0;line-height:1.9}.sparkle-welcome .scene{width:175px;height:180px}.sparkle-welcome .star-friend{width:110px;height:110px}.sparkle-welcome .scene:before{width:165px;height:165px}.sparkle-welcome .scene:after{width:145px;height:145px}.sparkle-welcome .orbit-note{display:none}
.sparkle-layout{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(0,1.2fr);gap:26px;align-items:start}.sparkle-picker{padding-top:8px}.sparkle-picker h2{font-size:19px;margin:0 0 8px}.sparkle-picker>p{font-size:12px;color:#827469;margin-bottom:20px}.sparkle-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.sparkle-option{min-height:122px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e8dfd4;border-radius:19px;padding:17px 8px;gap:9px;background:#fffcf7;transition:transform .2s,border-color .2s}.sparkle-option>span{font-size:28px;color:#a48169;line-height:30px}.sparkle-option b{font-size:13px;font-weight:600}.sparkle-option small{font-size:10px;color:#807467}.sparkle-option:hover{transform:translateY(-2px);border-color:#b9a0cd}.sparkle-option.selected{border:2px solid #a88ebd;box-shadow:0 0 0 3px #b8a5d915;padding:16px 7px}.sparkle-option.peach{background:#fcf0e8}.sparkle-option.lavender{background:#f1edf7}.sparkle-option.gold{background:#fbf3df}.sparkle-option.sage{background:#edf1e8}.sparkle-option.lavender>span{color:#9a7bb2}.sparkle-option.sage>span{color:#7e987f}.sparkle-picker .sparkle-permission{font-size:11px;margin:20px 0 0;line-height:1.9;color:#87776a}
.sparkle-idle{min-height:350px;border:1px dashed #dacbdc;background:#f9f4f7;border-radius:23px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px}.sparkle-idle>span{font-size:54px;color:#b99dca;margin-bottom:22px}.sparkle-idle h2{font-size:19px;color:#6f5c75;margin-bottom:13px}.sparkle-idle p{font-size:13px;color:#86778b;margin-bottom:24px}.sparkle-idle small{font-size:11px;color:#8c7a84}
.sparkle-message{border-radius:22px;padding:26px;background:#f1eaf7;border:1px solid #e5d9ed;min-height:210px;position:relative}.sparkle-message.peach{background:#fbeddf;border-color:#ebddce}.sparkle-message.gold{background:#f9f0d9;border-color:#eaddbb}.sparkle-message.sage{background:#edf1e9;border-color:#dce4d5}.sparkle-message .tag{font-size:10px;color:#7c6686;letter-spacing:.4px;margin-bottom:20px}.sparkle-message>p{font-size:17px;line-height:1.9;margin-bottom:15px;color:#5f5167;min-height:65px;word-break:keep-all}.sparkle-another{font-size:12px;color:#786380;padding:5px 12px;border:1px solid #cbbbd4;border-radius:30px;background:#fffdfb88;min-height:40px}.sparkle-mission{background:#fffdf8;border:1px solid var(--line);border-radius:22px;margin-top:15px;padding:24px}.sparkle-mission-heading{display:flex;flex-wrap:wrap;gap:8px 14px;justify-content:space-between;align-items:center;margin-bottom:18px}.sparkle-mission-heading>span{font-size:11px;color:#9b744c}.sparkle-mission-heading small{font-size:9px;color:#827366}.sparkle-mission h2{font-size:17px;margin-bottom:10px;line-height:1.6}.sparkle-mission p{font-size:13px;color:#7f7265;line-height:1.9;margin-bottom:21px}.sparkle-mission .buttons{gap:8px}.sparkle-mission .buttons button{font-size:12px;padding:12px 16px}.sparkle-return{margin-top:24px;min-height:44px}
.sparkle-finish{text-align:center;max-width:650px}.sparkle-finish .scene{margin:8px auto 18px;height:200px}.sparkle-finish .orbit-note{display:none}.sparkle-finish h1{font-size:30px;margin:22px 0 14px}.sparkle-finish-copy{font-size:15px;color:#82705f;line-height:1.95}.sparkle-keepsake{display:flex;align-items:center;gap:18px;border:1px solid #e6d9e9;border-radius:18px;background:#f4edf7;text-align:left;padding:23px 25px;margin:27px auto;max-width:480px}.sparkle-keepsake>span{font-size:29px;color:#ad8bba}.sparkle-keepsake small{font-size:10px;color:#857089}.sparkle-keepsake p{font-size:14px;color:#6c5873;margin:7px 0 0}.sparkle-finish-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.sparkle-finish .info{line-height:1.8}.sparkle-finish.celebrate .star-friend{animation:arrive .75s ease-out}.sparkle-finish.celebrate .spark{animation:twinkle 1.2s ease-out}.sparkle-finish .text-button{min-height:44px}@keyframes sparkle-enter{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.sparkle-layout{grid-template-columns:1fr}.sparkle-options{grid-template-columns:repeat(4,minmax(0,1fr))}.sparkle-option{min-height:110px}.sparkle-idle{min-height:210px}.sparkle-picker .sparkle-permission{margin:15px 0 0}.sparkle-picker .sparkle-permission br{display:none}}
@media(max-width:760px){.sparkle-entry{padding:16px;gap:11px}.sparkle-entry small{font-size:10px}.sparkle-top .eyebrow{font-size:8px;letter-spacing:1.2px}.sparkle-top .text-button{font-size:10px}.sparkle-welcome{position:relative;padding:18px 0 25px;min-height:195px;gap:0}.sparkle-welcome>div:first-child{position:relative;z-index:1;max-width:75%}.sparkle-welcome h1{font-size:32px;margin:14px 0 12px}.sparkle-welcome p{font-size:12px;max-width:230px}.sparkle-welcome .scene{position:absolute;right:-12px;top:30px;width:112px;height:125px;opacity:.92}.sparkle-welcome .star-friend{width:82px;height:82px}.sparkle-welcome .scene:before{width:109px;height:109px}.sparkle-welcome .scene:after{width:96px;height:96px}.sparkle-welcome .spark.one{top:5px;left:11px}.sparkle-welcome .spark.three{bottom:5px;left:5px}.sparkle-welcome .spark.two{right:2px;top:20px}.sparkle-pill{font-size:10px;padding:6px 10px}.sparkle-picker h2{font-size:18px}.sparkle-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sparkle-option{min-height:105px;padding:13px 8px;gap:7px}.sparkle-option.selected{padding:12px 7px}.sparkle-option>span{font-size:26px}.sparkle-option b{font-size:12px}.sparkle-option small{font-size:10px}.sparkle-picker>p{font-size:11px}.sparkle-layout{gap:21px}.sparkle-message{padding:23px;min-height:190px}.sparkle-message>p{font-size:16px;min-height:0}.sparkle-mission{padding:21px}.sparkle-mission-heading small{font-size:9px}.sparkle-mission p{font-size:12px}.sparkle-mission .buttons button{flex:1;padding:12px 9px;font-size:11px;min-height:46px}.sparkle-idle{min-height:200px;padding:25px 20px}.sparkle-idle>span{font-size:36px;margin-bottom:15px}.sparkle-idle h2{font-size:17px}.sparkle-finish .scene{height:180px;margin:5px auto 16px}.sparkle-finish h1{font-size:25px}.sparkle-finish-copy{font-size:13px}.sparkle-keepsake{padding:20px;gap:13px}.sparkle-keepsake p{font-size:13px}.sparkle-finish-actions{flex-direction:column}.sparkle-finish-actions button{min-height:48px}.sparkle-finish .info{font-size:10px}}

/* Bundled original fonts: available offline and in the native WebView. */
@font-face{font-family:KyoboHandwriting2019;src:url('/assets/fonts/KyoboHandwriting2019.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:MaruBuri;src:url('/assets/fonts/MaruBuri-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
body.template-handwriting{--journal-title:KyoboHandwriting2019,Journal,cursive;--journal-spacing:0px}
body.template-essay{--journal-title:MaruBuri,'Batang',serif;--journal-spacing:-.5px}
body:is(.template-handwriting,.template-essay) :is(#main h1,.hero h2,.quote-card p,.success .praise,.sparkle-message>p,.detail-praise){font-family:var(--journal-title);font-weight:400;letter-spacing:var(--journal-spacing);line-height:1.65;word-break:keep-all;overflow-wrap:anywhere}
body.template-handwriting :is(.quote-card p,.success .praise,.sparkle-message>p,.detail-praise){font-size:21px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.template-section{margin-bottom:28px;padding-bottom:23px;border-bottom:1px solid var(--line)}
.template-section>.eyebrow{font-size:8px;letter-spacing:1.6px;color:#987962}
.template-section h3{font-size:20px;margin:11px 0 10px;letter-spacing:-.5px}
.template-section>p{font-size:12px;color:#827568;margin-bottom:18px;line-height:1.8}
.template-options{border:0;padding:0;margin:0;display:grid;gap:12px;min-width:0}
.template-option{position:relative;display:block;cursor:pointer}
.template-option>input{position:absolute;width:20px;height:20px;top:21px;right:21px;opacity:0;margin:0}
.template-card{display:block;border:1px solid #e5dacd;border-radius:17px;padding:19px 20px;background:#fffdf8;transition:border-color .18s,box-shadow .18s}
.template-option:hover .template-card{border-color:#bb9b83}
.template-option>input:checked+.template-card{border-color:#a97866;box-shadow:inset 0 0 0 1px #a97866}
.template-option>input:focus-visible+.template-card{outline:3px solid #9277b9;outline-offset:3px}
.template-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.template-card-top b{display:block;font-size:13px;font-weight:650}
.template-card-top small{display:block;font-size:10px;color:#8a7b6e;margin-top:5px}
.template-check{display:grid;place-items:center;width:22px;height:22px;flex-shrink:0;border:1px solid #cdbfb0;border-radius:50%;font-size:12px;color:transparent;background:#fffcf7}
.template-option>input:checked+.template-card .template-check{background:#a97866;border-color:#a97866;color:white}
.template-sample{display:block;font-size:23px;line-height:1.7;letter-spacing:-.7px;margin:13px 0 7px;word-break:keep-all;overflow-wrap:anywhere;color:#56443d}
.template-sample>span{color:#b59366;font-family:Journal,sans-serif;font-size:17px;margin-right:5px}
.template-description{display:block;font-size:11px;line-height:1.7;color:#8a796d}
.template-preview-handwriting{background:#fff8ef}
.template-preview-handwriting .template-sample{font-family:KyoboHandwriting2019,cursive;font-size:27px;letter-spacing:0}
.template-preview-essay{background:#f6f2f8}
.template-preview-essay .template-sample{font-family:MaruBuri,serif;font-size:23px;letter-spacing:-.5px;color:#63546d}
.template-section>.template-footnote{font-size:10px;margin:14px 0 0;color:#8a7b6e}
@media(max-width:400px){.template-card{padding:17px 15px}.template-sample,.template-preview-essay .template-sample{font-size:20px}.template-preview-handwriting .template-sample{font-size:24px}.template-description{font-size:10px}}
@media(prefers-reduced-motion:reduce){.template-card{transition:none}}
.reduce-motion .template-card{transition:none}

/* Quiet corner illustrations leave the writing and calendar centre clear. */
body.paper-stars,.paper-preview-stars{--paper-art:url('/assets/backgrounds/starlight.svg')}
body.paper-garden,.paper-preview-garden{--paper-art:url('/assets/backgrounds/garden.svg')}
body.paper-clouds,.paper-preview-clouds{--paper-art:url('/assets/backgrounds/clouds.svg')}
.editor,.calendar-card{background-image:var(--paper-art,none);background-repeat:no-repeat;background-position:center;background-size:100% 100%}
.background-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;margin:0;min-width:0}
.background-card{padding:0 0 14px;overflow:hidden;height:100%;background:#fffdf8}
.background-preview{display:block;position:relative;height:126px;padding:27px 20px 10px;background-color:#fffaf2;background-image:var(--paper-art,none);background-size:100% 100%;border-bottom:1px solid #eee5d8}
.paper-preview-none{--paper-art:none}
.background-preview .template-check{position:absolute;right:12px;top:12px;width:20px;height:20px}
.paper-preview-date{font-family:var(--journal-title,Journal),serif;display:block;font-size:15px;color:#8a7769;margin:5px 0 17px;font-weight:400}
.paper-preview-line{display:block;width:75%;height:1px;background:#cabba750;margin-bottom:11px}
.paper-preview-line.short{width:52%}
.background-name{display:block;font-size:13px;font-weight:650;padding:13px 14px 5px}
.background-card>.template-description{padding:0 14px;font-size:10px}
.background-option>input{top:13px;right:13px}
@media(max-width:400px){.background-options{gap:10px}.background-preview{height:112px;padding:29px 13px 8px}.paper-preview-date{font-size:12px}.background-name{font-size:12px;padding:12px 10px 5px}.background-card>.template-description{font-size:10px;padding:0 10px}.background-card{padding:0 0 12px}}

.background-card>.template-description{word-break:keep-all;overflow-wrap:anywhere}

/* 2.0: a keepsake, a little breathing room, the same familiar companion. */
.memory-card{margin:28px 0 8px;padding:24px 30px 19px;border:1px solid #e2d4e5;border-radius:23px;background:linear-gradient(125deg,#faf5fc,#fffaf1);position:relative;box-shadow:0 10px 30px #75578506}
.memory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-heading .eyebrow{font-size:9px;letter-spacing:1.7px;color:#75617e}.memory-heading button{font-size:12px;color:#74657c}
.memory-open{display:block;text-align:left;width:100%;padding:7px 0;color:#5f4e63}.memory-intro{display:flex;align-items:center;gap:13px}.memory-intro img{flex-shrink:0}.memory-intro small{font-size:12px;color:#7c657a}.memory-intro h2{font-size:16px;margin:7px 0 0}.memory-letter{font-family:var(--journal-title,MaruBuri),serif;font-size:25px;line-height:1.7;margin:24px 0 19px;letter-spacing:-.5px}
.memory-open blockquote{font-size:15px;line-height:1.9;color:#695c60;margin:0 0 22px;padding:6px 0 6px 18px;border-left:2px solid #c8b1d0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.memory-link{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:#71527a}.memory-link span{font-size:23px}.memory-footnote{font-size:11px;color:#806f7c;border-top:1px solid #e9dfe9;margin:17px 0 0;padding-top:15px}
.rest-note{display:flex;gap:18px;padding:26px 6px 8px;color:#716756}.rest-note>span{font-size:30px;color:#9a8a79}.rest-note h2{font-size:16px;margin:3px 0 10px}.rest-note p{font-size:13px;margin-bottom:12px}.rest-note small{display:block;font-size:11px;margin-top:10px}.rest-choices{display:flex;flex-wrap:wrap;gap:8px}.rest-choices button{border:1px solid #dfd3c5;background:#fffdf8;padding:9px 14px;border-radius:24px;font-size:12px;color:#755d4c}
.memory-options{display:grid;gap:12px}.reminder-section{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:26px}.reminder-section h3{margin:14px 0 10px;font-size:21px}.reminder-section>p{font-size:13px;color:#756556}.reminder-status{background:#f1eaf6;border-radius:12px;padding:13px 16px}.reminder-time{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;flex-wrap:wrap}.reminder-time input{padding:10px;border:1px solid #cbbbd0;border-radius:10px;color:#635269;background:#fffdfb}.companion-whisper{font-size:13px;color:#806b82}.skip-celebration{display:block;margin:0 auto;font-size:12px;color:#74657c}.success.still *{animation:none!important;transition:none!important}.memory-open:focus-visible{outline-offset:8px;border-radius:8px}
@media(max-width:760px){.memory-card{padding:18px 20px;margin-top:22px}.memory-letter{font-size:23px}.memory-intro small{font-size:11px}.memory-open blockquote{font-size:14px}.rest-note{gap:12px}.rest-note h2{font-size:15px}.rest-choices button{font-size:12px}.memory-heading .eyebrow{font-size:8px;letter-spacing:1px}}

/* A small companion and an unhurried wordmark, consistent across templates. */
.brand{gap:10px;letter-spacing:0;align-items:center}
.brand-symbol{display:block;flex-shrink:0;width:44px;height:44px}
.brand-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.brand-name{font-family:MaruBuri,'Batang',serif;font-size:26px;font-weight:400;line-height:1.2;letter-spacing:.2px;color:#6b5141;white-space:nowrap}
.brand .brand-copy small{font-family:Journal,sans-serif;font-size:9px;line-height:1.5;letter-spacing:.2px;font-weight:400;color:#947e69;margin:0;white-space:nowrap}
@media(max-width:760px){.mobile-brand{display:flex;align-items:center;gap:7px;letter-spacing:0}.mobile-brand .brand-symbol{width:34px;height:34px}.mobile-brand .brand-name{font-size:21px}.topbar{gap:8px}.storage-badge{flex-shrink:1}}
@media(max-width:360px){.mobile-brand{gap:5px}.mobile-brand .brand-name{font-size:19px}.mobile-brand .brand-symbol{width:30px;height:30px}.storage-badge{font-size:9px;padding:0 8px}}

/* Orbital paper-star logo: retain clear facial detail in compact headers. */
.brand-symbol{width:56px;height:56px}
@media(max-width:760px){.mobile-brand .brand-symbol{width:42px;height:42px}}
@media(max-width:360px){.mobile-brand .brand-symbol{width:36px;height:36px}}


.daily-quote{position:relative;overflow:hidden;background:linear-gradient(135deg,#f1eaf5,#f8f1ed);padding:25px 24px 16px}
.daily-quote .tag{color:#8a7190;margin-bottom:18px;font-size:10px;letter-spacing:.3px;padding-right:24px}
.daily-quote #kind-word-text{font-size:17px;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere;line-height:1.85;min-height:5.55em;margin:0 0 13px;position:relative;z-index:1}
.daily-quote #kind-word-note{display:block;line-height:1.8;word-break:keep-all;min-height:1.8em;font-size:11px;color:#82718b;padding-right:8px}
.quote-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;border-top:1px solid #d9cddd80;margin-top:17px;padding-top:8px;position:relative;z-index:1}
.quote-actions>span{font-size:9px;color:#8c7c90;line-height:1.7}
.quote-another{font-size:11px;color:#715779;min-height:44px;padding:8px 0 8px 8px;border-radius:8px}
.quote-another>span{display:inline-block;margin-left:6px;font-size:17px;vertical-align:middle}
.quote-another:hover{color:#503b5c;text-decoration:underline;text-underline-offset:4px}
.daily-quote .quote-star{top:18px;right:18px;bottom:auto;opacity:.3;font-size:25px;pointer-events:none}
@media(max-width:760px){.daily-quote{padding:23px 21px 13px}.daily-quote #kind-word-text{min-height:0}.daily-quote #kind-word-note{min-height:0}.quote-actions{margin-top:18px}}

/* Diary navigation icon follows the existing selected-menu color. */
.journal-menu-icon svg{display:block;width:24px;height:24px;margin:auto}

.letter-picker{border:0;padding:0;margin:0 0 17px;min-width:0}.letter-picker legend{font-size:14px;color:#776354;margin-bottom:12px}.letter-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.letter-options button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:var(--letter-paper);color:var(--letter-ink);border:1px solid transparent;border-radius:13px;padding:13px 5px;min-width:0}.letter-options button[aria-pressed="true"]{border-color:var(--letter-ink);box-shadow:inset 0 0 0 1px var(--letter-ink)}.letter-options button>span{font-size:25px;line-height:1}.letter-options b{font-size:12px}.letter-options small{font-size:10px;color:inherit;line-height:1.5;word-break:keep-all}.letter-options button:focus-visible{outline:3px solid #9679b5;outline-offset:2px}
@media(max-width:420px){.letter-options{grid-template-columns:repeat(2,minmax(0,1fr))}.letter-options button{padding:11px 7px}.letter-options small{font-size:10px}}
.letter-choice-star{--letter-paper:#f4edf5;--letter-ink:#594956}.letter-choice-flower{--letter-paper:#fbe9e3;--letter-ink:#704f49}.letter-choice-cloud{--letter-paper:#eaf3f3;--letter-ink:#48636c}.letter-choice-postcard{--letter-paper:#f9efd9;--letter-ink:#65533e}

/* Explicit sizing and an independent scroller avoid collapsed long settings in WebView. */
dialog.settings-dialog{padding:0;width:calc(100% - 28px);max-width:560px;height:86vh;max-height:840px;overflow:hidden;border-radius:24px}
dialog.settings-dialog[open]{display:flex;flex-direction:column}
.settings-dialog>.dialog-heading{flex:0 0 auto;margin:0;padding:18px 22px 14px;border-bottom:1px solid var(--line);background:var(--paper)}
.settings-dialog>.dialog-heading h2{font-size:20px;line-height:1.5}
.settings-body{display:block;flex:1 1 0;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;padding:22px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
.settings-body:focus{outline:none}.settings-body:focus-visible{outline:2px solid #9679b5;outline-offset:-3px}

@media(max-width:760px){dialog.settings-dialog{width:calc(100% - 24px);border-radius:22px}.settings-dialog>.dialog-heading{padding:14px 18px 12px}.settings-dialog>.dialog-heading h2{font-size:19px}.settings-body{padding:20px 18px}}

/* Service information, shared by desktop and mobile brand buttons. */
button.brand,button.mobile-brand{padding:0;text-align:left}.app-info-brand{text-align:center;margin:12px 0 24px}.app-info-brand img{display:block;margin:0 auto 12px}.app-info-brand h3{margin-bottom:8px}.app-info-brand p{color:var(--muted);font-size:13px}.app-info-features{padding-left:20px;line-height:1.9;font-size:14px}.app-info-details{border-block:1px solid var(--line);padding:14px 0;margin:24px 0}.app-info-details>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:8px 0;font-size:14px}.app-info-details dt{color:var(--muted)}.app-info-details dd{margin:0;overflow-wrap:anywhere}.app-info-details a{text-decoration:underline;text-underline-offset:3px}.app-info-privacy{display:block;padding:16px;border:1px solid var(--line);border-radius:12px;color:var(--coral-dark);margin-bottom:12px;font-size:14px}

/* The native dialog is only the full-screen host. Size the visible panel independently. */
#modal{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;padding:14px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
#modal[open]{display:flex;align-items:center;justify-content:center}
#modal .modal-panel{display:flex;flex-direction:column;flex:0 1 560px;min-width:0;width:100%;max-height:86vh;overflow:hidden;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:24px;box-shadow:0 30px 90px #3d2c2733}
#modal .dialog-heading{flex:0 0 auto;margin:0;padding:16px 20px;border-bottom:1px solid var(--line)}
#modal .dialog-heading h2{font-size:19px;line-height:1.5}
#modal .modal-body{flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;padding:20px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#modal.settings-dialog .modal-body{flex-basis:0}

body.journal-locked{overflow:hidden}body.journal-locked>.app-shell,body.journal-locked>.bottom-nav,body.journal-locked>#toast{visibility:hidden!important;pointer-events:none!important}
#journal-lock-screen[hidden]{display:none!important}#journal-lock-screen{position:fixed;inset:0;z-index:10000;overflow:auto;background:#fff9f1;display:flex;align-items:center;justify-content:center;padding:30px 22px}.lock-card{width:100%;max-width:390px;text-align:center}.lock-card>img{display:block;margin:0 auto 24px}.lock-card h1{font-size:29px;margin:20px 0;line-height:1.6;color:#6a535f}.lock-card p{font-size:13px;color:#7a6c60}.lock-card input{display:block;width:100%;padding:16px;text-align:center;letter-spacing:12px;font-size:25px;border:1px solid #cdb8cd;border-radius:14px;background:#fffdf8;color:#594956}.lock-card .primary{width:100%;margin:10px 0 24px}.lock-card details{text-align:left;font-size:12px;color:#7a6c60}.lock-card summary{cursor:pointer;min-height:44px}.lock-settings{padding-bottom:22px;margin-bottom:25px;border-bottom:1px solid var(--line)}

/* Keep dialog gestures inside the popup, including at its scroll limits. */
body.modal-open{overflow:hidden;overscroll-behavior:none}
#modal{overscroll-behavior:none}

.quote-another:disabled{opacity:.45;cursor:default;text-decoration:none;color:#715779}

/* A quiet daily note: no action, counter, or fixed height competing with writing. */
.daily-shining{display:flex;align-items:flex-start;gap:13px;margin:0 0 22px;padding:17px 21px;border:1px solid #efd8cd;border-radius:18px;background:linear-gradient(110deg,#fff7ec,#fce9e1);box-shadow:0 3px 12px #b2806210}
.daily-shining-star{flex:0 0 auto;color:#be8068;font-size:25px;line-height:1.3;margin-top:1px}
.daily-shining>div{min-width:0}
.daily-shining h2{margin:0 0 6px;color:#9b6d58;font-weight:500;line-height:1.5;font-size:11px;letter-spacing:.04em}
.daily-shining p{margin:0;color:#70544b;font-size:17px;line-height:1.7;font-weight:500;word-break:keep-all;overflow-wrap:anywhere}
.message-arrives{animation:daily-message-in .28s ease-out}
@keyframes daily-message-in{from{opacity:.3;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:760px){.daily-shining{padding:14px 16px;gap:10px;margin-bottom:18px;border-radius:16px}.daily-shining p{font-size:15px}.daily-shining h2{font-size:10px}.daily-shining-star{font-size:22px}}
@media(prefers-reduced-motion:reduce){.message-arrives{animation:none}}
body.reduce-motion .message-arrives{animation:none}

.daily-shining>div{flex:1}
.daily-shining-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:6px}
.daily-shining-actions>span{font-size:10px;color:#926d5f;line-height:1.5}
.daily-shining-actions .quote-another{color:#986650;min-height:44px;padding:6px 0 6px 8px;font-size:11px;white-space:nowrap}
.home-lower.home-journal{grid-template-columns:minmax(0,1fr)}

/* Auth uses the same full-screen dialog host pattern as settings. */
#login-dialog{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100%;max-height:none;padding:14px;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;overscroll-behavior:none}
#login-dialog[open]{display:flex;align-items:center;justify-content:center}
#login-dialog .login-panel{display:flex;flex-direction:column;width:100%;max-width:480px;min-width:0;max-height:calc(100dvh - 28px);overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:0 30px 90px #3d2c2733}
#login-dialog .dialog-heading{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px 20px;border-bottom:1px solid var(--line)}
#login-dialog .dialog-heading h2{margin:0;font-size:20px;line-height:1.5}
#login-dialog .login-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:20px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#login-dialog .auth-form{margin:0;display:block}
#login-dialog .auth-form label{display:block;margin:14px 0;font-size:13px}
#login-dialog .auth-form input{display:block;width:100%;min-height:46px;margin-top:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fffdf9;color:var(--ink);font-size:16px}
#login-dialog .hint{font-size:12px;line-height:1.8;color:var(--muted)}
#login-dialog .actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#login-dialog #auth-error{color:#a64b3d;font-size:13px}
