@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/dm-sans-400.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/dm-sans-500.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/dm-sans-600.ttf') format('truetype')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/dm-sans-700.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('assets/fonts/space-grotesk-400.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('assets/fonts/space-grotesk-500.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('assets/fonts/space-grotesk-600.ttf') format('truetype')}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('assets/fonts/space-grotesk-700.ttf') format('truetype')}
:root{--paper:#f6f3ea;--ink:#24241f;--orange:#ed5424;--line:#d8d5cb;--muted:#77776d;--white:#fffdf7}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Microsoft YaHei',sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #ff9a6e;outline-offset:3px}.wrap{width:min(1320px,calc(100% - 80px));margin:auto}.header{height:92px;display:flex;align-items:center;border-bottom:1px solid var(--line);gap:60px}.brand{display:flex;align-items:center;gap:10px;font-family:'Space Grotesk',sans-serif;font-size:22px;font-weight:700;letter-spacing:-1.3px}.brand img{width:35px;height:35px}.brand-dot,.orange{color:var(--orange)}nav{display:flex;gap:36px;margin:auto}nav a{font-size:13px;font-weight:700;color:#75756c}nav a.active,nav a:hover{color:var(--ink)}nav a.active:after{content:'';display:block;width:5px;height:5px;background:var(--orange);border-radius:50%;margin:6px auto -11px}.header-right{display:flex;align-items:center;gap:23px}.lang,.menu{border:0;background:none;font-size:12px;font-weight:700}.lang span{color:#aaa}.contact-top,.pill{border:1px solid var(--ink);border-radius:100px;padding:13px 19px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;gap:30px}.contact-top:hover,.pill:hover{background:var(--ink);color:var(--paper)}.menu{display:none}.hero{position:relative;min-height:690px;padding-top:69px;overflow:hidden}.eyebrow{font:700 10px 'Space Grotesk',sans-serif;letter-spacing:.16em;text-transform:uppercase}.hero-top{display:flex;justify-content:space-between;align-items:start}.hero-top p{font-size:12px;color:var(--muted);line-height:1.6;margin:0}.hero-title{font-family:'Space Grotesk',sans-serif;font-size:clamp(76px,11.4vw,164px);line-height:.82;letter-spacing:-.095em;margin:63px 0 0;font-weight:700}.hero-title .second{display:block;color:var(--orange)}.hero-bottom{display:flex;align-items:end;justify-content:space-between;margin-top:38px}.hero-copy{max-width:310px;font-size:14px;line-height:1.9;color:#69695f}.hero-copy strong{display:block;color:var(--ink);font-size:17px;margin-bottom:6px}.hero-actions{display:flex;gap:10px;margin-top:24px}.pill.dark{background:var(--ink);color:var(--paper)}.pill.dark:hover{background:var(--orange);border-color:var(--orange)}.hero-cat{position:absolute;right:7%;bottom:42px;width:330px;text-align:center}.cat-orbit{height:260px;display:grid;place-items:center;position:relative}.cat-orbit:before,.cat-orbit:after{content:'';position:absolute;border:1px solid #ded9cb;border-radius:50%;width:260px;height:160px;transform:rotate(-18deg)}.cat-orbit:after{transform:rotate(18deg)}#stage{position:relative;z-index:1;touch-action:pan-y}#cat{width:200px;height:200px;display:block}.cat-caption{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;font:700 9px 'Space Grotesk';letter-spacing:.14em;color:#88877b}.ticker{background:var(--orange);color:#fff5e9;overflow:hidden;white-space:nowrap;padding:16px 0;font:700 12px 'Space Grotesk';letter-spacing:.13em}.ticker div{animation:marquee 28s linear infinite;width:max-content}.ticker span{padding:0 30px}@keyframes marquee{to{transform:translateX(-50%)}}.section{padding:105px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:38px}.section-head h2,.page-title{font:700 clamp(44px,6vw,76px)/.95 'Space Grotesk',sans-serif;letter-spacing:-.065em;margin:16px 0 0}.section-head p{max-width:270px;font-size:13px;color:var(--muted);line-height:1.8}.feature-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:16px}.feature{min-height:250px;padding:25px;border:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s,background .2s}.feature:hover{transform:translateY(-5px);background:#fffdf6}.feature:first-child{background:#e9e5d9}.feature-number{font:700 10px 'Space Grotesk';color:var(--muted)}.feature-icon{font-size:40px}.feature h3{font-size:20px;margin:0 0 8px}.feature p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}.feature-bottom{display:flex;justify-content:space-between;align-items:end}.round-arrow{width:38px;height:38px;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center}.note-strip{background:#e8e4d9;padding:70px 0}.note-inner{display:flex;justify-content:space-between;gap:30px;align-items:center}.note-inner h2{font:700 clamp(32px,4vw,55px)/1.1 'Space Grotesk';letter-spacing:-.05em;margin:14px 0}.note-inner p{color:var(--muted);font-size:13px}.footer{padding-top:70px}.footer-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:55px}.footer-title{font:700 clamp(35px,7vw,90px)/1 'Space Grotesk';letter-spacing:-.07em}.footer-title span{color:var(--orange)}.footer-top p{color:var(--muted);font-size:13px}.footer-arrow{font-size:50px}.footer-bottom{border-top:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;gap:15px;font:700 9px 'Space Grotesk';letter-spacing:.08em;color:#858579}.footer-bottom div{display:flex;gap:25px}.page{min-height:650px;padding:85px 0 110px}.page-intro{display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid var(--line);padding-bottom:38px;margin-bottom:38px}.page-intro p{max-width:330px;color:var(--muted);line-height:1.8;font-size:14px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.card{background:var(--white);border:1px solid var(--line);padding:24px;min-height:180px}.card h3{font-size:20px;margin:20px 0 10px}.card p{color:var(--muted);font-size:13px;line-height:1.7}.card small,.meta{color:var(--orange);font:700 10px 'Space Grotesk';letter-spacing:.1em}.card a.text-link{display:inline-block;margin-top:15px;font-size:12px;font-weight:700;border-bottom:1px solid;padding-bottom:5px}.tool-layout{display:grid;grid-template-columns:240px 1fr;gap:24px}.tool-list{display:flex;flex-direction:column;gap:4px}.tool-list button{border:0;background:transparent;text-align:left;padding:15px;font-weight:700;color:var(--muted)}.tool-list button.active{background:var(--ink);color:white}.tool-panel,.admin-panel{background:var(--white);border:1px solid var(--line);padding:32px}.tool-panel h2,.admin-panel h2{margin:0 0 8px}.tool-panel p,.admin-panel p{font-size:13px;color:var(--muted);line-height:1.7}.field{display:block;margin:20px 0;font-size:12px;font-weight:700}.field input,.field textarea,.field select,input,textarea,select{display:block;width:100%;border:1px solid var(--line);background:#fff;padding:13px;margin-top:8px;color:var(--ink);border-radius:0}.field textarea{min-height:130px;resize:vertical}.action{border:1px solid var(--ink);background:var(--ink);color:white;padding:13px 18px;font-size:12px;font-weight:700}.action.secondary{background:transparent;color:var(--ink)}.action:hover{background:var(--orange);border-color:var(--orange);color:white}.actions{display:flex;gap:8px;flex-wrap:wrap}.result{margin-top:20px;padding:20px;background:var(--paper);overflow-wrap:anywhere;min-height:65px}.result img,.result canvas,.result svg{max-width:100%;height:auto}.fav-icon{width:44px;height:44px;border-radius:12px;background:#eeeae0;display:grid;place-items:center;font-weight:700;font-size:18px}.fav-icon img{width:25px;height:25px}.about-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:70px}.about-lead{font-size:clamp(24px,3vw,40px);line-height:1.4;letter-spacing:-.04em}.about-copy{color:var(--muted);line-height:2}.contact-row{display:flex;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line)}.admin-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.admin-panel.full{grid-column:1/-1}.entry{padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px}.entry button{border:0;background:none;color:var(--orange)}.gallery{display:flex;gap:10px;flex-wrap:wrap}.gallery img{width:100px;height:100px;object-fit:cover}.loader{position:fixed;inset:0;background:var(--paper);z-index:100;display:flex;align-items:center;justify-content:center;flex-direction:column;transition:opacity .5s,visibility .5s}.loader.done{opacity:0;visibility:hidden}.loader img{width:72px}.loader-name{font:700 18px 'Space Grotesk';letter-spacing:-.04em;margin:10px 0 35px}.loader-name span{font-size:8px;vertical-align:top}.load-line{width:170px;height:2px;background:#d8d5cb}.load-line i{display:block;background:var(--orange);height:100%;width:0}.load-meta{width:170px;display:flex;justify-content:space-between;margin-top:12px;font:700 8px 'Space Grotesk';letter-spacing:.1em;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:12px 20px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20}#toast.show{opacity:1}@media(max-width:800px){.wrap{width:calc(100% - 40px)}.header{height:72px;gap:0}.header-right{margin-left:auto}.contact-top{display:none}.menu{display:block;font-size:19px}nav{display:none;position:absolute;z-index:10;top:72px;left:0;right:0;background:var(--paper);padding:25px 20px;border-bottom:1px solid var(--line);flex-direction:column;gap:22px}nav.open{display:flex}.hero{min-height:710px;padding-top:45px}.hero-top p{display:none}.hero-title{font-size:clamp(66px,15vw,110px);margin-top:70px}.hero-bottom{margin-top:35px}.hero-cat{right:0;bottom:30px;width:210px}.cat-orbit{height:210px}.cat-orbit:before,.cat-orbit:after{width:190px;height:130px}#cat{width:170px;height:170px}.hero-copy{max-width:260px}.feature-grid,.cards,.admin-grid,.about-grid{grid-template-columns:1fr}.feature{min-height:200px}.section{padding:75px 0}.section-head,.page-intro{display:block}.section-head p{margin-top:20px}.page{padding:65px 0}.tool-layout{grid-template-columns:1fr}.tool-list{flex-direction:row;overflow:auto}.tool-list button{white-space:nowrap}.footer-bottom,.footer-bottom div{flex-wrap:wrap}.admin-panel.full{grid-column:auto}.note-inner{align-items:start;flex-direction:column}.about-grid{gap:20px}}@media(max-width:450px){.hero-title{font-size:16vw}.hero-cat{bottom:10px}.hero-copy{max-width:100%}.hero-bottom{align-items:start}.hero-actions{margin-top:18px}.hero{min-height:760px}.hero-cat{right:50%;transform:translateX(50%)}.footer-bottom div{gap:12px}.tool-panel,.admin-panel{padding:22px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important}}
/* Home refresh */
:root{--paper:#fff;--white:#fff;--ink:#000;--line:#e4e4e4}
body{background:#fff}
#homeView .hero-top,#homeView .hero-actions,#homeView .cat-caption,#homeView .ticker,#homeView .section,#homeView .note-strip,.footer-top{display:none}
.hero{min-height:min(760px,calc(100vh - 155px));padding-top:1px;overflow:visible}
.hero-title{font-family:Georgia,'Times New Roman',serif;font-size:clamp(78px,10vw,145px);font-weight:700;letter-spacing:-.075em;line-height:.92;margin-top:clamp(105px,14vh,175px)}
.hero-title .second,.hero-title .second span{color:#000!important}
.hero-copy{font-size:14px;max-width:350px}
.hero-bottom{margin-top:32px}
.hero-cat{width:470px;right:2%;bottom:25px}
.cat-orbit{height:410px}
.cat-orbit:before,.cat-orbit:after{width:390px;height:245px;animation:orbit 16s ease-in-out infinite alternate}
.cat-orbit:after{animation-direction:alternate-reverse}
#cat{width:360px;height:360px;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
#stage:hover #cat{transform:scale(1.06) rotate(-2deg)}
.brand img{width:40px;height:40px;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.brand:hover img{transform:rotate(-14deg) scale(1.15)}
nav a{font-family:'DM Sans','Microsoft YaHei',sans-serif;font-size:14px;font-weight:600;letter-spacing:.035em;transition:color .2s,transform .3s}nav a:hover{transform:translateY(-3px)}
.hero-title{animation:titleIn .9s cubic-bezier(.16,1,.3,1) both}.hero-copy{animation:copyIn 1s .15s both}.hero-cat{animation:catIn 1.2s .2s cubic-bezier(.16,1,.3,1) both}
@keyframes titleIn{from{opacity:0;transform:translateY(65px)}to{opacity:1;transform:translateY(0)}}@keyframes copyIn{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes catIn{from{opacity:0;transform:translateY(60px) rotate(8deg) scale(.8)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}@keyframes orbit{from{transform:rotate(-25deg) scale(.95)}to{transform:rotate(25deg) scale(1.05)}}
.footer{padding-top:0}.footer-bottom{padding:22px 0}
@media(max-width:800px){.hero{min-height:730px}.hero-title{font-size:clamp(65px,12vw,100px);margin-top:100px}.hero-cat{width:320px;right:0;bottom:15px}.cat-orbit{height:310px}.cat-orbit:before,.cat-orbit:after{width:280px;height:180px}#cat{width:270px;height:270px}}
@media(max-width:450px){.hero{min-height:700px}.hero-title{font-size:clamp(58px,13vw,78px);margin-top:85px}.hero-cat{right:50%;transform:translateX(50%);bottom:0;animation:mobileCatIn 1s .2s both}.cat-orbit{height:290px}#cat{width:250px;height:250px}@keyframes mobileCatIn{from{opacity:0;transform:translate(-50%,45px)}to{opacity:1;transform:translate(-50%,0)}}}
@media(prefers-reduced-motion:reduce){.hero-title,.hero-copy,.hero-cat,.cat-orbit:before,.cat-orbit:after{animation:none!important}}
/* Typography and cat refinements */
.hero-title{font-family:Arial,'Helvetica Neue',sans-serif;font-weight:700;letter-spacing:-.075em;line-height:.9}
.cat-orbit:before,.cat-orbit:after{display:none}
.hero-cat{width:560px;right:-1%;bottom:0}
.cat-orbit{height:490px}
#cat{width:480px;height:480px}
.footer-bottom{border-top:0}
nav a{font-family:Arial,'Microsoft YaHei',sans-serif;font-size:16px;font-weight:400;letter-spacing:0;color:#a5a5a5}
nav a.active,nav a:hover{color:#222}
nav a.active:after{display:none}
.lang{display:flex;gap:14px;align-items:center;font-family:Arial,'Microsoft YaHei',sans-serif;font-size:13px;font-weight:400;padding:8px 0;color:#999}
.lang span{position:relative;color:inherit}
.lang[data-language="zh"] .lang-zh,.lang[data-language="en"] .lang-en{color:#222}
.lang[data-language="zh"] .lang-zh:after,.lang[data-language="en"] .lang-en:after{content:'';position:absolute;left:0;right:0;bottom:-7px;height:2px;background:#ffc12a}
@media(max-width:800px){.hero-cat{width:390px;right:0}.cat-orbit{height:360px}#cat{width:340px;height:340px}}
@media(max-width:450px){.hero-cat{width:min(390px,100%);right:50%}.cat-orbit{height:330px}#cat{width:min(320px,85vw);height:auto;aspect-ratio:1}}
/* Fixed footer and layout refinements */
body{padding-bottom:86px}
.footer{position:fixed;z-index:8;bottom:0;left:0;right:0;background:#fff}
.footer-bottom{padding:20px 0}
.page-intro{border-bottom:0}
.card{border-radius:16px}
@media(min-width:801px){
 .hero{min-height:calc(100vh - 178px);display:flex;flex-direction:column;justify-content:center;padding-bottom:55px}
 .hero-title{margin-top:0;position:relative;z-index:1}
 .hero-bottom{position:relative;z-index:1;pointer-events:none}
 .hero-cat{width:min(51%,680px);right:-2%;bottom:50%;transform:translateY(50%);animation:catCenteredIn 1.2s .2s cubic-bezier(.16,1,.3,1) both}
 .cat-orbit{height:auto;aspect-ratio:1}
 #cat{width:min(620px,100%);height:auto;aspect-ratio:1}
 @keyframes catCenteredIn{from{opacity:0;transform:translateY(calc(50% + 60px)) rotate(8deg) scale(.8)}to{opacity:1;transform:translateY(50%) rotate(0) scale(1)}}
}
@media(max-width:800px){body{padding-bottom:112px}.footer-bottom{padding:14px 0;gap:8px}.footer-bottom div{gap:10px}.hero-cat{width:420px}.cat-orbit{height:390px}#cat{width:370px;height:370px}}
@media(max-width:450px){body{padding-bottom:120px}.hero-cat{width:min(420px,100%)}.cat-orbit{height:340px}#cat{width:min(350px,92vw);height:auto}.footer-bottom{font-size:8px}}
@media(prefers-reduced-motion:reduce){.hero-cat{animation:none!important}}
/* Enlarge and lower the homepage cat. */
@media(min-width:801px){
 .hero-cat{width:min(57%,760px);right:-3%;bottom:38%}
 #cat{width:min(720px,100%)}
}
@media(max-width:800px){.hero-cat{bottom:-15px}#cat{width:min(410px,100%);height:auto;aspect-ratio:1}}
@media(max-width:450px){.hero-cat{bottom:-20px}#cat{width:min(380px,96vw)}}
/* Subtle grid and more expressive interactions */
body{background-color:#fff;background-image:linear-gradient(rgba(20,20,20,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(20,20,20,.035) 1px,transparent 1px);background-size:32px 32px}
.header{border-bottom:0}
.footer{background:rgba(255,255,255,.96)}
.footer-bottom a[hidden]{display:none}
@media(min-width:801px){.hero-cat{width:min(62%,820px);right:-4%}#cat{width:min(790px,100%)}}
nav a{display:inline-block;transform-origin:center;transition:transform .3s cubic-bezier(.2,.8,.2,1),color .25s}
nav a:hover,nav a:focus-visible{transform:translateY(-4px) scale(1.18);color:#000}
.card{transition:transform .3s cubic-bezier(.2,.8,.2,1),box-shadow .3s,border-color .3s;position:relative}
.card:hover,.card:focus-within{transform:translateY(-8px) scale(1.035);box-shadow:0 14px 36px rgba(0,0,0,.09);border-color:#c6c6c6;z-index:1}
.tool-panel,.admin-panel{border-radius:18px}
.tool-panel input,.tool-panel textarea,.tool-panel select{border-radius:10px}
.tool-panel .result{border-radius:12px}
.action{border-radius:999px;transition:transform .25s,background .25s,border-color .25s}
.action:hover{transform:translateY(-3px) scale(1.04)}
.tool-list button{border-radius:10px;transform-origin:left center;transition:transform .25s cubic-bezier(.2,.8,.2,1),color .2s,background .2s;position:relative}
.tool-list button:hover,.tool-list button:focus-visible{transform:translateX(8px) scale(1.08);color:#000;z-index:1}
.tool-list button.active:hover,.tool-list button.active:focus-visible{color:#fff}
@media(prefers-reduced-motion:reduce){nav a,.card,.action,.tool-list button{transition:none!important}nav a:hover,nav a:focus-visible,.card:hover,.card:focus-within,.action:hover,.tool-list button:hover,.tool-list button:focus-visible{transform:none!important}}
/* Studio: one task at a time */
.studio-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:34px}
.studio-heading h1{font-size:32px;letter-spacing:-.04em;margin:10px 0 8px}
.studio-heading p{font-size:13px;color:#76766e;margin:0}
.studio-back{font-size:12px;font-weight:700;border-bottom:1px solid #222;padding-bottom:5px;white-space:nowrap}
.studio-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}
.studio-sidebar{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 12px 14px}
.studio-side-label{font-size:10px;color:#999;font-weight:700;letter-spacing:.12em;padding:0 12px 14px}
.studio-nav{display:flex;flex-direction:column;gap:3px}
.studio-nav button{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;background:transparent;border-radius:10px;padding:13px 12px;text-align:left;color:#6f706b;font-size:13px;font-weight:600;transition:background .2s,color .2s}
.studio-nav button:hover{background:#f3f3ef;color:#111}.studio-nav button.active{background:#24241f;color:#fff}
.studio-count{font-size:11px;font-weight:500;opacity:.65;font-variant-numeric:tabular-nums}
.studio-storage{display:flex;gap:9px;margin:22px 12px 2px;padding-top:18px;border-top:1px solid #eee;font-size:11px;color:#666}
.studio-storage strong{font-size:11px;color:#555}.studio-storage p{font-size:11px;margin:5px 0;line-height:1.5}.studio-storage-dot{width:7px;height:7px;border-radius:50%;background:#e4a72f;margin-top:3px;flex:none}
.studio-layout .admin-grid{display:block;min-width:0}
.studio-layout .admin-panel{padding:34px 40px;min-height:440px}
.studio-layout .admin-panel[hidden]{display:none}
.studio-panel-kicker{font:700 10px 'Space Grotesk',sans-serif;letter-spacing:.12em;color:#9b9b92;margin-bottom:13px}
.studio-layout .admin-panel h2{font-size:24px;letter-spacing:-.03em;margin:0 0 12px}
.studio-layout .admin-panel>p{max-width:620px}
.studio-layout .field{max-width:720px;font-size:12px;color:#4b4b45;margin:24px 0}
.studio-layout .field input,.studio-layout .field textarea{border-radius:10px;border-color:#ddd;background:#fcfcfa;font-size:14px;line-height:1.6;padding:12px 14px}
.studio-layout .field textarea{min-height:110px}
.studio-layout .action{margin-bottom:10px}
.studio-layout .entry{max-width:720px;padding:16px 0;font-size:13px;gap:20px}
.studio-layout .entry:first-of-type{margin-top:20px}
.studio-layout .entry span:first-child{min-width:0;overflow-wrap:anywhere}
.studio-layout .entry button{padding:8px;color:#686860}.studio-layout .entry button:hover{color:var(--orange)}
.studio-layout .gallery{margin-top:24px}.studio-layout .gallery img{border-radius:10px}
@media(max-width:800px){.studio-heading h1{font-size:28px}.studio-layout{grid-template-columns:1fr;gap:14px}.studio-sidebar{padding:12px}.studio-side-label,.studio-storage{display:none}.studio-nav{flex-direction:row;overflow-x:auto;gap:5px}.studio-nav button{width:auto;gap:12px;white-space:nowrap;padding:12px 14px}.studio-layout .admin-panel{padding:26px 22px;min-height:360px}}
.studio-page{padding-top:44px;padding-bottom:120px}
.studio-layout .field input,.studio-layout .field textarea{font-weight:400}
@media(max-width:800px){.studio-page{padding-top:35px}}
/* Consistent, stable page transitions */
html{scrollbar-gutter:stable}
body{background-image:linear-gradient(rgba(20,20,20,.065) 1px,transparent 1px),linear-gradient(90deg,rgba(20,20,20,.065) 1px,transparent 1px)}
.route-enter{animation:routeEnter .42s cubic-bezier(.2,.75,.25,1) both}
@keyframes routeEnter{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
/* Keep the tool selector anchored when its selected state changes. */
.tool-list button:hover,.tool-list button:focus-visible{transform:none;background:#f0f0ec}
.tool-list button.active:hover,.tool-list button.active:focus-visible{background:var(--ink)}
@media(prefers-reduced-motion:reduce){.route-enter{animation:none!important}}
.tool-panel > *{animation:toolContentEnter .3s cubic-bezier(.2,.75,.25,1) both}
@keyframes toolContentEnter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.tool-panel > *{animation:none!important}}
/* Shared menu typography, icons, and stable states */
.tool-list button,.studio-nav button{display:flex;align-items:center;gap:12px;min-height:48px;font-family:'DM Sans','Microsoft YaHei',sans-serif;font-size:14px;font-weight:500;line-height:1.35;letter-spacing:0;transform:none;transition:background-color .2s,color .2s,box-shadow .2s}
.tool-list button{padding:13px 15px}
.menu-icon{display:block;width:19px;height:19px;flex:0 0 19px;opacity:.8}
.tool-list button.active .menu-icon,.studio-nav button.active .menu-icon{opacity:1}
.tool-list button:hover,.tool-list button:focus-visible,.studio-nav button:hover,.studio-nav button:focus-visible{transform:none}
.studio-nav button{justify-content:space-between}
.studio-nav-label{display:flex;align-items:center;gap:12px;min-width:0}
.studio-count{flex:none}
.studio-layout{min-height:590px}
.studio-panel-enter{animation:studioPanelEnter .22s ease-out both}
@keyframes studioPanelEnter{from{opacity:.45}to{opacity:1}}
@media(max-width:800px){.studio-layout{min-height:0}.studio-nav button{min-height:46px;gap:12px}.studio-nav-label{gap:8px}}
@media(prefers-reduced-motion:reduce){.studio-panel-enter{animation:none!important}}
/* Compact button proportions */
.action,.pill,.contact-top{padding-top:9px;padding-bottom:9px;line-height:1.35}
.tool-list button,.studio-nav button{min-height:40px;padding-top:9px;padding-bottom:9px}
@media(max-width:800px){.studio-nav button{min-height:40px;padding-top:9px;padding-bottom:9px}}
/* Studio editor and content lists */
.studio-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,260px);gap:30px;align-items:start}
.studio-editor{min-width:0}.studio-editor .field:first-child{margin-top:12px}
.studio-entries{background:#f8f8f6;border:1px solid #ecece8;border-radius:14px;padding:16px;min-width:0}
.studio-entries-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}.studio-entries-head span{color:#8a8a83;font-size:11px}
.studio-layout .studio-entries .entry{display:flex;flex-wrap:wrap;gap:3px 8px;padding:12px 0;margin:0;font-size:12px}.studio-entries .entry>span:first-child{flex:1 1 100%;line-height:1.5}.studio-entries .entry button{padding:4px 8px 4px 0;font-size:11px}.studio-empty{font-size:12px;color:#909089;margin:20px 0 4px}
.filing-settings{border-top:1px solid #eee;margin:30px 0 24px;padding-top:24px;max-width:720px}.filing-settings h3{font-size:16px;margin:0}.filing-settings p{font-size:12px;color:#777;line-height:1.7}.filing-group{border:1px solid #ededeb;border-radius:12px;padding:18px;margin:14px 0}.filing-group>strong{font-size:12px}.studio-layout .filing-group .field{margin:14px 0}.filing-group .field:last-child{margin-bottom:0}.filing-icon{width:14px;height:14px;object-fit:contain;vertical-align:middle;margin-right:4px}#filing{display:flex;gap:14px;flex-wrap:wrap;align-items:center}#filing a:hover{text-decoration:underline}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.file-picker{display:flex;align-items:center;gap:10px;border:1px dashed #c9c9c3;border-radius:12px;padding:18px;max-width:600px;margin:20px 0;cursor:pointer;font-size:13px;transition:background .2s,border-color .2s}.file-picker:hover{background:#f8f8f5;border-color:#777}.file-picker span{font-size:22px}.file-picker small{color:#888;font-size:11px;margin-left:auto}.image-item{padding:10px;background:#f8f8f6;border:1px solid #eee;border-radius:12px}.image-actions{display:flex;gap:8px;margin-top:8px}.image-actions button{border:0;background:none;padding:3px;color:#555;font-size:11px}.image-actions button:hover{color:var(--orange)}.import-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
@media(max-width:1000px){.studio-columns{grid-template-columns:1fr}.studio-entries{max-width:720px}.file-picker{flex-wrap:wrap}.file-picker small{width:100%;margin-left:32px}}
/* Loading and contact refinements */
.loader img{width:78px;transform-origin:50% 75%;animation:catWiggle 1s ease-in-out infinite}
.loader-percent{margin-top:20px;font:600 14px 'Space Grotesk',sans-serif;color:#555;font-variant-numeric:tabular-nums}
@keyframes catWiggle{0%,100%{transform:rotate(-9deg)}50%{transform:rotate(9deg)}}
.about-grid>div:last-child{text-align:left}
.contact-row{justify-content:flex-start;align-items:center;gap:16px;transform-origin:left center;transition:transform .25s cubic-bezier(.2,.8,.2,1),color .2s}
.contact-row:hover,.contact-row:focus-visible{transform:scale(1.045);color:var(--orange)}
.contact-identity{display:flex;align-items:center;gap:12px;min-width:0}.contact-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f0f0ed;color:#555;flex:none}.contact-icon img{width:20px;height:20px;object-fit:contain}.contact-arrow{margin-left:auto}
@media(prefers-reduced-motion:reduce){.loader img{animation:none}.contact-row:hover,.contact-row:focus-visible{transform:none}}
.hero-word{display:block;transform-origin:left center;transition:letter-spacing .45s cubic-bezier(.2,.8,.2,1),transform .45s cubic-bezier(.2,.8,.2,1)}
.hero-title:hover .hero-word{letter-spacing:.025em;transform:translateX(4px)}
.hero-copy{transform-origin:left center;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.hero-copy:hover{transform:scale(1.06)}
.footer-bottom{font-variant-numeric:tabular-nums}
@media(prefers-reduced-motion:reduce){.hero-word,.hero-copy{transition:none}.hero-title:hover .hero-word,.hero-copy:hover{transform:none}}
.modal{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:rgba(0,0,0,.28);backdrop-filter:blur(3px);padding:20px}.modal[hidden]{display:none}.modal-card{width:min(420px,100%);background:#fff;border:1px solid #222;border-radius:18px;padding:26px;box-shadow:0 22px 80px rgba(0,0,0,.2);display:grid;grid-template-columns:42px 1fr;gap:4px 14px;animation:modalIn .2s cubic-bezier(.2,.8,.2,1) both}.modal-icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#ffc12a;color:#111;font-weight:800}.modal-card h2{font-size:18px;margin:4px 0 6px}.modal-card p{font-size:13px;line-height:1.7;color:#666;margin:0}.modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-actions .action{min-width:72px}.modal-actions .secondary{background:#f2f2ef;border-color:#ddd;color:#333}.modal-actions .secondary:hover{background:#e8e8e3;border-color:#ccc;color:#111}@keyframes modalIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.studio-entries .entry{position:relative;transform-origin:center;transition:transform .2s,background .2s}.studio-entries .entry:hover,.studio-entries .entry:focus-within{transform:scale(1.04);background:#f0f0ec}.studio-entries .entry .entry-icon{display:inline-flex;flex:0 0 18px;color:#888}.studio-entries .entry .entry-icon .menu-icon{width:16px;height:16px;flex-basis:16px}.studio-entries .entry>span:nth-child(2){flex:1 1 calc(100% - 28px);overflow-wrap:anywhere}.studio-entries .entry>button,.studio-entries .entry>span:last-child{margin-left:26px}
@media(prefers-reduced-motion:reduce){.studio-entries .entry:hover,.studio-entries .entry:focus-within{transform:none}.modal-card{animation:none}}
@media(min-width:801px){.about-grid{grid-template-columns:1.35fr 1fr;gap:clamp(80px,9vw,150px)}}
.post-card{cursor:pointer}.article-overlay{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.35);display:grid;place-items:center;padding:24px}.article-overlay[hidden]{display:none}.article-dialog{position:relative;width:min(680px,100%);max-height:min(80vh,800px);overflow:auto;background:#fff;border-radius:20px;padding:48px;box-shadow:0 25px 80px #0003;animation:modalIn .25s ease-out}.article-close{position:absolute;right:20px;top:16px;border:0;background:#f2f2ef;border-radius:50%;width:36px;height:36px;font-size:23px}.article-meta{font-size:11px;color:var(--orange);font-weight:700;letter-spacing:.08em}.article-dialog h2{font-size:28px;margin:18px 0 24px}.article-content{font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.article-dialog{padding:32px 24px}}
.entry-icon{position:relative}.entry-icon img{position:absolute;inset:0;width:16px;height:16px;object-fit:contain;background:#f8f8f6;border-radius:3px}
.studio-layout .studio-entries .entry{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:8px;align-items:center}
.studio-entries .entry .entry-icon{grid-column:1;grid-row:1}
.studio-entries .entry>span:nth-child(2){grid-column:2;grid-row:1;min-width:0}
.studio-entries .entry>button,.studio-entries .entry>span:last-child:not(:nth-child(2)){grid-column:2;grid-row:2;margin-left:0}
/* Keep list identities and actions on the same row. */
.studio-layout .studio-entries .entry{grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:center}
.studio-entries .entry .entry-icon{grid-column:1;grid-row:1}
.studio-entries .entry>span:nth-child(2){grid-column:2;grid-row:1;min-width:0}
.studio-entries .entry>button,.studio-entries .entry>span:last-child:not(:nth-child(2)){grid-column:3;grid-row:1;margin:0;white-space:nowrap}
.studio-entries .entry button{padding:4px;font-size:11px}
.studio-entries .entry>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #777;outline-offset:2px}
.contact-copy{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.post-image-controls{display:flex;align-items:center;gap:12px;margin:-8px 0 18px}.post-image-controls span{font-size:11px;color:#888}.post-image-button{cursor:pointer;display:inline-flex;align-items:center}.article-content img{display:block;max-width:100%;height:auto;border-radius:10px;margin:20px 0}.post-card p{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}
body{background-image:linear-gradient(rgba(20,20,20,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(20,20,20,.045) 1px,transparent 1px)}
.brand:hover img{transform:none;animation:logoSpin .85s cubic-bezier(.22,.68,.25,1) both}
@keyframes logoSpin{0%{transform:rotate(0) scale(1)}65%{transform:rotate(370deg) scale(1.12)}100%{transform:rotate(360deg) scale(1)}}
@media(prefers-reduced-motion:reduce){.brand:hover img{animation:none;transform:none}}
/* Quiet scrollbars and bounded collections */
*{scrollbar-width:thin;scrollbar-color:#c9c9c4 transparent}
*::-webkit-scrollbar{width:7px;height:7px}
*::-webkit-scrollbar-track{background:transparent}
*::-webkit-scrollbar-thumb{background:#c9c9c4;border-radius:10px;border:2px solid transparent;background-clip:padding-box}
*::-webkit-scrollbar-thumb:hover{background:#a7a7a1;border:2px solid transparent;background-clip:padding-box}
.studio-entries{max-height:430px;overflow-y:auto;overscroll-behavior:contain}
.studio-gallery{max-height:440px;overflow-y:auto;overscroll-behavior:contain;align-content:start}
.microblog-list{max-height:580px;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:6px}
@media(max-width:800px){.studio-entries{max-height:300px}.microblog-list{max-height:520px}}
.studio-micro-entries{max-height:360px;overflow-y:auto;overscroll-behavior:contain;margin-top:20px}
.article-dot{width:5px;height:5px;background:#aaa9a2;border-radius:50%;display:block;margin:5px}
/* Layout and article editing */
.footer{position:static;background:transparent}
body{padding-bottom:0}
@media(min-width:801px){body:has(#homeView:not([hidden])){min-height:100vh;display:flex;flex-direction:column}body:has(#homeView:not([hidden])) #app{flex:1}.hero{min-height:calc(100vh - 178px)}.post-grid,.favorites-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.about-grid{grid-template-columns:1.5fr 1fr}}
@media(max-width:800px){.post-grid,.favorites-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:calc(100vh - 170px)}}
@media(max-width:500px){.post-grid,.favorites-grid{grid-template-columns:1fr}.hero{min-height:700px}}
.format-toolbar{display:flex;gap:6px;margin:8px 0}.format-toolbar button{border:1px solid var(--line);background:#fff;border-radius:6px;min-width:34px;height:32px;cursor:pointer;font-size:14px}.format-toolbar button:hover,.format-toolbar button:focus-visible{border-color:var(--ink)}
.article-page{max-width:820px;margin:0 auto;padding-bottom:70px}.article-page .article-meta{margin-top:48px;color:var(--orange);font-weight:700;font-size:12px}.article-page h1{font-size:clamp(30px,5vw,56px);line-height:1.2;margin:18px 0 30px}.article-content a{text-decoration:underline;color:inherit}
/* Keep the desktop homepage within the viewport. */
@media (min-width: 801px) {
  body:has(#homeView:not([hidden])) { height: 100vh; height: 100dvh; min-height: 0; }
  body:has(#homeView:not([hidden])) > .header,
  body:has(#homeView:not([hidden])) > .footer { flex: none; margin-top: 0; margin-bottom: 0; }
  body:has(#homeView:not([hidden])) > #app { flex: 1 1 0; min-height: 0; }
  #homeView:not([hidden]) { height: 100%; }
  #homeView .hero { height: 100%; min-height: 0; container-type: size; overflow: clip; }
  #homeView .hero-cat { width: min(62%, 100cqh, 820px); }
  #homeView .hero-title { font-size: min(10vw, 145px, 22cqh); }
}
/* Keep the footer at the bottom on short pages. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > .header, body > .footer { flex: none; margin-top: 0; margin-bottom: 0; }
body > #app { flex: 1 0 auto; }
.page { min-height: 0; }
@media (min-width: 801px) { .page { padding-bottom: 70px; } }
.format-toolbar { align-items:center; flex-wrap:wrap; padding:6px; border:1px solid var(--line); border-radius:8px; background:#fafafa; }
.format-toolbar select { width:auto; margin:0 5px 0 0; padding:5px 24px 5px 8px; border:0; background:transparent; font-size:12px; }
.format-toolbar button { border-color:transparent; background:transparent; }
.article-content h2,.article-content h3,.article-content h4 { margin:1.2em 0 .4em; line-height:1.3; }
.article-content blockquote { margin:1em 0; padding:0 1em; border-left:3px solid #ccc; color:var(--muted); }
.article-content ul,.article-content ol { margin:.8em 0; padding-left:1.8em; }
.article-content li { padding-left:.2em; }
.format-toolbar { border:0; background:transparent; padding:0; gap:2px; }
.format-toolbar button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0; color:#444; border:0; border-radius:6px; }
.format-toolbar button:hover { background:#f0f0ee; color:#000; }
.format-toolbar button svg { width:18px; height:18px; }
.format-toolbar select { font-weight:600; color:#333; }
.rich-editor { min-height:130px; width:100%; padding:13px; margin-top:8px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:14px; font-weight:400; outline:none; white-space:pre-wrap; overflow-wrap:anywhere; }
.rich-editor:focus { outline:3px solid #ff9a6e; outline-offset:3px; }
.rich-editor img { max-width:100%; height:auto; }
.link-editor:not([hidden]) { display:flex; align-items:center; gap:6px; margin:4px 0 8px; }
.link-editor input { flex:1; min-width:0; margin:0; padding:8px; border-radius:6px; }
.link-editor button { border:1px solid var(--line); border-radius:6px; background:#fff; padding:8px 12px; }
.article-content a { color:#e75228; text-decoration:underline; text-underline-offset:3px; }
.article-content a:hover { color:#b93313; }
.article-content a { color:#e75228; font-weight:700; text-decoration:none; }
.article-content a::after { content:'↗'; display:inline-block; margin-left:2px; font-size:.65em; line-height:1; vertical-align:super; }
.article-content a:hover { color:#b93313; text-decoration:none; }
.article-content a::after { content:''; display:inline-block; width:.78em; height:.78em; margin-left:3px; vertical-align:super; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a4 4 0 0 0 5.7 0l2.6-2.6a4 4 0 0 0-5.7-5.7l-1.5 1.5'/%3E%3Cpath d='M14 11a4 4 0 0 0-5.7 0l-2.6 2.6a4 4 0 0 0 5.7 5.7l1.5-1.5'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a4 4 0 0 0 5.7 0l2.6-2.6a4 4 0 0 0-5.7-5.7l-1.5 1.5'/%3E%3Cpath d='M14 11a4 4 0 0 0-5.7 0l-2.6 2.6a4 4 0 0 0 5.7 5.7l1.5-1.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.article-pagination { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:64px; padding-top:24px; border-top:1px solid var(--line); }
.article-page-link { display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-width:0; padding:8px 0; }
.article-page-link span { font-size:12px; color:var(--muted); }
.article-page-link strong { font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
.article-page-link:hover strong { color:var(--orange); }
.article-page-next { align-items:flex-end; text-align:right; }
.calculator { max-width:380px; }
.calculator-keys { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.calculator-keys button { min-height:48px; border:1px solid var(--line); border-radius:10px; background:#fff; font-size:18px; }
.calculator-keys button:hover { background:#f4f4f1; }
.calculator-keys button[data-calc="="] { background:var(--ink); color:#fff; border-color:var(--ink); }
.calculator .result { min-height:58px; font-size:18px; overflow-wrap:anywhere; }
.color-tool { max-width:420px; }
.color-tool input[type="color"] { padding:4px; height:48px; cursor:pointer; }
.color-sample { height:100px; border-radius:12px; border:1px solid var(--line); }
.timestamp-tool { max-width:600px; }
#jsonInput { min-height:240px; font-family:Consolas,monospace; font-size:13px; }
.post-editor-actions { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 18px; }
.post-editor-actions .action { border-radius:100px; padding:9px 14px; }
.post-image-library { margin:8px 0 20px; padding:16px; border:1px solid var(--line); border-radius:12px; }
.post-image-options { display:grid; grid-template-columns:repeat(auto-fill,minmax(70px,1fr)); gap:8px; margin-top:12px; }
.post-image-options button { border:1px solid var(--line); background:#fff; padding:3px; border-radius:8px; }
.post-image-options img { display:block; width:100%; height:70px; object-fit:cover; border-radius:5px; }
.draft-entry small { color:var(--orange); }
/* Mobile layout and readability refinements */
.studio-side-label,.studio-panel-kicker { color:#66665f; }
.tool-scroll-hint { display:none; }
@media(max-width:800px) {
 .page:not(.studio-page) { padding-top:45px; }
 .page-intro { padding-bottom:22px; margin-bottom:20px; }
 .tool-selector { min-width:0; }
 .tool-list { scroll-behavior:smooth; overscroll-behavior-x:contain; }
 .tool-scroll-hint { display:block; margin:6px 0 0; color:#66665f; font-size:11px; }
 .footer-bottom { font-size:11px; line-height:1.5; letter-spacing:.02em; }
 .footer-bottom div { gap:8px 14px; }
}
@media(max-width:450px) {
 .hero-cat { left:50%; right:auto; }
}
@media(max-width:450px) and (min-height:780px) {
 #homeView .hero { min-height:calc(100dvh - 190px); }
}
@media(max-width:450px) {
 #homeView .cat-orbit #stage { width:100%; min-width:0; }
 #homeView .cat-orbit #cat { width:100%; max-width:100%; }
}

/* Admin entry shares the compact header controls. */
.admin-entry{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:none;color:#24241f;border-radius:50%;transition:background-color .2s,color .2s}
.admin-entry svg{width:21px;height:21px;display:block}
.admin-entry:hover{background:#f0eee9;color:var(--orange)}
@media(max-width:800px){.header-right{gap:12px}.admin-entry{width:40px;height:40px}}

/* Keep the mobile studio within the viewport; only its tabs scroll sideways. */
@media(max-width:800px){
 .studio-page,.studio-layout,.studio-sidebar,.studio-layout .admin-grid,.studio-layout .admin-panel{min-width:0;max-width:100%}
 .studio-layout{grid-template-columns:minmax(0,1fr)}
 .studio-nav{width:100%;min-width:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
 .studio-nav button{flex:0 0 auto}
 .studio-layout .field,.filing-settings,.filing-group,.studio-columns,.studio-editor{min-width:0;max-width:100%}
 .studio-layout input,.studio-layout textarea,.studio-layout select,.rich-editor{min-width:0;max-width:100%}
}

/* Static studio password gate. */
.admin-login-page{min-height:calc(100dvh - 250px);display:grid;place-items:center;padding:44px 0}
.admin-login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:36px}
.admin-login-card h1{font-size:32px;letter-spacing:-.04em;margin:12px 0 8px}
.admin-login-card>p{color:var(--muted);font-size:13px}
.admin-login-card .field{margin:28px 0 8px}
.admin-login-card input{border-radius:10px;font-size:16px}
.admin-login-card .action{width:100%;margin:10px 0 20px}
.admin-login-error{min-height:22px!important;color:#b74840!important;margin:0!important}
.studio-heading-actions{display:flex;align-items:center;gap:18px}
.admin-logout{border:0;background:transparent;font-size:12px;font-weight:700;color:var(--muted);padding:6px 0;border-bottom:1px solid transparent}
.admin-logout:hover{color:var(--orange);border-bottom-color:currentColor}
@media(max-width:600px){
 .admin-login-page{min-height:calc(100dvh - 210px);padding:24px 0}
 .admin-login-card{padding:28px 22px}
 .studio-heading-actions{align-items:flex-end;flex-direction:column;gap:8px}
}

/* Keep article navigation available at the bottom while reading. */
.article-page .article-pagination{position:fixed;left:50%;transform:translateX(-50%);width:min(820px,calc(100% - 40px));bottom:0;z-index:20;background:rgba(255,255,255,.97);margin-top:64px;padding:14px 16px calc(14px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:12px;box-shadow:0 -6px 22px rgba(36,36,31,.05)}
.article-page .article-page-link{padding:4px 0}
@media(max-width:800px){.article-page .article-pagination{display:grid;gap:12px}}
.article-page{padding-bottom:180px}
