@font-face{font-family:Inter;src:url('/ad-studio/inter.woff2') format('woff2');font-display:swap}
:root{--paper:#f6f5ef;--ink:#22251f;--muted:#5c5f55;--clay:#ad4325;--line:#d7d7ca;--card:#fffef9;--sage:#e9eee2;--dark:#30362c;color-scheme:light}
*{box-sizing:border-box}
html{background:var(--paper);color:var(--ink);font:16px/1.55 Inter,system-ui,-apple-system,sans-serif;scroll-padding:1rem}
body{margin:0;min-height:100vh;display:flex;flex-direction:column}
:lang(zh-CN){line-height:1.65}
[hidden],html:not([data-lang=zh]) .zh,html[data-lang=zh] .en{display:none!important}
.frame{width:min(1184px,calc(100% - clamp(32px,8vw,112px)));margin-inline:auto}
header{border-bottom:1px solid var(--line);background:var(--paper)}
.masthead,header nav,footer,footer nav,.action-row,.section-top,.order-head,.message-head,.tags{display:flex;align-items:center;gap:.75rem}
.masthead{min-height:70px;justify-content:space-between}
.brand{display:inline-flex;align-items:center;text-decoration:none;font-size:1.15rem;font-weight:730;letter-spacing:-.04em}
.brand>span:last-child{color:var(--clay)}
.brand-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:35px;background:#26271e;border-radius:7px;margin-right:8px}
.brand-icon img{width:40px;height:auto}
main{flex:1;padding-block:clamp(28px,5vw,76px) 60px}
a{color:inherit;text-underline-offset:.18em}
button,input,textarea,select{font:inherit}
button,.button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 17px;border-radius:6px;border:1px solid transparent;background:var(--clay);color:#fff;font-weight:600;line-height:1.3;text-decoration:none}
button:hover,.button:hover{filter:brightness(.93)}
:disabled{opacity:.55;cursor:not-allowed}
.secondary,.quiet{color:var(--ink);border-color:var(--line);background:transparent}
.quiet{padding:7px 12px;font-size:.9rem}
:focus-visible{outline:3px solid #88420d;outline-offset:3px}
.skip{position:absolute;top:-80px;left:12px;background:var(--card);padding:10px;z-index:10}
.skip:focus{top:8px}
.intro{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:clamp(24px,4vw,44px)}
.intro-copy{max-width:48rem}
h1,h2,h3,h4,p{margin:0}
h1,h2{font-family:Georgia,'Songti SC','Noto Serif CJK SC',serif;font-weight:480;line-height:1.12}
h1{font-size:clamp(2.35rem,6vw,4.9rem);letter-spacing:-.045em}
h2{font-size:clamp(1.6rem,3vw,2.15rem);letter-spacing:-.025em}
h3{font-size:1.05rem}
.intro p,.hint,.empty,.meta,small{color:var(--muted)}
.intro p{margin-top:.7rem}
#account{font-size:.84rem;color:var(--muted);overflow-wrap:anywhere}
#notice:empty{display:none}
#notice,.feedback:not(:empty),.file-banner{padding:.65rem .9rem;border:1px solid var(--line);border-radius:6px;background:var(--sage);margin:0 0 1rem;overflow-wrap:anywhere}
#notice.error,.feedback.error:not(:empty){background:#fff1e8;border-color:#dab79e;color:#83341c}
.panel{border:1px solid var(--line);border-radius:14px;background:var(--card);padding:clamp(17px,2.6vw,34px);min-width:0}
.login-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;overflow:hidden;border-radius:14px;border:1px solid var(--line);background:var(--card)}
.signin{padding:clamp(22px,4vw,52px);align-self:center;max-width:600px}
.signin h2,.panel>h2{margin-bottom:1rem}
.signin p{margin-bottom:1rem}
.login-photo{min-height:300px;background:#56453d url('/ad-studio/examples/local-01.webp') center center/cover no-repeat}
body[data-role=rep] .login-photo{background-image:url('/ad-studio/examples/product-04.webp')}
body[data-role=admin] .login-photo{background-image:url('/ad-studio/examples/merch-01.webp')}
.stack,.field{display:grid;gap:.75rem}
.field{gap:.35rem;color:var(--ink);font-size:.92rem}
input,select,textarea{width:100%;min-width:0;padding:10px 12px;color:var(--ink);border:1px solid #aaa99c;border-radius:6px;background:white;min-height:44px}
textarea{resize:vertical;min-height:84px}
input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--clay)}
.check{display:flex;gap:.65rem;align-items:start;font-size:.9rem}
input[type=file]{padding:7px;font-size:.88rem;max-width:100%}
.feedback{font-size:.92rem}
.feedback:empty{display:none}
.action-row{flex-wrap:wrap}
.grid{display:grid;grid-template-columns:minmax(200px,286px) minmax(0,1fr);gap:clamp(16px,3vw,38px);align-items:start}
.sidebar{background:#efeee5;display:grid;gap:1rem;padding:18px}
.sidebar h2{font-size:1.5rem;letter-spacing:-.02em}
.room-list{display:grid;gap:6px;max-height:360px;overflow:auto}
.room-link{display:flex;align-items:flex-start;flex-direction:column;text-align:left;color:var(--ink);border:1px solid var(--line);background:var(--card);padding:10px 12px;overflow-wrap:anywhere}
.room-link.current{border-color:#916650;background:#f8e8de;box-shadow:inset 3px 0 var(--clay)}
.room-link small{font-weight:400;font-size:.76rem}
#room{min-width:0;overflow-wrap:anywhere}
.section-top,.order-head,.message-head{justify-content:space-between;flex-wrap:wrap}
.section-top,.section-top+p,.room-section,.form-group,.order-card{margin-bottom:1rem}
.room-section+.room-section{border-top:1px solid var(--line);padding-top:1.4rem;margin-top:1.4rem}
.room-section h3{margin-bottom:.75rem}
.meta,.empty,.hint,small{font-size:.88rem}
.orders{display:grid;gap:.65rem}
.order-card{margin:0;border:1px solid var(--line);border-radius:8px;padding:13px;background:#fcfbf5}
.badge{border-radius:20px;background:var(--sage);color:#384532;padding:3px 10px;font-size:.76rem;font-weight:650;display:inline-block}
.room-menu,.form-group{border-top:1px solid var(--line);padding-top:.45rem}
details>summary{cursor:pointer;font-weight:600;min-height:44px;padding:9px 0}
details[open]>summary{margin-bottom:5px}
.order-card details{margin-top:8px}
.order-card> .action-row,.order-card>p{margin-top:6px}
.thread{display:flex;flex-direction:column;gap:8px;max-height:380px;overflow:auto;overscroll-behavior:contain;margin:.8rem 0}
.msg{align-self:flex-start;background:#eeeee5;padding:10px 13px;border-radius:9px;max-width:90%;overflow-wrap:anywhere}
.msg.own{align-self:flex-end;background:#e9eedf}
.msg p{white-space:pre-wrap}
.message-head{font-size:.74rem;gap:.7rem;margin-bottom:3px;color:var(--muted)}
.file-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
footer{border-top:1px solid var(--line);padding-block:22px;justify-content:space-between;color:var(--muted);font-size:.88rem}
footer nav{flex-wrap:wrap}
@media(max-width:760px){.grid{grid-template-columns:1fr}.room-list{max-height:155px}.intro{display:block}.login-grid{grid-template-columns:1fr}.login-photo{min-height:140px;order:2}.signin{width:100%;max-width:none}#account{display:block;margin-top:.5rem}.masthead{min-height:59px}main{padding-block:28px 40px}.sidebar{padding:14px}}
@media(max-width:480px){button,.button{padding-inline:13px}.frame{width:calc(100% - 28px)}.intro{margin-bottom:20px}.room-link{min-height:48px}.msg{max-width:97%}.file-banner{align-items:stretch}.masthead nav{gap:.35rem}}
