

:root{--bg:#edf3fc;--paper:#ffffff;--ink:#263e61;--body:#50627e;--muted:#617595;--accent:#3f6fad;--line:#d9e4f3;--hover:#e3ecfa;--shadow:0 9px 35px -20px #264e8326;--star-opacity:.58;--font-serif:"Songti SC","STSong","Noto Serif SC",Georgia,serif;--font-sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color-scheme:light}
:root[data-theme="dark"]{--bg:#0f1d34;--paper:#192b46;--ink:#e0eaff;--body:#c1d0e6;--muted:#91a7c5;--accent:#a1c6fc;--line:#2c4263;--hover:#233a5b;--shadow:0 12px 32px -20px #0008;--star-opacity:.75;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-sans);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}button,input,textarea{-webkit-tap-highlight-color:transparent}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input,textarea{min-width:0}input,textarea{color:var(--ink)}img{display:block;width:100%}button{color:inherit}button,body{transition:background-color .22s,color .22s}::selection{background:#c6daf6;color:#263e61}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.journal-app{position:relative;isolation:isolate;min-height:100vh;background:radial-gradient(ellipse at 4% 0%,#cfdff58c,transparent 45%),radial-gradient(ellipse at 97% 75%,#d7e4fb66,transparent 50%)}[data-theme="dark"] .journal-app{background:radial-gradient(ellipse at 4% 0%,#34598e38,transparent 45%),radial-gradient(ellipse at 97% 75%,#3a5b8626,transparent 50%)}
/* Quiet starlight echoes the homepage without adding motion to the reading surface. */
.journal-app::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:url("/assets/journal-stars.svg");background-size:1280px 900px;opacity:var(--star-opacity)}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:228px;padding:51px 35px 30px 39px;display:flex;flex-direction:column;border-right:1px solid #bfd0ea7a;z-index:15}.brand{display:flex;gap:13px;align-items:center;background:none;text-align:left;padding:0;color:var(--accent)}.brand>span{font-family:var(--font-serif);font-size:22px;letter-spacing:3px;line-height:1.4;font-weight:600}.brand-sub{display:block;font-family:var(--font-sans);font-size:10px;letter-spacing:5px;font-weight:400;color:var(--muted);margin-top:3px}.main-nav{display:flex;flex-direction:column;gap:9px;margin-top:71px}.nav-item{display:flex;align-items:center;gap:17px;padding:13px 18px;background:transparent;color:var(--muted);border-radius:13px;text-align:left;font-size:13px;letter-spacing:2px;min-height:47px;transition:all .2s}.nav-item:hover{background:var(--hover);color:var(--ink)}.nav-item.active{background:#d8e5f8;color:var(--accent)}[data-theme="dark"] .nav-item.active{background:#2b4468}.nav-item.active>svg{stroke-width:2}.nav-count{margin-left:auto;font-size:10px;letter-spacing:0}.sidebar-bottom{margin-top:auto;display:flex;align-items:center;gap:20px;padding:20px 10px 0;position:relative}.sidebar-line{position:absolute;top:0;left:10px;right:10px;height:1px;background:var(--line)}.tiny-mark{font-family:var(--font-serif);font-size:14px;margin-left:auto;border:1px solid var(--line);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}.icon-button{width:36px;height:36px;background:transparent;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted);padding:0}.icon-button:hover:not(:disabled){color:var(--accent);background:var(--hover)}
.main-area{margin-left:228px;padding:64px clamp(36px,6.5vw,110px) 32px;max-width:1460px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:48px;padding-left:59px}.eyebrow{font-size:10px;letter-spacing:4px;color:var(--muted);display:block;margin-bottom:13px}.page-header h1{font-family:var(--font-serif);font-size:38px;font-weight:500;line-height:1.35;letter-spacing:4px;margin:0;display:flex;align-items:center;gap:15px}.title-dot{width:6px;height:6px;background:#87aee1;border-radius:50%;align-self:end;margin-bottom:11px}.header-actions{display:flex;align-items:center;gap:15px;margin-top:17px}.compose-button,.primary-button{background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;min-height:42px;padding:0 17px;font-size:12px;letter-spacing:1px;box-shadow:0 3px 9px #3f6fad18}.compose-button:hover,.primary-button:hover{filter:brightness(1.09)}[data-theme="dark"] .compose-button,[data-theme="dark"] .primary-button{color:#152b4b}.search-wrap{display:flex;align-items:center;gap:4px;border-radius:12px}.search-wrap.open{background:var(--paper);box-shadow:0 0 0 1px var(--line)}.search-wrap input{width:140px;background:transparent;border:0;padding:8px 0 8px 14px;font-size:13px;outline:none}.search-wrap input::placeholder{color:var(--muted)}
.timeline{position:relative}.month-section{margin-bottom:40px}.month-heading{display:flex;align-items:center;gap:15px;margin-bottom:24px;margin-left:17px}.month-dot{width:5px;height:5px;background:var(--accent);border-radius:50%;opacity:.55}.month-heading h2{font-size:13px;font-weight:500;letter-spacing:2px;margin:0 0 0 21px;white-space:nowrap}.month-heading h2 span{font-family:Georgia,serif;font-size:12px;letter-spacing:1px;color:var(--muted);margin-left:14px}.month-rule{height:1px;flex:1;background:var(--line);margin-left:6px}.month-count{font-family:Georgia,serif;font-size:11px;color:var(--muted);letter-spacing:1px}.timeline-entry{display:grid;grid-template-columns:59px minmax(0,1fr);position:relative;margin-bottom:24px}.day-rail{position:relative;padding-top:28px;display:flex;align-items:center;flex-direction:column;padding-right:21px}.day-rail>span{font-family:Georgia,serif;font-size:21px;line-height:1;color:var(--muted);font-weight:400}.day-rail i{display:block;position:absolute;top:68px;bottom:-13px;width:1px;background:linear-gradient(var(--line),#d9e4f355)}.timeline-entry:last-child .day-rail i{bottom:0;background:linear-gradient(var(--line),transparent)}.entry-card{background:var(--paper);padding:24px 30px 25px;border:1px solid #e0e9f88c;border-radius:20px;box-shadow:var(--shadow);position:relative;min-width:0;scroll-margin-top:40px}.card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;height:27px;margin-bottom:16px;color:var(--muted)}.card-topline time{font-size:11px;letter-spacing:.6px}.date-separator{padding:0 10px;color:var(--line)}.card-controls{display:flex;align-items:center;gap:9px}.card-controls .icon-button{height:28px;width:28px}.example-badge,.draft-badge{font-size:9px;padding:3px 6px;letter-spacing:1px;border:1px solid var(--line);border-radius:4px;color:var(--muted)}.draft-badge{color:var(--accent);background:var(--hover)}.entry-card h2{font-family:var(--font-serif);font-weight:500;font-size:25px;letter-spacing:1px;margin:0 0 17px;line-height:1.5}.entry-body{font-size:14px;line-height:2.15;color:var(--body);letter-spacing:.2px;overflow-wrap:anywhere}.entry-body p{margin:0 0 12px;white-space:pre-wrap}.entry-body p:last-child{margin-bottom:0}.entry-photos{margin-top:23px;display:grid;gap:7px;grid-template-columns:1fr 1fr;border-radius:13px;overflow:hidden}.photo-button{padding:0;overflow:hidden;background:var(--hover);width:100%;position:relative}.photo-button img{width:100%;height:100%;object-fit:cover;transition:transform .6s}.photo-button:hover img{transform:scale(1.025)}.photo-count-1{grid-template-columns:1fr}.photo-count-1 .photo-button{aspect-ratio:1.75}.photo-count-2{grid-template-columns:1.65fr 1fr}.photo-count-2 .photo-button{height:245px}.photo-count-3{grid-template-columns:1.35fr 1fr;grid-template-rows:150px 150px}.photo-count-3 .photo-button:first-child{grid-row:span 2}.photo-count-4 .photo-button{aspect-ratio:1.5}.entry-location{display:flex;gap:6px;align-items:center;font-size:10px;color:var(--muted);margin-top:17px;letter-spacing:.5px}.text-only{padding-bottom:31px}.text-only .entry-body{padding-bottom:3px}.entry-menu{position:relative}.menu-scrim{position:fixed;inset:0;background:transparent;z-index:30;cursor:default}.popover{position:absolute;right:0;top:35px;min-width:122px;background:var(--paper);border:1px solid var(--line);border-radius:11px;padding:5px;z-index:31;box-shadow:0 6px 28px #264e8318}.popover button{display:flex;align-items:center;gap:9px;white-space:nowrap;width:100%;padding:11px 12px;border-radius:7px;background:none;font-size:12px;text-align:left}.popover button:hover{background:var(--hover)}.danger{color:#a26459!important}.page-footer{display:flex;align-items:center;justify-content:center;gap:20px;margin:52px 0 0 59px;opacity:.3;color:var(--accent)}.page-footer>span{height:1px;width:44px;background:var(--muted)}.page-footer svg{width:23px;height:23px}.detail-view{margin-left:59px}.back-button{display:flex;gap:8px;align-items:center;background:none;font-size:12px;color:var(--muted);margin-bottom:22px;padding:0}.gallery{margin-left:59px;columns:2;gap:18px}.gallery-item{display:block;position:relative;padding:0;border-radius:17px;overflow:hidden;margin-bottom:18px;background:var(--paper);width:100%;break-inside:avoid}.gallery-item img{height:auto;transition:transform .6s}.gallery-item:hover img{transform:scale(1.025)}.gallery-item>span{position:absolute;bottom:12px;left:13px;font-size:10px;color:white;background:#172f535c;padding:5px 8px;border-radius:6px;backdrop-filter:blur(8px);letter-spacing:1px}.archive{margin-left:59px;background:var(--paper);border-radius:20px;padding:28px 32px;border:1px solid var(--line)}.archive section+section{margin-top:32px}.archive h2{font:27px Georgia,serif;margin:5px 0 25px;letter-spacing:1px}.archive h2>span{font:12px var(--font-sans);margin-left:18px;color:var(--muted)}.archive-item{display:flex;align-items:center;gap:18px;width:100%;padding:20px 0;background:none;border-bottom:1px solid var(--line);text-align:left}.archive-item:last-child{border:0}.archive-day{font:20px Georgia,serif;color:var(--muted);width:25px}.archive-title{font-family:var(--font-serif);font-size:18px;line-height:1.5;flex:1;overflow-wrap:anywhere}.archive-item>svg{color:var(--muted);flex-shrink:0}.archive-item:hover .archive-title{color:var(--accent)}.empty-state{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin-left:59px;color:var(--muted);gap:10px}.empty-state>div{width:77px;height:77px;background:var(--hover);border-radius:26px;display:grid;place-items:center;color:var(--accent)}.empty-state p{font-family:var(--font-serif);font-size:19px;letter-spacing:2px;margin:15px 0 5px}.empty-state button{display:flex;align-items:center;gap:8px;background:transparent;color:var(--accent);font-size:12px;padding:10px}
.modal{padding:0;border:1px solid var(--line);border-radius:22px;background:var(--paper);color:var(--ink);max-height:90dvh;box-shadow:0 30px 90px #17376230}.modal::backdrop{background:#203b6055;backdrop-filter:blur(9px)}.editor-modal{width:min(740px,calc(100vw - 40px));position:fixed;overflow:visible}.editor-modal>div{position:relative}.editor-header{display:flex;align-items:center;justify-content:space-between;height:72px;border-bottom:1px solid var(--line);padding:0 24px}.editor-header>div{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:1px}.editor-header>div:first-child{color:var(--accent)}.editor-content{padding:28px 36px 24px;overflow-y:auto;max-height:calc(90dvh - 157px);scrollbar-width:thin;scrollbar-color:var(--line) transparent}.editor-date{display:flex;align-items:center;gap:7px;color:var(--muted);margin-bottom:24px}.editor-date input{background:none;border:0;padding:0;font-size:12px;color:var(--muted);width:120px}.editor-title{display:block;width:100%;font-family:var(--font-serif);font-size:27px;line-height:1.5;letter-spacing:1px;border:0;background:none;padding:0;margin-bottom:22px;outline:none}.editor-title::placeholder{color:var(--muted);opacity:.55}.editor-body{display:block;width:100%;font-size:15px;line-height:2.1;resize:none;border:0;background:none;padding:0;outline:none;max-height:none;color:var(--body)}.editor-body::placeholder{color:var(--muted);opacity:.6}.editor-images{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.editor-photo{position:relative;aspect-ratio:1.3;border-radius:11px;overflow:hidden;background:var(--hover)}.editor-photo img{height:100%;object-fit:cover}.editor-photo>span{position:absolute;top:7px;left:8px;font-size:10px;color:white;background:#17345c55;border-radius:4px;padding:3px 6px}.photo-tools{position:absolute;bottom:5px;left:5px;right:5px;display:flex;gap:3px;justify-content:center;background:#f1f6ffeb;padding:3px;border-radius:7px;backdrop-filter:blur(5px)}.photo-tools .icon-button{color:#3a6399;width:26px;height:24px;border-radius:5px}.photo-tools .icon-button:last-child{margin-left:auto}.editor-footer{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-top:1px solid var(--line);gap:15px}.editor-footer>div{display:flex;gap:8px;align-items:center}.soft-button{background:var(--hover);color:var(--accent);min-height:39px;border-radius:10px;padding:0 15px;font-size:12px}.primary-button{min-height:39px;padding:0 18px;border-radius:10px}.location-input{display:flex;align-items:center;gap:8px;color:var(--muted);margin-top:22px}.location-input input{background:none;border:0;padding:5px 0;font-size:12px;width:100%}.location-input input::placeholder{color:var(--muted)}.upload-progress{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:12px;margin-top:14px}.form-error{margin:0;padding:0 36px 15px;color:#b36656;font-size:12px}.drop-hint{position:absolute;inset:72px 10px 76px;background:#e5eefcdf;border:2px dashed #91b3e2;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:13px;pointer-events:none;color:#3e70ac;font-size:14px;z-index:5}.editor-content .entry-card{box-shadow:none;border:0;padding:0}.editor-content .entry-card .entry-menu{display:none}.toast{position:fixed;bottom:32px;left:calc(50% + 100px);transform:translateX(-50%);display:flex;align-items:center;gap:9px;background:var(--ink);color:var(--paper);padding:13px 20px;border-radius:12px;font-size:12px;box-shadow:0 5px 25px #193c6720;z-index:60;white-space:nowrap}.confirm-modal{width:340px;padding:32px;text-align:center}.confirm-modal>svg{color:#b97c6c;margin:auto}.confirm-modal h2{font-family:var(--font-serif);font-size:23px;font-weight:500;margin:17px 0 10px}.confirm-modal p{font-size:12px;color:var(--muted);margin:0 0 24px}.confirm-modal>div{display:flex;justify-content:center;gap:10px}.danger-button{background:#b97866;color:white;min-width:86px;min-height:39px;border-radius:10px;font-size:12px;display:grid;place-items:center}.lightbox-modal{max-width:none;max-height:none;width:100vw;height:100dvh;background:transparent;border:0;box-shadow:none;margin:0;border-radius:0;outline:none}.lightbox-modal::backdrop{background:#09162ce8;backdrop-filter:blur(15px)}.lightbox-body{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:60px 90px}.lightbox-body>img{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;border-radius:6px}.lightbox-body .icon-button{color:#fff;background:#ffffff12;width:44px;height:44px;border-radius:50%;position:absolute}.lightbox-body .icon-button:hover{background:#ffffff29}.lightbox-close{right:28px;top:24px}.lightbox-prev{left:25px;top:calc(50% - 22px)}.lightbox-next{right:25px;top:calc(50% - 22px)}.lightbox-counter{position:absolute;bottom:23px;color:#c6d6ef;font-size:12px;letter-spacing:3px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.main-area{margin-right:auto;margin-left:228px;max-width:1230px}.page-header{margin-bottom:54px}.photo-count-2 .photo-button{height:300px}}
@media(max-width:1150px){.sidebar{width:180px;padding:45px 22px}.brand{gap:10px}.brand>span{font-size:20px}.main-area{margin-left:180px;padding:54px 35px 25px}.nav-item{gap:14px;padding:13px 15px}.page-header{padding-left:45px}.timeline-entry{grid-template-columns:45px minmax(0,1fr)}.day-rail{padding-right:16px}.month-heading{margin-left:12px}.month-heading h2{margin-left:12px}.entry-card{padding:23px 25px}.gallery,.archive,.detail-view,.empty-state,.page-footer{margin-left:45px}.page-header h1{font-size:34px}.photo-count-2 .photo-button{height:230px}.header-actions{gap:8px}.search-wrap.open{position:relative}.search-wrap input{width:100px}}
@media(max-width:820px){.sidebar{width:82px;padding:37px 20px;border-right:1px solid var(--line)}.brand{justify-content:center}.brand>span{display:none}.brand svg{width:36px;height:36px}.main-nav{margin-top:52px;gap:16px}.nav-item{padding:12px;justify-content:center;border-radius:13px;position:relative}.nav-item>span{display:none}.nav-item>.nav-count{display:block;position:absolute;top:4px;right:3px;font-size:9px;background:var(--paper);padding:1px 4px;border-radius:4px}.sidebar-bottom{padding:20px 0 0;justify-content:center}.tiny-mark{display:none}.sidebar-line{left:3px;right:3px}.main-area{margin-left:82px;padding:43px 28px 25px}.page-header{margin-bottom:35px;padding-left:38px}.page-header h1{font-size:31px;letter-spacing:3px}.eyebrow{font-size:9px;margin-bottom:9px;letter-spacing:3px}.compose-button{padding:0 12px;min-height:38px;font-size:11px}.timeline-entry{grid-template-columns:38px minmax(0,1fr)}.day-rail{padding-right:12px}.day-rail>span{font-size:18px}.month-heading{margin-left:9px}.month-heading h2{margin-left:9px}.gallery,.archive,.detail-view,.empty-state,.page-footer{margin-left:38px}.entry-card h2{font-size:23px}.entry-body{font-size:13px;line-height:2.1}.entry-card{padding:20px 22px;border-radius:18px}.card-topline{margin-bottom:13px}.photo-count-2 .photo-button{height:195px}.photo-count-3{grid-template-rows:110px 110px}.gallery{gap:13px}.gallery-item{margin-bottom:13px}.search-wrap.open{position:absolute;top:119px;left:calc(82px + 66px);right:28px;z-index:16}.search-wrap input{flex:1;width:auto}.toast{left:calc(50% + 40px)}}
@media(max-width:600px){.sidebar{top:auto;bottom:14px;left:50%;transform:translateX(-50%);height:58px;width:auto;min-width:255px;padding:7px;background:var(--paper);border:1px solid var(--line);border-radius:19px;box-shadow:0 7px 35px #20436f24;display:flex;flex-direction:row;align-items:center;gap:7px}.sidebar .brand,.sidebar-bottom{display:none}.main-nav{margin:0;flex-direction:row;gap:7px}.nav-item{width:51px;height:42px;min-height:42px;padding:10px;border-radius:12px}.main-area{margin-left:0;padding:34px 17px 90px}.page-header{padding-left:0;margin-bottom:30px;gap:10px}.page-header h1{font-size:30px;letter-spacing:3px;gap:11px}.eyebrow{font-size:8px;margin-bottom:8px}.header-actions{margin-top:11px;gap:5px}.header-actions .icon-button{width:30px;height:34px}.compose-button{width:36px;height:36px;min-height:36px;padding:0;border-radius:11px}.compose-button>span{display:none}.title-dot{width:5px;height:5px;margin-bottom:9px}.month-heading{margin-left:2px;margin-bottom:18px;gap:10px}.month-heading h2{margin-left:0;font-size:12px}.month-heading h2 span{font-size:11px;margin-left:12px}.month-dot{width:4px;height:4px}.timeline-entry{display:block;margin-bottom:18px}.day-rail{display:none}.entry-card{padding:20px 20px 22px;border-radius:17px}.entry-card h2{font-size:23px;letter-spacing:.5px;margin-bottom:13px}.entry-body{font-size:14px;line-height:2}.entry-body p{margin-bottom:11px}.card-topline time{font-size:10px}.example-badge,.draft-badge{font-size:8px}.card-topline{margin-bottom:13px}.entry-photos{margin-top:19px;gap:5px;border-radius:10px}.photo-count-2{grid-template-columns:1.4fr 1fr}.photo-count-2 .photo-button{height:185px}.photo-count-1 .photo-button{aspect-ratio:1.4}.photo-count-3{grid-template-rows:100px 100px}.photo-count-4 .photo-button{aspect-ratio:1.2}.entry-location{margin-top:14px;font-size:10px}.text-only{padding-bottom:26px}.month-section{margin-bottom:30px}.gallery,.archive,.detail-view,.empty-state,.page-footer{margin-left:0}.gallery{gap:10px}.gallery-item{margin-bottom:10px;border-radius:12px}.gallery-item>span{font-size:8px;bottom:8px;left:8px;padding:4px 5px}.archive{padding:24px 20px;border-radius:17px}.archive-item{gap:14px;padding:18px 0}.archive-title{font-size:17px}.archive-day{font-size:19px;width:22px}.archive-item>svg{width:15px}.page-footer{margin-top:35px}.toast{left:50%;bottom:87px;max-width:calc(100vw - 30px);white-space:normal;line-height:1.6}.search-wrap.open{left:17px;right:17px;top:106px}.editor-modal{width:100vw;max-height:100dvh;height:100dvh;margin:0;border-radius:0;border:0;inset:0}.editor-modal>div{height:100%;display:flex;flex-direction:column}.editor-header{height:63px;flex-shrink:0;padding:0 18px}.editor-content{padding:25px 24px;max-height:none;flex:1;overflow-y:auto}.editor-title{font-size:25px}.editor-body{font-size:15px;line-height:2}.editor-footer{flex-shrink:0;padding:15px 18px max(16px,env(safe-area-inset-bottom));gap:8px}.editor-footer>div{gap:6px}.editor-images{gap:7px;grid-template-columns:repeat(2,1fr)}.photo-tools{left:3px;right:3px;bottom:3px;padding:2px;gap:0}.photo-tools .icon-button{width:25px}.editor-date{margin-bottom:22px}.form-error{padding:0 24px 13px}.lightbox-body{padding:62px 12px}.lightbox-body>img{border-radius:3px}.lightbox-body .lightbox-prev{left:13px;top:auto;bottom:21px;width:35px;height:35px}.lightbox-body .lightbox-next{right:13px;top:auto;bottom:21px;width:35px;height:35px}.lightbox-close{right:14px;top:15px}.drop-hint{inset:63px 8px 79px}.empty-state{min-height:350px}.confirm-modal{max-width:calc(100vw - 40px)} }
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:600px){.editor-modal{max-width:none}}
.search-wrap:focus-within{box-shadow:0 0 0 2px var(--line)}
.editor-body:focus-visible,.editor-title:focus-visible{outline:none}

[hidden]{display:none!important}a{text-decoration:none;color:inherit}.sidebar .brand-sub{letter-spacing:0;font-size:9px}.language-button{font-size:12px}.account-link{display:inline-flex}.loading-state{margin:90px auto;color:var(--muted);text-align:center}.more-button{display:block;margin:25px auto 0;background:var(--hover);padding:11px 20px;border-radius:10px;color:var(--accent);font-size:12px}.photo-button img[data-photo-path]{background:var(--hover)}.toast.error{background:#965b4f}.editor-title,.editor-body{outline:none}.restore-button{background:var(--hover);border-radius:9px;padding:8px 12px;color:var(--accent);font-size:11px;margin-top:20px}.theme-label{display:none}.brand{line-height:1.2}.brand svg{flex-shrink:0}.account-link svg{width:18px;height:18px}.editor-header svg,.editor-footer svg,.page-header svg,.main-nav svg{flex-shrink:0}.native-menu{position:relative}.native-menu>summary{list-style:none;cursor:pointer}.native-menu>summary::-webkit-details-marker{display:none}.native-menu .popover{top:33px}.main-nav .nav-item svg{flex-shrink:0}.entry-card:target{box-shadow:0 0 0 2px var(--line)}.empty-state .primary-link{font-size:12px;padding:10px;color:var(--accent)}.empty-state a{display:flex;gap:7px;align-items:center}.editor-content input:focus-visible,.editor-content textarea:focus-visible{outline:none}.unloaded-photo{opacity:0}.nav-item svg{width:21px;height:21px}.trash-entry{opacity:.7}
@media(max-width:600px){.sidebar{min-width:0}.journal-app.author .sidebar{min-width:310px}.nav-item{width:49px}.language-button{width:24px}.header-actions{gap:3px}}
.mobile-account{display:none}.archive-day{min-width:48px;font-size:14px}.gallery-item{min-height:90px}.editor-modal .form-error{max-height:60px;overflow:auto}.journal-page svg{flex-shrink:0}
@media(max-width:600px){.mobile-account{display:inline-flex}.sidebar{padding:7px 12px}.main-area{padding-top:32px}.page-header h1{font-size:27px}.header-actions{gap:1px}.page-header .language-button{font-size:10px;width:27px}.lightbox-body{padding-bottom:75px}}
@media(min-width:601px)and(max-width:820px){.sidebar-bottom{flex-direction:column;gap:8px}}

/* Full-resolution scene; a gentle scene mask and separate reading mask. */
:root,:root[data-theme="dark"]{--bg:#142331;--paper:#162e38;--ink:#f1f6f4;--body:#e5eeec;--muted:#b0c4c6;--accent:#a9e1d7;--line:#d5ece824;--hover:#cbe9e717;--shadow:0 16px 55px #020e162b;color-scheme:dark}
body{background:#142331}.journal-app,[data-theme="dark"] .journal-app{background:none;isolation:isolate}.journal-app::before{content:none}
.scenic-background{position:fixed;inset:0;z-index:-2;pointer-events:none;overflow:hidden}.scenic-background>img{height:100%;width:100%;object-fit:cover;object-position:center 48%;filter:none}.scene-mask{position:absolute;inset:0;background:linear-gradient(180deg,#101a3026 0%,#0b1c2529 45%,#07162070 100%),linear-gradient(90deg,#091b2c52 0%,transparent 42%,#081b2933 100%)}
[data-theme="dark"] .scene-mask{background:linear-gradient(180deg,#101a3045 0%,#0b1c2552 45%,#07162099 100%),linear-gradient(90deg,#091b2c70 0%,transparent 42%,#081b294d 100%)}
.entry-card{position:relative;isolation:isolate;background:transparent;border:1px solid #e0f4f02b;border-radius:19px;box-shadow:var(--shadow);padding:25px 29px 26px;backdrop-filter:none}.entry-card::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;background:linear-gradient(115deg,#091e2be0 0%,#102c38c7 48%,#123543ad 100%)}[data-theme="dark"] .entry-card::before{background:linear-gradient(115deg,#071721ed 0%,#102831de 48%,#12313acb 100%)}
.sidebar{width:100px;padding:38px 20px 28px;border-right:1px solid #d5ece815}.brand{justify-content:center;color:#285564}.brand>span,.nav-item>span{display:none}.main-nav{margin-top:60px;gap:15px}.nav-item{justify-content:center;padding:12px;min-height:42px;width:42px;align-self:center}.nav-item.active,[data-theme="dark"] .nav-item.active{background:#c4e8df29;color:#e5f6f0}.sidebar-bottom{padding:20px 0 0;flex-direction:column;gap:10px}.sidebar-line{left:3px;right:3px}
.main-area{margin-left:auto;margin-right:0;width:min(800px,calc(100% - 114px));max-width:none;padding:56px 45px 38px}.page-header{padding-left:38px;margin-bottom:34px;gap:12px}.page-header h1{font-size:34px;text-shadow:0 1px 6px #06172688,0 4px 24px #06172666}.eyebrow,.title-dot{display:none}.header-actions{margin-top:0;gap:8px}.compose-button,.primary-button{background:#b8dfd3;color:#1e4145;box-shadow:none}[data-theme="dark"] .compose-button,[data-theme="dark"] .primary-button{color:#1e4145}.timeline-entry{grid-template-columns:38px minmax(0,1fr)}.day-rail{padding-right:12px}.day-rail>span{color:#d5e1df}.day-rail i{background:linear-gradient(#d5ece82b,transparent)}.month-heading{margin-left:0}.month-heading h2{margin-left:0}.month-dot{display:none}.gallery,.archive,.detail-view,.empty-state,.page-footer{margin-left:38px}.empty-state{color:#e5eeec}.empty-state>div{background:#102c38a8;border:1px solid var(--line)}.empty-state p{text-shadow:0 2px 12px #071620}.archive{background:#102c38dc}.modal,.popover{background:#162e38}.modal::backdrop{background:#06172099}.editor-title,.editor-body{background:transparent}.search-wrap.open{background:#162e38}.language-button{opacity:.7}.entry-photos{border-radius:12px}
@media(min-width:1000px){.scenic-background>img{width:114%;max-width:none;transform:translateX(-12.28%)}}
@media(min-width:1600px){.main-area{margin-right:7vw}}
@media(max-width:820px)and(min-width:601px){.sidebar{width:80px;padding:35px 17px}.main-area{width:calc(100% - 80px);padding:43px 24px 30px}.page-header{padding-left:0}.search-wrap.open{left:104px;right:24px}.entry-card{padding:22px}}
@media(max-width:600px){.sidebar,.journal-app.author .sidebar{width:auto;min-width:0;height:58px;padding:7px 10px;bottom:14px;top:auto;left:50%;transform:translateX(-50%);background:#102c38ed;border:1px solid #d5ece83b;border-radius:19px;flex-direction:row}.main-nav{margin:0;gap:5px;flex-direction:row}.nav-item{width:43px;min-height:42px}.sidebar .brand,.sidebar-bottom{display:none}.main-area{width:100%;margin:0;padding:32px 17px 96px}.page-header{padding-left:0;margin-bottom:28px}.page-header h1{font-size:27px;letter-spacing:2px}.header-actions{gap:2px}.timeline-entry{display:block}.entry-card{padding:21px 20px 23px}.gallery,.archive,.detail-view,.empty-state,.page-footer{margin-left:0}.search-wrap.open{left:17px;right:17px;top:90px}.compose-button{width:36px}.scenic-background>img{object-position:46% 48%}.empty-state{min-height:420px}}

/* A distinct, quiet navigation rail against the night landscape. */
.sidebar{background:linear-gradient(180deg,#102b39ed,#091b28f2);border-right:1px solid #b9e4db45;box-shadow:8px 0 30px #020d1726}.brand{color:#4c8d8b}.brand svg{filter:drop-shadow(0 3px 9px #0003)}.nav-item{color:#d3e8e5;border:1px solid #baded21c;background:#b4e3d609;width:48px;min-height:48px;border-radius:14px;position:relative}.nav-item:hover{background:#b4e3d621;color:#fff;border-color:#c3e8df4d}.nav-item.active,[data-theme="dark"] .nav-item.active{background:#b6dfd8;color:#173d43;border-color:#def5ed;box-shadow:0 4px 18px #020d173d}.nav-item.active::before{content:"";position:absolute;left:-13px;top:14px;bottom:14px;width:3px;border-radius:3px;background:#b6dfd8}.nav-item svg{width:23px;height:23px}.sidebar-bottom .account-link{color:#d3e8e5;border:1px solid #baded22b;background:#b4e3d60d;width:44px;height:44px}.sidebar-line{background:#c3e8df40}
@media(max-width:820px)and(min-width:601px){.nav-item{width:44px;min-height:44px}.nav-item.active::before{left:-10px}}
@media(max-width:600px){.sidebar,.journal-app.author .sidebar{background:#0c2331f5;border:1px solid #b9e4db66;box-shadow:0 8px 30px #020d1780}.nav-item{width:43px;min-height:42px;height:42px;border-radius:11px}.nav-item.active::before{display:none}}

/* Preserve natural star detail without sharpening the camera noise. */
.scene-filter-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.scenic-background>img{filter:none;image-rendering:auto}
.scene-mask,[data-theme="dark"] .scene-mask{background:linear-gradient(180deg,#101a3014 0%,#0b1c251f 34%,#07162045 58%,#0716208c 100%),linear-gradient(90deg,#091b2c2b 0%,transparent 35%,#081b2926 100%)}
@media(min-width:1000px){.scenic-background>img{width:100%;transform:none;object-position:center 48%}}

/* A single reading surface with an optional classical literature collection. */
.journal-home{position:fixed;top:30px;left:30px;z-index:20;background:#152b38d9;border:1px solid #a9e1d73d;border-radius:14px;width:44px;height:44px}.feed-toolbar{display:flex;align-items:center;gap:16px;padding:0 0 28px;margin-top:-15px}.feed-toolbar nav{display:flex;gap:24px;flex:1}.column-tab{background:transparent;padding:10px 0;color:var(--muted);font-family:var(--font-serif);font-size:15px;border-bottom:1px solid transparent}.column-tab.active{color:var(--accent);border-color:var(--accent)}.date-filter{display:flex;align-items:center;gap:4px}.date-filter input{width:136px;font-size:12px;background:#142b3899;border:1px solid #a9e1d733;border-radius:8px;color:var(--muted);padding:6px}.feed-toolbar .native-menu{position:relative}.mobile-account{display:flex!important}.editor-date select{background:transparent;color:var(--accent);border:0;font:inherit;padding:5px 12px 5px 0;margin-right:12px}.entry-video{grid-column:1/-1;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#203d4d,#101f2b)}.video-start{width:100%;height:100%;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#d0eee9}.video-start svg{width:44px;height:44px;padding:10px;border:1px solid #a9e1d766;border-radius:50%}.video-start span{font-size:12px;opacity:.65}.entry-video video{width:100%;height:100%;display:block;background:#09151c}.editor-video{width:100%;height:100%;min-height:120px;display:flex;align-items:center;justify-content:center;gap:8px;background:#203d4d}.main-area{margin-left:auto!important}
@media(max-width:600px){.journal-home{top:18px;left:16px;width:36px;height:36px}.main-area{width:100%!important;padding:86px 18px 40px!important}.page-header{gap:12px;padding-bottom:28px}.heading-wrap h1{font-size:27px}.header-actions{gap:4px}.compose-button{padding:9px}.compose-button span{display:none}.feed-toolbar{gap:8px;padding-bottom:20px}.feed-toolbar nav{gap:20px}.date-filter input{width:128px}.search-wrap.open{position:absolute;top:48px;left:0;right:0}.search-wrap.open input{width:100%}.timeline-entry{padding-left:24px}.entry-card{padding:22px 18px}.day-rail{left:-3px}.editor-date{flex-wrap:wrap}}

/* Keep the established side rail, with just two content collections. */
.sidebar .brand{display:flex;justify-content:center}.sidebar .brand svg{width:25px;height:25px}.main-nav{gap:16px}.feed-toolbar{justify-content:flex-end}.mobile-account{display:none!important}.sidebar-bottom .popover{left:100%;right:auto;bottom:0;top:auto}.sidebar-bottom{gap:12px}.main-area{width:min(800px,calc(100% - 114px))!important}
@media(max-width:600px){.main-area{width:100%!important;padding:40px 18px 114px!important}.main-nav{gap:14px}.sidebar .brand{display:none}.sidebar-bottom .popover{left:auto;right:0;bottom:56px}.feed-toolbar{margin-top:-10px}.sidebar-bottom{display:flex!important;flex-direction:row;gap:6px}.sidebar-bottom .sidebar-line{display:none}.mobile-account{display:none!important}}

.sidebar .nav-item{height:66px;flex-direction:column;gap:8px;padding:10px 5px}.sidebar .nav-item span{display:block!important;font-size:11px;line-height:1.2;white-space:nowrap}.sidebar .nav-item svg{width:20px;height:20px}.sidebar .brand{color:var(--accent)}
@media(max-width:600px){.sidebar .nav-item{height:52px;padding:5px 10px;gap:5px}.sidebar .nav-item span{font-size:10px}}

@media(max-width:600px){.sidebar-bottom{margin:0;padding:0;align-items:center}.sidebar{align-items:center}.sidebar-bottom .account-link{width:38px;height:38px}.sidebar-bottom .native-menu{display:flex;align-items:center}}

/* One oversized photograph always covers the viewport throughout the camera pan. */
html:has(.journal-page){scrollbar-width:none}html:has(.journal-page)::-webkit-scrollbar{display:none}
.journal-app,[data-theme="dark"] .journal-app{background:none}.journal-app::before{display:none}
.scenic-background{inset:-2px;contain:paint}
/* Both backgrounds stay fixed: a dissolve preserves detail and avoids a sliding-image effect. */
.scenic-background .scene-landscape{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;filter:none;opacity:1;transform:none;transition:opacity 1700ms cubic-bezier(.4,0,.2,1);will-change:opacity}
.scenic-background .scene-sky{position:absolute;inset:-8svh 0 auto;width:100%;height:140svh;max-width:none;object-fit:cover;object-position:center top;filter:none;transform:none}
.scene-mask,[data-theme="dark"] .scene-mask{background:linear-gradient(90deg,#061b291c,transparent 40%,#071b2940),linear-gradient(0deg,#071b2940,transparent 65%);transition:opacity 1500ms ease}
.scene-mask::after{content:"";position:absolute;inset:0;background:#09283c26;opacity:0;transition:opacity 1500ms ease}
.main-area,.sidebar{transition:opacity 450ms cubic-bezier(.4,0,.2,1);transition-delay:500ms}
body.is-composing{overflow:hidden}body.is-composing .scene-landscape{opacity:0}
body.is-composing .main-area,body.is-composing .sidebar{opacity:0;pointer-events:none;transition-delay:0ms}
body.is-composing .scene-mask::after{opacity:1}
#journalEditor{background:linear-gradient(135deg,#739da72b,#102d3a75 50%,#1738456b);border:1px solid #dcf4f36b;border-radius:30px;box-shadow:0 32px 100px #03101b55,inset 0 1px 0 #ffffffe0,inset 0 -1px 0 #ffffff18;backdrop-filter:blur(22px) saturate(135%);-webkit-backdrop-filter:blur(22px) saturate(135%);width:min(780px,calc(100vw - 64px));max-height:calc(100dvh - 64px);opacity:0;transform:translateY(8px) scale(.995);transition:opacity 900ms cubic-bezier(.4,0,.2,1),transform 1100ms cubic-bezier(.4,0,.2,1);transition-delay:0ms;overflow:hidden;color:#edf7f5}
#journalEditor::backdrop{background:transparent;backdrop-filter:none;transition:none}
body.is-composing #journalEditor{opacity:1;transform:translateY(0) scale(1);transition-delay:400ms}
#journalEditor .editor-header{background:#ffffff04;border-bottom:1px solid #def5ef26}#journalEditor .editor-footer{background:#0c253726;border-top:1px solid #def5ef26}#journalEditor .editor-title,#journalEditor .editor-body{color:#f1f7f5}#journalEditor input::placeholder,#journalEditor textarea::placeholder{color:#d4e8e5b3}#journalEditor .editor-content{min-height:330px}#journalEditor .editor-body{min-height:260px}#journalEditor .editor-date{color:#d0e5e4}#journalEditor .editor-date select option{background:#193846}
@media(max-width:600px){#journalEditor{width:calc(100vw - 24px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);margin:auto;inset:0;border-radius:24px}#journalEditor>div{height:100%}#journalEditor .editor-content{flex:1;min-height:0;max-height:none;padding:24px 22px}#journalEditor .editor-body{min-height:220px}#journalEditor .editor-footer{padding:16px 18px}}
@media(prefers-reduced-motion:reduce){.scenic-background .scene-landscape,.scenic-background .scene-sky,.scene-mask::after,.main-area,.sidebar,#journalEditor{transition-duration:1ms!important;transition-delay:0ms!important}}

@media(max-width:600px){.scenic-background .scene-landscape{object-position:35% center}}

/* A single compact writing entry point in the header. */
#journalCompose{width:42px;padding:0;flex-shrink:0}

/* Public author cards use the same initial avatar as Zhijiao. */
.entry-author{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;min-width:0}.author-avatar{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid rgba(183,226,218,.25);border-radius:50%;background:rgba(133,187,180,.18);color:#d1ebe5;font:500 12px/1 system-ui}.author-name{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 13px/1.4 system-ui}.entry-author:hover .author-avatar,.entry-author:focus-visible .author-avatar{border-color:#c0e2d9;background:rgba(133,187,180,.3)}.card-topline{gap:14px;flex-wrap:wrap}.card-topline time{margin-left:auto}.author-heading{display:flex;align-items:center;gap:14px;margin:0 0 28px}.author-heading .author-avatar{width:48px;height:48px;flex-basis:48px;font-size:16px}.author-heading .author-name{font-size:19px}.card-controls{margin-left:0}@media(max-width:600px){.author-name{max-width:125px}.card-topline{gap:9px}.card-topline time{font-size:10px}}

.entry-discussion{margin-top:24px;padding-top:15px;border-top:1px solid var(--line)}.comment-toggle{display:inline-flex;align-items:center;gap:8px;padding:4px 0;background:none;color:var(--muted);font-size:12px}.comment-toggle:hover{color:var(--ink)}.comment-panel{padding-top:16px}.comment-item{padding:14px 0;border-bottom:1px solid var(--line)}.comment-top{display:flex;align-items:center;gap:10px}.comment-top time{margin-left:auto;font-size:10px;color:var(--muted)}.comment-top .author-avatar{width:28px;height:28px;flex-basis:28px;font-size:10px}.comment-body{font:14px/1.8 var(--font-sans);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0 38px;color:var(--ink)}.comment-form{display:flex;align-items:flex-end;gap:10px;margin-top:18px}.comment-form textarea{min-width:0;flex:1;resize:vertical;min-height:70px;max-height:260px;padding:12px;border:1px solid var(--line);border-radius:12px;background:rgba(10,28,37,.55);color:var(--ink);font:14px/1.7 var(--font-sans)}.comment-form textarea:focus{outline:1px solid #baded5}.comment-form .primary-button{padding:10px 15px}.comment-status,.comment-login{display:block;color:var(--muted);font-size:12px;margin:15px 0}.comment-top .author-name{max-width:140px}@media(max-width:600px){.comment-top{gap:7px}.comment-top .author-name{max-width:90px}.comment-form{gap:7px}}


/* Let prose and media share the reading surface on wider screens. */
.entry-layout:not(.has-copy) .entry-copy{display:none}
.entry-copy{min-width:0}
.entry-layout .entry-photos{min-width:0;align-self:start}
.entry-layout .photo-count-1 .photo-button{aspect-ratio:auto;background:transparent}
.entry-layout .photo-count-1 .photo-button img{display:block;height:auto;max-height:440px;object-fit:contain;background:transparent}
@media(min-width:1000px){
 .main-area{width:min(1240px,calc(100% - 140px))!important;margin-right:auto;padding:56px clamp(28px,4vw,56px) 38px}
 .main-area .entry-layout.has-media.has-copy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:32px;align-items:start}
 .main-area .entry-layout.has-media.has-copy .entry-photos{margin-top:0}
 .main-area .entry-layout.has-media.has-copy .entry-body{line-height:2.05}
}
@media(max-width:999px){.entry-layout:not(.has-copy) .entry-photos{margin-top:0}}


/* Neutral clear glass: the landscape supplies the colour, with a quiet reading scrim. */
.entry-card,#journalEditor{--ink:#fff;--body:#fafafa;--muted:#f4f4f4;--accent:#fff;--line:#ffffff30;--hover:#ffffff13;color:var(--ink);color-scheme:dark}
.entry-card{border-color:#ffffff65;box-shadow:0 18px 55px #00000026,inset 0 1px 0 #ffffff8c,inset 0 -1px 0 #ffffff24;backdrop-filter:blur(8px) brightness(.55);-webkit-backdrop-filter:blur(8px) brightness(.55)}
.entry-card::before,[data-theme="dark"] .entry-card::before{background:linear-gradient(120deg,#ffffff0d,transparent 55%,#ffffff08),#00000040}
.entry-copy,.card-topline,.comment-top,.comment-body,.comment-toggle,.comment-login{text-shadow:0 1px 3px #00000080}
.entry-card .author-avatar{background:#ffffff16;border-color:#ffffff50;color:var(--ink)}
.entry-card .entry-author:hover .author-avatar,.entry-card .entry-author:focus-visible .author-avatar{background:#ffffff29;border-color:#ffffff8c}
.entry-card .popover{background:#24282bef;color:var(--ink);border-color:var(--line)}
.entry-card .comment-form textarea{background:#00000024;border-color:#ffffff50;color:var(--ink)}
.entry-card .comment-form textarea::placeholder{color:var(--muted);opacity:1}
.entry-card .comment-form textarea:focus{outline:2px solid #ffffffa6;outline-offset:2px}
.entry-card .primary-button,[data-theme="dark"] .entry-card .primary-button,#journalEditor .primary-button,[data-theme="dark"] #journalEditor .primary-button{background:#ffffffdb;color:#252b30}
.entry-card .danger{color:#ffc4ba!important}
#journalEditor{background:linear-gradient(120deg,#ffffff0d,transparent 55%,#ffffff08),#00000040;border-color:#ffffff65;backdrop-filter:blur(14px) brightness(.55);-webkit-backdrop-filter:blur(14px) brightness(.55)}
#journalEditor .editor-title,#journalEditor .editor-body,#journalEditor .editor-date{color:var(--ink);text-shadow:0 1px 3px #00000080}
#journalEditor input::placeholder,#journalEditor textarea::placeholder{color:var(--muted);opacity:1}
#journalEditor .editor-date select option{background:#24282b;color:var(--ink)}
#journalEditor .editor-header{background:#ffffff06;border-color:var(--line)}
#journalEditor .editor-footer{background:#ffffff06;border-color:var(--line)}

.comment-reply-label{margin:8px 0 0 38px;font-size:12px;color:var(--muted)}.comment-reply-button{margin:6px 0 0 38px;padding:5px 0;background:none;color:var(--muted);font-size:12px}.comment-reply-button:hover{color:var(--ink)}.comment-reply-button:focus-visible{outline:2px solid #ffffffa6;outline-offset:3px}.comment-reply-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding:8px 12px;border-left:2px solid #ffffff80;background:#ffffff08;border-radius:0 8px 8px 0;font-size:12px;color:var(--ink)}.comment-reply-context+.comment-form{margin-top:8px}.comment-reply-context span{min-width:0;overflow-wrap:anywhere}

.personal-panel{margin-bottom:28px;border:1px solid #ffffff52;border-radius:24px;background:#ffffff0a;backdrop-filter:blur(8px);padding:26px 28px;color:#fff;box-shadow:inset 0 1px #ffffff50}.personal-identity{display:flex;align-items:center;gap:18px}.personal-avatar{display:grid;place-items:center;width:62px;height:62px;flex-shrink:0;border-radius:50%;border:1px solid #ffffff70;background:#ffffff16;font:500 19px system-ui}.personal-identity h2{font:24px/1.4 var(--font-serif);margin:0 0 6px;overflow-wrap:anywhere}.personal-identity a{display:inline-flex;align-items:center;gap:5px;font:12px system-ui;color:#d5e4e7;text-decoration:none}.personal-identity a svg{width:13px;height:13px}.personal-identity>button{margin-left:auto;flex-shrink:0}.personal-tabs{display:flex;gap:8px;margin-top:24px;border-top:1px solid #ffffff26;padding-top:16px}.personal-tabs button{flex:1;padding:12px 6px;background:transparent;color:#d5e4e7;border-radius:12px;font-size:14px}.personal-tabs button.active{background:#ffffff20;color:#fff;box-shadow:inset 0 1px #ffffff52}.personal-tabs button:hover{background:#ffffff13}.saved-button.is-saved svg{fill:#ffffffaa;stroke:#fff}.saved-button:focus-visible,.personal-tabs button:focus-visible{outline:2px solid #ffffffb0;outline-offset:3px}.personal-panel+.empty-state{min-height:220px}.account-link.active{box-shadow:inset 0 0 0 1px #e8fff4}.personal-identity>div{min-width:0}@media(max-width:600px){.personal-panel{padding:20px 17px;border-radius:20px}.personal-avatar{width:48px;height:48px;font-size:15px}.personal-identity{gap:12px}.personal-identity h2{font-size:20px}.personal-tabs{gap:3px;margin-top:18px}.personal-tabs button{font-size:12px;padding:11px 3px}.card-controls{gap:4px}}


/* A quiet status stays visible through the complete feed request. */
.loading-state{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;width:fit-content;padding:12px 18px;margin:72px auto;color:var(--ink);font-size:13px;letter-spacing:.04em;border:1px solid #ffffff26;border-radius:28px;background:#ffffff0b;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.loading-ring{width:16px;height:16px;flex:none;border:1.5px solid #ffffff30;border-top-color:var(--accent);border-radius:50%;animation:spin .9s linear infinite}
.more-button:disabled{cursor:wait;opacity:.7}
@media(prefers-reduced-motion:reduce){.loading-ring{animation:none}}

/* Friend links share the journal's quiet glass surface. */
.friends-page{margin-left:38px;max-width:1050px}.friends-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.friends-tabs{display:flex;gap:6px;flex-wrap:wrap}.friends-tabs button{padding:9px 12px;background:transparent;color:var(--muted);border-radius:10px;font-size:12px}.friends-tabs button.active{background:#ffffff19;color:var(--ink)}.friends-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.friend-card{border:1px solid #ffffff42;border-radius:22px;background:linear-gradient(135deg,#ffffff0f,#ffffff04);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);box-shadow:inset 0 1px #ffffff34;overflow:hidden}.friend-visit{display:flex;align-items:center;gap:17px;padding:26px;color:var(--ink);min-height:125px}.friend-visit>div{flex:1;min-width:0}.friend-visit>svg{opacity:.55;width:16px}.friend-visit:hover{background:#ffffff0b}.friend-card h2{font:500 21px/1.5 var(--font-serif);margin:0 0 5px;overflow-wrap:anywhere}.friend-card p{color:var(--muted);font-size:12px;line-height:1.8;margin:0 0 7px;overflow-wrap:anywhere}.friend-domain{font-size:10px;color:#c4d7dfb8;overflow-wrap:anywhere}.friend-avatar{position:relative;display:grid;place-items:center;width:46px;height:46px;flex:none;border:1px solid #ffffff38;border-radius:50%;background:#c6ead914;color:#e5fff2;font:22px var(--font-serif);overflow:hidden}.friend-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.friend-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid #ffffff19}.friend-status{font-size:10px;color:var(--muted);margin-right:auto}.friend-controls .soft-button{min-height:30px;padding:0 10px}.friends-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;min-height:300px;color:var(--muted)}.friends-empty>svg{width:30px;height:30px;opacity:.6}.friends-empty p{font:15px/1.8 var(--font-serif);margin:0}.friend-editor{width:min(470px,calc(100vw - 32px));padding:28px;background:#172634dc;color:#fff;border:1px solid #ffffff52;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border-radius:24px}.friend-editor header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.friend-editor h2{font:24px var(--font-serif);margin:0}.friend-editor label{display:block;font-size:12px;color:#d5e4e7;margin:18px 0}.friend-editor input{display:block;width:100%;border:1px solid #ffffff32;border-radius:11px;padding:12px;margin-top:8px;background:#ffffff08;color:#fff;font:14px system-ui}.friend-editor input:focus-visible{outline:2px solid #bde0d4;outline-offset:2px}.friend-editor input::placeholder{color:#ffffff60}.friend-editor footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.friend-editor footer span{font-size:11px;color:var(--muted)}.friend-error{font-size:12px;color:#ffd2c6;line-height:1.7}.friend-editor button:disabled{opacity:.6;cursor:wait}.friends-page button:focus-visible,.friend-visit:focus-visible{outline:2px solid #dbf4e8;outline-offset:-3px}.friends-toolbar>.soft-button{font-size:11px;white-space:nowrap;background:transparent}
@media(max-width:950px){.friends-grid{grid-template-columns:1fr}}@media(max-width:600px){.friends-page{margin-left:0}.friends-toolbar{gap:8px;margin-bottom:18px}.friends-tabs{gap:0}.friends-tabs button{padding:9px 8px;font-size:11px}.friend-visit{padding:22px;gap:14px}.friend-card{border-radius:19px}.friend-editor{padding:23px}.friends-empty{min-height:300px}}
