:root[data-surface=journal],:root[data-surface=trip]{
 --bg:#fdf8f0;--white:#fffefb;--ink:#3c2b3d;--muted:#6c5969;--line:#eddfd7;
 --accent:#a43e54;--accent-ink:#92344c;--accent-soft:#fbe7e6;
 --button-ink:#fff;--radius:19px;
}
[hidden]{display:none!important}
[data-surface=journal] .sidebar,[data-surface=journal] .topbar{display:none}
[data-surface=journal] .workspace{margin:0}
[data-surface=journal] main{width:min(100%,1044px);padding:22px 24px 118px;margin:auto}
#journal-header{border-bottom:1px solid #ede0d6;background:#fffdf8}
.journal-header-inner{width:min(100%,1080px);margin:auto;padding:12px 25px;display:flex;justify-content:space-between;align-items:center}
.journal-brand{display:flex;align-items:center;gap:8px;font-size:24px;font-weight:900;line-height:1}
.journal-brand>span{display:grid;place-items:center;width:41px;height:41px;border-radius:14px;background:#e77f76;color:#fff;transform:rotate(-7deg);box-shadow:2px 3px 0 #f2c0b7}
.journal-brand>span svg{transform:rotate(7deg)}
.journal-brand small{font-size:13px;color:#a43e54;font-weight:850;margin-left:-2px;align-self:end;padding-bottom:3px}
.journal-header-actions{display:flex;align-items:center;gap:8px}
.j-icon{display:inline-grid;place-items:center;flex:none;border:1px solid #eee0d8;background:#fffdf8;width:40px;height:40px;border-radius:50%;color:#7b4863;font-weight:850;padding:0}
.j-icon:hover{background:#f9e8e6;color:#963e52}
.j-account{background:#ebdef8;border-color:#e4d2f1;color:#63418a}
#journal-nav{position:fixed;z-index:4;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-around;gap:8px;width:min(450px,calc(100% - 28px));height:70px;padding:6px 11px;background:#fffdf9f5;border:1px solid #ebdfd8;border-radius:28px;box-shadow:0 8px 30px #60365028;backdrop-filter:blur(14px)}
#journal-nav a{width:52px;height:49px;display:grid;place-items:center;border-radius:17px;color:#66506b;transition:background .2s,transform .2s}
#journal-nav a svg{width:25px;height:25px;stroke-width:1.8}
#journal-nav a:hover{transform:translateY(-2px);background:#f7ebe7}
#journal-nav a[aria-current=page]{background:#ecdff8;color:#694282}
#journal-nav .dock-journal{width:57px;height:57px;background:#f6d9d1;color:#9d4553;border-radius:19px;border:2px solid #fff9f3;box-shadow:0 3px 0 #edc0bd;transform:translateY(-4px)}
#journal-nav .dock-journal[aria-current=page]{background:#d96c67;color:white}
.journal-hero{position:relative;overflow:hidden;min-height:263px;display:flex;align-items:center;padding:25px 34px;background:#f1e7ff;border:1px solid #e6d8f4;border-radius:30px 30px 30px 13px;box-shadow:0 5px 0 #eee2f3}
.journal-hero::after{content:"";position:absolute;inset:0 10px 0 31%;background:url('/assets/journal-stickers.webp') right center / contain no-repeat;pointer-events:none}
.journal-hero>div{position:relative;z-index:1;max-width:55%}
.journal-hero h1{font-size:clamp(28px,5.4vw,59px);font-weight:950;letter-spacing:.015em;line-height:1.08;overflow-wrap:anywhere}
.journal-hero p{margin:11px 0 17px;color:#6f547d;font-weight:650;font-size:16px}
.phone-break{display:none}
[data-surface] .primary,[data-surface] .secondary{border-radius:13px;white-space:nowrap}
[data-surface=journal] .primary{background:#a43e54}
.journal-hero .primary{color:#fff;padding:10px 15px;box-shadow:0 3px 0 #7d263c}
.j-section{margin-top:25px}
.j-section-head,.j-page-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:12px}
.j-section-head h2,.j-page-head h1,.library-group h2{display:flex;align-items:center;gap:8px;font-weight:900;line-height:1.25}
.j-section-head h2{font-size:23px}
.j-section-head h2 svg,.j-page-head h1 svg,.library-group h2 svg{color:#a3475c}
.j-section-head>.primary{background:#a43e54}
.j-page-head h1{font-size:clamp(24px,5vw,38px)}
.j-page-head h1 svg{width:29px;height:29px}
.postcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.postcard{background:#fffefb;border:1px solid #eeddd3;border-radius:18px;display:block;min-width:0;overflow:hidden;box-shadow:0 4px 0 #f0dfd5;transition:transform .16s}
.postcard:hover{transform:translateY(-3px)}
.postcard-cover{height:127px;position:relative;background:repeating-radial-gradient(ellipse at 85% 100%,#f5c3c120 0 19px,#f0b9ba60 20px 22px,#f5c3c120 23px 32px),#f7dcd3;display:grid;place-items:center}
.postcard.lavender .postcard-cover{background-color:#e9dff6}
.postcard.mint .postcard-cover{background-color:#dceee5}
.postcard-cover.kyoto,.postcard.lavender .kyoto,.postcard.mint .kyoto{background:#e8c9c4 url('/assets/hero.webp') center 57%/cover no-repeat}
.cover-sticker{width:65px;height:65px;background:#fff9ee;border:3px solid white;box-shadow:2px 3px 0 #75465321;border-radius:22px;transform:rotate(-11deg);display:grid;place-items:center;color:#953d58}
.cover-sticker svg{width:33px;height:33px}
.postcard .stamp{position:absolute;right:8px;bottom:8px}
.stamp{display:inline-flex;align-items:center;gap:3px;padding:4px 8px;border-radius:9px;background:#fff8e4;color:#693e58;font-size:11px;font-weight:900}
.stamp svg,.date-note svg{width:13px;height:13px}
.postcard-body{position:relative;padding:12px 35px 13px 12px;min-height:77px;overflow-wrap:anywhere}
.postcard-body h3{font-size:18px;line-height:1.2;margin-bottom:5px;font-weight:900}
.date-note{display:inline-flex;align-items:center;gap:4px;color:#7c4861;font-size:11px;font-weight:750}
.postcard-faces{margin-top:7px}
.postcard-faces .avatar{width:26px;height:26px;font-size:10px}
.postcard-arrow{position:absolute;right:10px;bottom:12px;color:#a14d64}
.postcard-arrow svg{width:16px}
.recent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.recent-note{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left;padding:9px;background:#fffdf8;border:1px solid #efded4;border-radius:14px;overflow-wrap:anywhere}
.recent-note:hover{background:#fff1eb}
.recent-note small{display:block;color:var(--muted);font-size:11px}
.recent-note>svg:last-child{width:14px;color:#a35068}
.note-icon{width:35px;height:35px;border-radius:11px;background:#e9dff7;color:#684488;display:grid;place-items:center}
.recent-note:nth-child(2) .note-icon{background:#e0efe5;color:#4c715c}
.recent-note:nth-child(3) .note-icon{background:#f9e4d8;color:#97534a}
.j-shortcuts{display:flex;gap:8px;font-size:12px;color:#92344c;font-weight:800;white-space:nowrap}
.inbox-callout{margin-top:17px;text-align:left;display:flex;align-items:center;gap:11px;width:100%;padding:11px 15px;border:1px dashed #d6a68f;border-radius:15px;color:#7f4c59;background:#fff0dd}
.inbox-callout small{display:block;font-size:12px}
.inbox-callout>svg:last-child{margin-left:auto}
.j-empty{padding:18px 13px;background:#fff4de;border:1px dashed #e9cfa8;border-radius:15px;color:#785553;font-weight:650}
.library-search{display:flex;align-items:end;gap:10px;margin-bottom:15px}
.library-search .field{flex:1}
.j-chips .chip{border-radius:18px}
.places-grid{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
.library-group{background:#fffdf9;border:1px solid #ecddd4;border-radius:18px;padding:14px;margin-bottom:11px;overflow-wrap:anywhere}
.library-group h2{font-size:19px}
.place-note{overflow:hidden;padding:0}
.place-note img{width:100%;height:140px;object-fit:cover;display:block}
.place-note-body{padding:13px}
.place-note .row-actions{margin-top:7px}
.j-offers .panel{margin:0 0 14px}
.j-offers .page-title{padding:0;border:0}
#dialog textarea{width:100%;font:inherit;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:10px;padding:9px;resize:vertical}
#dialog .recent-note+.recent-note{margin-top:6px}
#dialog .rate-result{padding:10px;border-radius:10px;background:var(--accent-soft);font-weight:800}
#dialog .rate-result a{margin:5px}
#back-to-journal{width:33px;height:33px}
[data-surface=trip] .theme-button{display:none}
[data-surface=trip] .sidebar,[data-surface=trip] .topbar{background:#fffdf8}
[data-surface=trip] .overview-heading h1{color:#703e62}
@media(max-width:700px){.postcards,.places-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recent-list{grid-template-columns:1fr}}
@media(max-width:540px){
 [data-surface=journal] main{padding:12px 12px 110px}
 .journal-header-inner{padding:9px 13px}
 .journal-header-actions{gap:5px}
 .journal-header-actions .j-icon{width:36px;height:36px}
 .journal-hero{min-height:209px;padding:14px 12px;border-radius:22px 22px 22px 9px}
 .journal-hero::after{inset:0 0 0 36%;background-size:110% auto}
 .journal-hero>div{max-width:60%}
 .journal-hero p{font-size:13px;margin:7px 0 10px}
 .phone-break{display:inline}
 .postcards,.places-grid{gap:8px}
 .postcard-cover{height:105px}
 .postcard-body h3{font-size:15px}
 .postcard-body{padding-left:8px}
 .j-section-head h2{font-size:20px}
 .place-note img{height:102px}
 .library-group .row-actions{justify-content:flex-start}
 .library-group .row{flex-wrap:wrap}
 .j-icon{width:35px;height:35px}
 #journal-nav{bottom:max(8px,env(safe-area-inset-bottom));height:64px}
 #journal-nav a{width:46px;height:46px}
 #journal-nav .dock-journal{width:53px;height:53px}
}
@media(prefers-reduced-motion:reduce){#journal-nav a,.postcard{transition:none}}
.shopping-region>h2{font-size:16px;padding:4px 0 8px;color:#7d4261}
.shopping-region .library-group h3{display:flex;gap:6px;align-items:center}
.shopping-region .library-group h3 svg{color:#a3475c;width:17px;height:17px}
.clip-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:13em;overflow:auto}
.clip-actions{display:flex;justify-content:space-between;gap:8px;margin-top:11px}
.clip-keep{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.clip-keep input{accent-color:var(--accent)}
.library-note{white-space:pre-wrap;overflow-wrap:anywhere}
