*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:84px;--paper:#f9f7f1;--ink:#28271f;--accent:#403c32;--band:#ede9df;--rule:#d7d2c6}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.75 -apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit;color:inherit}button,a{touch-action:manipulation}button,summary{cursor:pointer}button{background:none;border:0}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #b6763c;outline-offset:3px}header{position:relative;z-index:3;background:var(--paper)}.bar,.wrap{width:min(1240px,89%);margin:auto}.bar{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}.studio-logo,.logo{display:inline-flex;align-items:baseline;gap:.6em}.studio-logo{font:600 clamp(22px,2vw,32px)/1 Georgia,serif;letter-spacing:-.055em}.studio-logo i{font:italic normal .78em Georgia,serif}.logo b{font:500 32px/1 Georgia,serif;letter-spacing:.03em}.logo small{font-size:12px;letter-spacing:.14em}.bar nav,.tools{display:flex;align-items:center;gap:30px}.bar nav a,.bar>a:last-child{font-size:14px}.dark,.light,.outline,.ghost{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:10px 23px;border-radius:3px;line-height:1.45;font-size:15px;font-weight:600}.dark{background:var(--accent);color:#fff}.light{background:#f6f1e6;color:#29261e}.outline{border:1px solid var(--accent)}.ghost{color:#fff;border:1px solid #ffffffa6;margin-left:12px}.m-toggle{display:none}.hero{position:relative;isolation:isolate;display:grid;align-items:center;min-height:clamp(465px,43vw,670px);overflow:hidden;background:#342f25;color:white}.hero>img{position:absolute;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center}.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#19180ff0 0%,#1c1a1280 43%,transparent 83%);z-index:-1}.hero-copy{width:min(1240px,89%);margin:0 auto;padding:54px 0}.hero h1{font:400 clamp(68px,8.5vw,140px)/.8 Georgia,serif;margin:0;letter-spacing:-.045em}.hero h1 span{font:500 .21em/1.8 sans-serif;letter-spacing:.32em}.hero-copy>p:not(.kicker){white-space:pre-line;line-height:1.85;margin:20px 0 26px}.studio-hero h1{font:500 clamp(44px,5.3vw,86px)/1.22 "Songti TC","Noto Serif TC","PMingLiU",serif;letter-spacing:.02em}.kicker,.eyebrow{font:600 12px/1.5 Arial,sans-serif;letter-spacing:.19em;margin:0 0 14px}.kicker{color:#e9dfc9}.eyebrow{color:#71644f}.section{padding-block:70px}.section h2,.edit h1,dialog h2{font:500 clamp(32px,3.2vw,50px)/1.3 "Songti TC","Noto Serif TC",Georgia,serif;letter-spacing:.03em;margin:0 0 30px}.sub{margin:-15px 0 30px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.grid img{display:block;width:100%;height:100%;object-fit:cover}.cover,.service>img,.service>.gallery img{width:100%;aspect-ratio:1.7;position:relative;overflow:hidden;display:block}.service>img,.service>.gallery img{height:auto;object-fit:cover}.cover span{position:absolute;inset:0;display:grid;place-items:center;font:italic 400 clamp(26px,3.5vw,54px) Georgia,serif;color:white;background:#221e1650}.template[data-skin=sage] .cover span{background:#213f2d66}.template[data-skin=linen] .cover span{background:#74513e66}.card-body{padding:19px 0 0}.card-body h3,.person h3,.visit h3{font:600 21px/1.45 "Songti TC",Georgia,serif;margin:0}.card-body p,.person p,.visit p,.edit>p{color:#58564d;margin:10px 0 16px}.links,.price{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--rule);padding-top:13px}.links a,.textbtn,.foot a,.foot button{text-decoration:underline;text-underline-offset:5px}.links a,.textbtn{font-size:15px}.links a:last-child{font-weight:650}.textbtn{padding:10px 0}.band{background:var(--band)}.duo,.visit{display:grid;grid-template-columns:1fr 1fr;gap:7%}.person img{width:100%;aspect-ratio:2.25;object-fit:cover;margin-bottom:12px}.visit h3:not(:first-child){margin-top:26px}#hours{white-space:pre-line}.notice{margin:15px 0;padding-left:16px;border-left:2px solid #ae9b79}details{border-bottom:1px solid var(--rule)}summary{padding:14px 0;font-weight:550}details p{margin:0 0 16px}footer{background:#302e27;color:#eeebe1}.foot{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-block:30px}.foot button,.foot a,.foot small{color:#eee9da;font-size:13px;padding:5px}.foot small{opacity:.85}dialog{width:min(460px,92vw);max-height:87dvh;padding:35px;border:0;background:var(--paper);color:var(--ink);border-radius:6px}dialog::backdrop{background:#1f201bd1}.close{position:absolute;right:8px;top:4px;font-size:26px}.close:hover{background:var(--band)}dialog h2{font-size:30px;margin:6px 0 12px}label{display:block;margin:12px 0;font-size:15px;font-weight:550}label input:not([type=checkbox]),textarea,select{display:block;width:100%;padding:10px;margin-top:5px;border:1px solid #b6b1a4;border-radius:3px;background:white;font-size:16px}textarea{min-height:85px}label input[type=checkbox]{margin-right:8px}form .dark{margin-top:8px}.edit{max-width:720px;padding-block:45px}.edit>h1{margin-bottom:12px}.edit details{padding:0 18px;background:#fffdf8}.edit details[open]{padding-bottom:15px}.edit summary{font-size:18px}.thumb{width:130px;height:72px;object-fit:cover}.edit fieldset{margin:15px 0;padding:0 14px 12px;border:1px solid var(--rule)}.edit .outline{padding:7px 15px}.actions{display:flex;align-items:center;gap:12px;margin-top:20px}.actions .dark{margin:0}.preview-note{background:#514635;color:white;text-align:center;padding:8px}.preview-note button{text-decoration:underline}
html[data-theme=sage]{--paper:#f4f5ed;--ink:#303e32;--accent:#405740;--band:#e2e8da}html[data-theme=sage] body:not(.studio) .hero{display:flex;flex-direction:row-reverse;background:#dce4d6;color:#273b28}html[data-theme=sage] body:not(.studio) .hero>img{position:static;width:52%;height:clamp(470px,42vw,670px)}html[data-theme=sage] body:not(.studio) .hero-copy{width:48%;padding:5%}html[data-theme=sage] body:not(.studio) .hero:after{display:none}html[data-theme=sage] body:not(.studio) .hero .ghost,html[data-theme=linen] body:not(.studio) .hero .ghost{color:var(--ink);border-color:#817d70}html[data-theme=linen]{--paper:#fffaf4;--accent:#80563e;--band:#f3e9dd}html[data-theme=linen] body:not(.studio) .hero{display:block;margin:0 auto;width:89%;background:transparent;color:var(--ink)}html[data-theme=linen] body:not(.studio) .hero>img{position:static;height:clamp(175px,20vw,310px)}html[data-theme=linen] body:not(.studio) .hero-copy{width:100%;padding:32px 0}html[data-theme=linen] body:not(.studio) .hero:after{display:none}
@media(max-width:720px){.bar,.wrap,.hero-copy{width:90%}.bar{min-height:64px;gap:10px}.bar nav{display:none}.bar nav.open{position:absolute;display:grid;top:100%;left:0;width:100%;padding:18px 5%;gap:15px;background:var(--paper);box-shadow:0 8px 12px #0001}.tools{gap:9px}.m-toggle{display:block;font-size:22px;padding:4px}.studio-logo{font-size:24px}.bar .dark{padding:9px 12px;min-height:40px}.hero{min-height:470px}.hero-copy{padding:48px 0}.hero>img{object-position:62% center}.hero:after{background:linear-gradient(90deg,#15130dda,#19160f45)}.hero h1{font-size:72px}.studio-hero h1{font-size:clamp(40px,10.8vw,62px)}.hero-copy>p:not(.kicker){font-size:15px}.section{padding-block:46px}.grid,.visit,.duo{grid-template-columns:1fr;gap:30px}.section h2{margin-bottom:22px}.sub{margin-top:0}.cover span{font-size:43px}.foot{align-items:flex-start;flex-direction:column;gap:8px}.foot div{display:flex;flex-wrap:wrap}.dark,.light,.ghost,.outline{padding-inline:16px}html[data-theme=sage] body:not(.studio) .hero{flex-direction:column}html[data-theme=sage] body:not(.studio) .hero>img{height:205px;width:100%}html[data-theme=sage] body:not(.studio) .hero-copy{width:100%;padding:30px 5%}.edit{padding-block:30px}dialog{padding:28px 20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.picture-tools{margin:16px 0 20px}.picture-tools h4{margin:0 0 7px}.picture-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.picture-actions .outline,.upload-btn{display:grid;place-items:center;text-align:center;border:1px solid var(--rule);border-radius:4px;padding:9px 3px!important;margin:0;font-size:14px;font-weight:550;cursor:pointer}.upload-btn:focus-within{outline:2px solid}.picture-tools input[hidden],.picture-tools [hidden]{display:none}.asset-grid:not([hidden]){display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding-top:9px}.asset-grid .outline{display:block;overflow:hidden;padding:4px;width:100%;font-size:13px}.asset-grid img{display:block;width:100%;aspect-ratio:1.5;object-fit:contain;background:var(--band)}.ai-tools{padding:12px;background:var(--band);margin-top:8px}.ai-tools .textbtn{display:inline-block;margin-right:12px}.picture-tools .thumb{width:100%;height:auto;max-height:420px;object-fit:contain;background:var(--band);border-radius:3px}.upload-btn input{max-width:100%}
#templates{display:grid;grid-template-columns:1.18fr 1fr;gap:clamp(16px,3vw,42px);align-items:start}.layout-choices{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px}.layout-choice{min-width:0;text-align:left;padding:0}.layout-choice>span{display:block;font:500 16px/1.5 Georgia,serif;margin-top:5px}.layout-info h3{font:500 27px Georgia,serif;margin:14px 0 4px}.layout-info p{margin:4px 0 12px}.mini{container-type:inline-size;aspect-ratio:1.65;padding:4%;overflow:hidden;border:1px solid #cfc8b9;background:#e9e3d7;color:#352e26;display:grid;grid-template-rows:auto 1fr .55fr;gap:4%;pointer-events:none}.mini-nav{display:flex;justify-content:space-between;align-items:center;font:600 max(6px,1.7cqw) Georgia,serif;letter-spacing:.1em;border-bottom:1px solid #b6afa3}.mini-nav span{font:500 max(5px,1.2cqw) Arial}.mini-mast{position:relative;overflow:hidden;display:grid;align-items:center}.mini-mast img{width:100%;height:100%;object-fit:cover;min-height:0;position:absolute}.mini-mast strong{position:relative;color:white;padding:4%;font:italic 500 8cqw/1 Georgia,serif;text-shadow:0 1px 6px #2118}.mini-items{display:grid;grid-template-columns:repeat(3,1fr);gap:4%}.mini-items div{display:grid;grid-template-rows:1fr auto}.mini-items i{position:relative;overflow:hidden;background:#a39680}.mini-items i img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.mini-items div:nth-child(2) i{background:#c4b79e}.mini-items div:last-child i{background:#847d6d}.mini-items span{font:500 max(5px,2cqw) Georgia,serif}.layout-sage{background:#e1e8df}.layout-sage .mini-mast img{width:48%;right:0}.layout-sage .mini-mast strong,.layout-linen .mini-mast strong,.layout-index .mini-mast strong,.layout-gallery .mini-mast strong{color:#423b31;text-shadow:none}.layout-linen .mini-mast img{height:55%;top:0}.layout-linen .mini-mast strong{align-self:end;padding:0}.layout-index{grid-template-rows:auto .6fr 1fr}.layout-index .mini-mast img{width:27%;right:0}.layout-index .mini-items{grid-template-columns:1fr}.layout-index .mini-items div{display:block;border-top:1px solid #8e887e}.layout-gallery{grid-template-rows:auto .42fr 1fr;background:#f5eee1}.layout-gallery .mini-mast img{display:none}.layout-gallery .mini-mast strong{text-align:center}.layout-gallery .mini-items{grid-template-columns:1.6fr 1fr;grid-template-rows:1fr 1fr}.layout-gallery .mini-items div:first-child{grid-row:span 2}.layout-choice:hover .mini{border-color:#584732}
html[data-theme=index] body:not(.studio) .hero{min-height:280px;background:#ece8df;color:#302d26}html[data-theme=index] body:not(.studio) .hero:after,html[data-theme=gallery] body:not(.studio) .hero:after{display:none}html[data-theme=index] body:not(.studio) .hero>img{right:5%;width:26%;height:78%}html[data-theme=index] body:not(.studio) .hero-copy{padding-right:30%}html[data-theme=index] #cards{display:block}html[data-theme=index] .service{display:grid;grid-template-columns:minmax(80px,22%) 1fr;gap:5%;border-top:1px solid var(--rule);padding-block:16px}html[data-theme=index] .card-body{padding:0}
html[data-theme=gallery] body:not(.studio) .hero{min-height:0;text-align:center;background:#eee7db;color:#393228}html[data-theme=gallery] body:not(.studio) .hero>img{display:none}html[data-theme=gallery] #cards{grid-template-columns:1.4fr 1fr}html[data-theme=gallery] #cards article:first-child{grid-row:span 2}html[data-theme=gallery] #cards article:first-child img{aspect-ratio:1/1}html:is([data-theme=index],[data-theme=gallery]) .hero .ghost{color:#342c21;border-color:#73634e}
@media(max-width:720px){#templates{grid-template-columns:1fr}.layout-choices{gap:15px}.layout-choice>span{font-size:14px}html[data-theme=gallery] #cards{grid-template-columns:1fr}html[data-theme=index] body:not(.studio) .hero h1{font-size:49px}}
.device-section{padding:16px 0 68px}.device-section h2{font:500 clamp(28px,3.2vw,46px)/1.3 "Songti TC",serif;margin:0}.device-section>p{color:#665e51;margin:10px 0 24px}
#devices{margin-top:18px}.device-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}.device-tabs button{font-size:14px;line-height:1.3;padding:9px 14px;border-radius:20px;border:1px solid #bdb5a5;background:transparent}.device-tabs button[aria-pressed=true]{color:#fff;background:#38352e;border-color:#38352e}.photo-scene{width:100%;position:relative;overflow:hidden;border-radius:9px;background:#e2d8cd;max-width:1240px}.photo-stage{position:absolute}.photo-screen{position:absolute;overflow:hidden;background:#eee9df}.photo-screen iframe{position:absolute;inset:0;border:0;transform-origin:top left;pointer-events:none}.device-photo{display:block;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
@media(max-width:600px){.device-tabs{gap:4px}.device-tabs button{font-size:13px;padding:8px 10px}}

.photo-status:empty{display:none}
.photo-status{margin:.4rem 0;font-size:.9rem}
.admin .actions{position:sticky;bottom:0;z-index:2;padding:10px 0 max(10px,env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--rule)}
.admin .actions button:disabled{opacity:.55}
@media(max-width:600px){.admin fieldset,.admin details{min-width:0}.admin .actions button{flex:1}.admin input,.admin textarea,.admin select{max-width:100%;font-size:16px}}

/* 直幅照片（KAYON 2026-11-19）：所有照片欄位都是直的（手機直拍 3:4）；人物照整張放進框裡、絕不裁成半身，比例不同就補底色 */
.service>img,.service>.gallery img{aspect-ratio:3/4}
.person img{aspect-ratio:3/4;height:auto;object-fit:contain;background:var(--band)}
/* 團隊照片一律直式（KAYON 2026-11-20）：橫式照片不再變扁長條，填滿直框、只裁左右兩側，頭腳不裁 */
.person img.wide{object-fit:cover;object-position:center}
.person .gallery .photos>img{align-self:flex-start}
#staff.duo{grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
html[data-theme=gallery] #cards article:first-child img{aspect-ratio:3/4}
@media(max-width:720px){#staff.duo{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.person h3{font-size:17px}}
/* 直幅 Portrait：左文右直幅圖 */
html[data-theme=portrait]{--paper:#f7f4ee;--band:#ebe5da;--accent:#3d382f}
html[data-theme=portrait] body:not(.studio) .hero{display:grid;grid-template-columns:1.1fr .9fr;gap:6%;align-items:center;min-height:0;width:min(1240px,89%);margin:0 auto;padding:48px 0;background:transparent;color:var(--ink)}
html[data-theme=portrait] body:not(.studio) .hero>img{position:static;z-index:0;order:2;justify-self:end;aspect-ratio:3/4;height:auto;width:min(100%,calc(80vh * .75))}
html[data-theme=portrait] body:not(.studio) .hero:after{display:none}
html[data-theme=portrait] body:not(.studio) .hero-copy{width:auto;padding:0}
html[data-theme=portrait] body:not(.studio) .hero h1{font-size:clamp(56px,6.5vw,110px)}
html[data-theme=portrait] body:not(.studio) .hero .ghost{color:var(--ink);border-color:#817d70}
/* 夜幕 Nocturne：深底金字 */
html[data-theme=nocturne]{--paper:#131210;--ink:#efe6d6;--accent:#b8955a;--band:#1d1b17;--rule:#3a352c}
html[data-theme=nocturne] .dark{color:#131210}
html[data-theme=nocturne] .eyebrow{color:#b8955a}
html[data-theme=nocturne] :is(.card-body p,.person p,.visit p){color:#b9ae9a}
html[data-theme=nocturne] .notice{border-left-color:#b8955a}
html[data-theme=nocturne] dialog{background:#1d1b17;color:#efe6d6}
html[data-theme=nocturne] :is(select,input,textarea){background:#131210;border-color:#3a352c}
html[data-theme=nocturne] body:not(.studio) .hero{display:grid;grid-template-columns:1fr 1fr;gap:6%;align-items:center;min-height:0;width:min(1240px,89%);margin:0 auto;padding:56px 0;background:transparent;color:var(--ink)}
html[data-theme=nocturne] body:not(.studio) .hero>img{position:static;z-index:0;order:2;justify-self:end;aspect-ratio:3/4;height:auto;width:min(100%,calc(80vh * .75));outline:1px solid #b8955a;outline-offset:10px}
html[data-theme=nocturne] body:not(.studio) .hero:after{display:none}
html[data-theme=nocturne] body:not(.studio) .hero-copy{width:auto;padding:0}
html[data-theme=nocturne] body:not(.studio) .hero h1{color:#e7d3a8}
html[data-theme=nocturne] body:not(.studio) .hero .light{background:#b8955a;color:#131210}
html[data-theme=nocturne] body:not(.studio) .hero .ghost{border-color:#b8955a99}
/* 滑卷 Reel：直幅卡片左右滑 */
html[data-theme=reel]{--paper:#faf8f4;--band:#efebe3}
html[data-theme=reel] #cards,html[data-theme=reel] #staff.duo{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:14px;scrollbar-width:thin}
html[data-theme=reel] #cards>.service,html[data-theme=reel] #staff>.person{flex:0 0 min(270px,64%);scroll-snap-align:start}
html[data-theme=reel] body:not(.studio) .hero>img{object-position:center}
/* 型錄 Lookbook：團隊／作品放最前面 */
html[data-theme=lookbook]{--paper:#f6f4f0;--band:#e9e5dd}
html[data-theme=lookbook] body:not(.studio) main{display:flex;flex-direction:column}
html[data-theme=lookbook] body:not(.studio) .hero{order:-2}
html[data-theme=lookbook] body:not(.studio) #team{order:-1;background:transparent}
html[data-theme=lookbook] body:not(.studio) .hero{display:grid;grid-template-columns:.7fr 1.3fr;gap:6%;align-items:end;min-height:0;width:min(1240px,89%);margin:0 auto;padding:40px 0 10px;background:transparent;color:var(--ink)}
html[data-theme=lookbook] body:not(.studio) .hero>img{position:static;z-index:0;aspect-ratio:3/4;height:auto;width:min(100%,calc(70vh * .75))}
html[data-theme=lookbook] body:not(.studio) .hero:after{display:none}
html[data-theme=lookbook] body:not(.studio) .hero-copy{width:auto;padding:0}
html[data-theme=lookbook] body:not(.studio) .hero .ghost{color:var(--ink);border-color:#817d70}
html[data-theme=lookbook] .person{text-align:center}
/* 單欄 Column：置中窄欄、一張接一張 */
html[data-theme=column]{--paper:#fbf9f5;--band:#f1ece3}
html[data-theme=column] body:not(.studio) main{width:min(560px,90%);margin:0 auto}
html[data-theme=column] body:not(.studio) main .wrap{width:100%}
html[data-theme=column] body:not(.studio) .hero{display:block;min-height:0;background:transparent;color:var(--ink);text-align:center;padding-top:24px}
html[data-theme=column] body:not(.studio) .hero>img{position:static;z-index:0;aspect-ratio:3/4;height:auto}
html[data-theme=column] body:not(.studio) .hero:after{display:none}
html[data-theme=column] body:not(.studio) .hero-copy{width:100%;padding:28px 0 8px}
html[data-theme=column] body:not(.studio) .hero h1{font-size:clamp(52px,12vw,88px)}
html[data-theme=column] body:not(.studio) .hero .ghost{color:var(--ink);border-color:#817d70}
html[data-theme=column] #cards{grid-template-columns:1fr;gap:42px}
html[data-theme=column] #staff.duo{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-theme=column] .visit{grid-template-columns:1fr}
html[data-theme=column] .band{background:transparent}
@media(max-width:720px){
html:is([data-theme=portrait],[data-theme=nocturne],[data-theme=lookbook]) body:not(.studio) .hero{grid-template-columns:1fr;padding:28px 0;gap:26px}
html:is([data-theme=portrait],[data-theme=nocturne]) body:not(.studio) .hero>img{order:-1;width:100%;justify-self:stretch}
html:is([data-theme=portrait],[data-theme=nocturne],[data-theme=lookbook],[data-theme=column]) body:not(.studio) .hero h1{font-size:56px}
html[data-theme=lookbook] body:not(.studio) .hero>img{width:60%}
html[data-theme=reel] #cards>.service,html[data-theme=reel] #staff>.person{flex-basis:62%}
}
/* 版型縮圖 */
.layout-portrait{background:#f1ece2}
.layout-portrait .mini-mast img,.layout-nocturne .mini-mast img,.layout-lookbook .mini-mast img{width:30%;right:4%}
.layout-portrait .mini-mast strong,.layout-lookbook .mini-mast strong,.layout-column .mini-mast strong,.layout-reel .mini-items span{color:#423b31;text-shadow:none}
.layout-nocturne{background:#131210;color:#e7d3a8;border-color:#3a352c}
.layout-nocturne .mini-nav{border-color:#3a352c}
.layout-nocturne .mini-mast strong{color:#e7d3a8;text-shadow:none}
.layout-reel .mini-items{grid-template-columns:repeat(4,1fr)}
.layout-reel .mini-items div:last-child{opacity:.5}
.layout-lookbook{grid-template-rows:auto .5fr 1fr}
.layout-lookbook .mini-mast img{right:auto;left:4%}
.layout-lookbook .mini-mast strong{text-align:right}
.layout-column{padding-inline:28%;grid-template-rows:auto 1.2fr .5fr}
.layout-column .mini-items{grid-template-columns:1fr}
.layout-column .mini-items div:not(:first-child){display:none}
/* 店家後台雲端版（PR 2） */
.admin-tools{display:flex;align-items:center;gap:18px}.admin-tools a,.admin-tools button{font-size:14px}
.panel{max-width:460px;margin:18px 0 28px;padding:22px 20px;background:#fffdf8;border:1px solid var(--rule);border-radius:4px}.panel h2{font:500 24px/1.4 "Songti TC","Noto Serif TC",Georgia,serif;margin:0 0 8px}.panel>p{color:#58564d;margin:0 0 10px}
.panel-note{color:#58564d;font-size:14px;margin:6px 0 12px}.wide{width:100%;margin-top:10px}.panel-links{display:flex;justify-content:space-between;gap:12px;margin-top:6px!important}
.choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.choice button{width:100%;padding-inline:8px}
.addr{font-size:14px;color:#58564d;margin:-4px 0 8px;word-break:break-all}
.site-line{margin:0}.pub-state{display:inline-block;margin:6px 0 4px;padding:6px 12px;border-radius:3px;background:var(--band);font-size:14px;word-break:break-all}.pub-state[data-live="1"]{background:#e3eadb}
.admin .actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.admin .actions button{width:100%;margin:0;padding-inline:6px;white-space:nowrap}
.history{padding:4px 0}.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--rule)}.history-row strong{display:block;font-weight:600}.history-row .tag{font-size:13px;color:#5d6b4f}.history-row .outline{flex:none;white-space:nowrap}
.lib-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lib-grid figure{margin:0;display:grid;gap:5px}.lib-grid img{width:100%;aspect-ratio:3/4;object-fit:contain;border-radius:3px;background:var(--band)}.lib-grid figcaption{font-size:12px;color:#58564d;line-height:1.3}.lib-grid .outline{width:100%;padding:6px!important;min-height:36px}
@media(max-width:600px){.lib-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.panel{padding:18px 14px}.admin-tools{gap:12px}}
.pub-state .url{display:block;font-weight:600}.choice button{white-space:nowrap}
html.shop-loading body>*{visibility:hidden}
.shop-missing{min-height:70vh;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px}

/* 多張照片：左右滑動（客人網站） */
.gallery{position:relative;min-width:0}.gallery .photos{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}.gallery .photos::-webkit-scrollbar{display:none}.gallery .photos>img{flex:0 0 100%;min-width:0;scroll-snap-align:center}.gallery .count{position:absolute;top:8px;right:8px;padding:2px 9px;border-radius:99px;background:#000a;color:#fff;font:500 12px/1.6 Arial,sans-serif;pointer-events:none}
.gallery .nav{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:34px;padding:0;min-height:0;border:0;border-radius:50%;background:#000a;color:#fff;font:400 22px/34px Arial,sans-serif;text-align:center;cursor:pointer}.gallery .prev{left:8px}.gallery .next{right:8px}
.person>.gallery{margin-bottom:12px}.person>.gallery img{margin-bottom:0}
/* 後台：照片照原比例顯示、選版型縮圖 */
.photo-list h4{margin:0 0 4px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:8px 0}.photo-grid figure{margin:0;display:grid;gap:6px;align-content:start}.photo-grid img{width:100%;height:170px;object-fit:contain;background:var(--band);border-radius:3px}.photo-grid figcaption{font-size:13px;color:#6b685d}.photo-tools{display:flex;gap:6px;flex-wrap:wrap}.photo-tools .outline{flex:1 1 auto;padding:6px 8px;font-size:13px;min-height:0}
.photo-adder .picture-tools{margin-top:4px}
.theme-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:8px 0 18px}.theme-card{display:grid;gap:5px;align-content:start;text-align:left;padding:8px;border:1px solid var(--rule);background:transparent;color:inherit;border-radius:4px;cursor:pointer}.theme-card[aria-checked=true]{border:2px solid var(--ink);padding:7px;background:var(--band)}.theme-card>strong{font:600 15px/1.4 Georgia,serif}.theme-card>span{font-size:12px;line-height:1.5;color:#6b685d}.theme-card[aria-checked=true]>strong::before{content:"✓ "}.theme-card .mini{width:100%}
.traffic{margin:14px 0 6px;padding:14px 16px;border:1px solid var(--line,#ddd);border-radius:6px;background:#fff}.traffic h2{font-size:17px;margin:0 0 10px}.traffic h3{font-size:14px;margin:14px 0 6px;word-break:break-all}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.stat{padding:10px;border-radius:4px;background:var(--band);text-align:center}.stat strong{display:block;font-size:24px;line-height:1.2}.stat span{display:block;font-size:13px;font-weight:600}.stat small{display:block;font-size:11px;opacity:.65}.traffic .panel-note{margin:10px 0 0}.traffic .stat-grid+h2{margin-top:22px}@media (max-width:640px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.auth-providers{display:grid;gap:10px;margin:14px 0 4px}.auth-providers [hidden]{display:none}.auth-providers .outline{width:100%;white-space:nowrap}.auth-providers:not(:has(button:not([hidden]))),.auth-providers:not(:has(button:not([hidden])))+.auth-or{display:none}.auth-or{display:flex;align-items:center;gap:10px;color:#8a857a;font-size:13px;margin:14px 0 0!important}.auth-or:before,.auth-or:after{content:"";flex:1;border-top:1px solid var(--rule)}#login .panel-links .textbtn{font-size:15px}

#login .forgot{margin:-6px 0 0!important;text-align:right}#login .forgot .textbtn{font-size:14px;padding:6px 0}
@media(min-width:600px){#login .auth-providers{grid-auto-flow:column;grid-auto-columns:1fr}}

/* 後台依裝置寬度排版（KAYON 2026-11-20：iPad 橫放不能只用半邊）：手機一欄、平板橫放兩欄、電腦三欄 */
.admin .cards{display:grid;grid-template-columns:minmax(0,1fr);gap:0 20px}.admin .cards fieldset{min-width:0}
@media(min-width:900px){.admin .edit{max-width:1240px}.admin #setup.panel{max-width:none}.admin #setup>label,.admin #setup>.addr,.admin #setup>button,.admin #editor details>label,.admin #editor details>.addr,.admin #editor details>.panel-note{max-width:720px}.admin #setup .theme-picker{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}.admin .cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin .lib-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:1200px){.admin .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.admin .lib-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}
.admin .step-head{margin:34px 0 10px}.admin .step-head:first-child{margin-top:8px}.admin .step-no{font:600 12px/1.5 Arial,sans-serif;letter-spacing:.19em;color:#71644f;margin:0}.admin .step-head h3{font:500 22px/1.4 "Songti TC","Noto Serif TC",Georgia,serif;margin:2px 0 4px}.admin .step-head .panel-note{margin:0}
.foot-family{display:flex;flex-wrap:wrap;gap:2px 10px}
