:root {
  color: #282922; background: #f3efe8; color-scheme: light;
  font-family: 'PingFang SC','Microsoft Yahei',-apple-system,BlinkMacSystemFont,'Noto Sans CJK SC',sans-serif;
  --ink:#292a23; --quiet:#59594e; --line:#d2cabe; --paper:#fcf9f2; --olive:#353f31;
}
* { box-sizing:border-box; } body { margin:0; }
button,select,input { font:inherit; } button { cursor:pointer; color:inherit; }
button:disabled { cursor:default; opacity:.54; }
a { color:inherit; text-underline-offset:.24em; } [hidden] { display:none!important; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid #94613e; outline-offset:3px; }
.mast { background:#f8f4ed; border-bottom:1px solid var(--line); }
.mast-inner,main,.foot { width:min(1320px,calc(100% - 88px)); margin-inline:auto; }
.mast-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.identity { display:flex; flex-wrap:wrap; align-items:baseline; column-gap:22px; text-decoration:none; }
.brand-name { font-family:'Songti SC','STSong','SimSun',serif; font-size:25px; font-weight:700; letter-spacing:.09em; }
.company { color:#515348; font-size:13px; line-height:1.55; }
.mast-action { flex:none; font-size:14px; display:flex; align-items:center; min-height:44px; }
.upload-page #main > :not(#upload) { display:none; }
.upload-page #upload { margin:0 0 32px; border-top:0; }
.intro { display:flex; align-items:end; justify-content:space-between; gap:20px; margin:40px 0 22px; }
.eyebrow { color:#6b664f; font-family:Georgia,serif; font-size:13px; font-weight:700; letter-spacing:.13em; margin:0 0 9px; }
h1,h2,p { margin:0; } h1,h2 { font-family:'Songti SC','STSong','SimSun',serif; font-weight:700; }
h1 { font-size:clamp(35px,4.2vw,63px); line-height:1.07; letter-spacing:.015em; }
.intro>p { margin:0 0 2px; color:var(--quiet); line-height:1.65; font-size:16px; }
.exhibition { display:grid; grid-template-columns:minmax(0,1fr) minmax(270px,30%); border:1px solid var(--line); background:var(--paper); }
.stage { position:relative; height:clamp(420px,50vw,655px); overflow:hidden; isolation:isolate;
  background:radial-gradient(ellipse at 48% 18%,#f0e5d3 0%,#d1bea8 75%); border-right:1px solid var(--line); }
#viewport,#poster { width:100%; height:100%; position:absolute; inset:0; display:block; }
#viewport canvas { display:block; width:100%; height:100%; touch-action:none; outline-offset:-4px; }
#poster { object-fit:contain; }
.stage-top { position:absolute; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; top:16px; left:16px; right:16px; pointer-events:none; }
.switch { display:inline-flex; padding:4px; gap:3px; max-width:100%; border:1px solid #d5cbbd; border-radius:999px; background:#fcf9f1f4; pointer-events:auto; }
.switch button { border:0; border-radius:999px; background:transparent; font-size:14px; min-height:44px; padding:0 15px; white-space:nowrap; }
.switch button[aria-pressed=true] { background:#353f31; color:#fffdf4; }
.stage-chip { color:#343b30; background:#faf5e8ee; border:1px solid #dacdbb; padding:7px 9px; border-radius:4px; font-size:13px; white-space:nowrap; }
#stage-message { position:absolute; left:50%; bottom:20px; width:max-content; max-width:calc(100% - 26px); z-index:2; transform:translateX(-50%); border-radius:6px; padding:8px 12px; color:#332e24; background:#fff9edee; line-height:1.5; font-size:14px; }
.zoom { position:absolute; z-index:2; right:16px; bottom:16px; display:flex; flex-direction:column; border:1px solid #d5cabb; border-radius:7px; background:#fcf9f2ed; }
.zoom button { min-width:44px; min-height:44px; border:0; background:transparent; font-size:22px; }
.zoom button+button { border-top:1px solid #d5cabb; }
.bearing { position:absolute; z-index:2; bottom:16px; left:16px; color:#343b30; background:#fcf9f2ec; border:1px solid #d5cabb; border-radius:5px; padding:8px 11px; font-size:13px; font-variant-numeric:tabular-nums; pointer-events:none; }
.details { display:flex; flex-direction:column; justify-content:center; gap:36px; padding:clamp(22px,3vw,42px); }
.detail-kicker,.view-label { color:#57594a; font-size:14px; font-weight:600; margin-bottom:9px; }
.details h2,.process h2 { font-size:clamp(24px,2.6vw,36px); color:var(--ink); line-height:1.26; }
#story,.process p:not(.eyebrow) { color:var(--quiet); font-size:16px; line-height:1.72; margin-top:12px; }
.views { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.views button,.outline { border:1px solid #bfb5a5; min-height:44px; background:#f9f5ed; border-radius:3px; font-size:15px; }
.views button[aria-pressed=true] { border-color:#697362; background:#e8e9de; }
.detail-views { display:flex; gap:7px; }
.detail-views button { flex:1; min-width:0; min-height:44px; border:1px solid #bfb5a5; background:#f9f5ed; border-radius:3px; font-size:14px; }
.detail-views button[aria-pressed=true] { border-color:#697362; background:#e8e9de; }
.text-button { display:block; min-height:44px; border:0; padding:0; color:#344133; text-decoration:underline; text-underline-offset:3px; background:transparent; font-size:14px; }
#reference-credit { line-height:1.55; }
button:not(:disabled):hover { filter:brightness(.94); }
.controls-hint { color:#666554; margin-top:9px; font-size:13px; line-height:1.5; }
.share-row .outline { padding-inline:13px; display:block; }
.mechanism-entry { padding-block:8px; align-content:center; min-height:44px; margin-bottom:8px; font-weight:650; }
#copy-status { display:block; margin-top:6px; color:#485744; font-size:13px; }
#copy-status:empty { display:none; }
.process { display:grid; grid-template-columns:1fr 1fr; gap:46px; padding:35px 0; margin:88px 0 34px; border-top:1px solid var(--line); }
.process form { display:grid; gap:9px; align-content:start; color:#404439; padding:20px; border:1px solid var(--line); background:#fbf7ef; border-radius:4px; }
.process label { font-size:15px; font-weight:650; }
.process input[type=file],.process select { width:100%; min-height:44px; padding:8px; border:1px solid #c4bbac; border-radius:4px; background:#fffdf6; color:#31332a; }
.process input[type=file]::file-selector-button { margin-right:9px; padding:5px 8px; color:#31392e; background:#e9e9df; border:0; border-radius:2px; }
.process .check { display:flex; gap:9px; min-height:44px; align-items:center; font-weight:400; }
.check input { width:18px; height:18px; accent-color:#455640; }
.primary { min-height:48px; border:0; border-radius:4px; background:#374333; color:#fffaf0; font-weight:700; }
#job-status { margin-top:3px; overflow-wrap:anywhere; }
#job-status:empty { display:none; }
#job-status[data-error=true] { color:#8a332b; }
.clarity { padding:12px 15px; background:#e9e8dd; border-left:3px solid #888f77; }
.foot { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; border-top:1px solid var(--line); padding:20px 0 24px; color:#56594d; font-size:13px; }
@media (max-width:820px) {
  .mast-inner,main,.foot { width:calc(100% - 32px); }
  .mast-inner { min-height:69px; gap:8px; }
  .identity { display:grid; gap:2px; }
  .brand-name { font-size:22px; } .company { font-size:12px; }
  .intro { display:grid; gap:8px; margin:27px 0 15px; }
  .intro>p { font-size:15px; } .intro .eyebrow { margin-bottom:7px; }
  .exhibition { display:block; }
  .stage { height:clamp(325px,84vw,580px); border-right:0; border-bottom:1px solid var(--line); }
  .stage-top { top:10px; left:9px; right:9px; gap:5px; }
  .stage-chip { font-size:12px; padding:6px; }
  .switch button { padding-inline:10px; }
  .zoom { right:10px; bottom:10px; }
  .bearing { left:10px; bottom:10px; }
  .details { gap:16px; padding:15px; }
  .views { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  #story { margin-top:5px; }
  .process { margin:45px 0 20px; gap:20px; grid-template-columns:1fr; padding:24px 0; }
}
@media (max-width:360px) {
  .mast-inner,main,.foot { width:calc(100% - 24px); }
  .company { font-size:11px; }
  .switch button { padding-inline:7px; font-size:13px; }
}
