*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#193c38;background:#1f303d}button,input{font:inherit}button{cursor:pointer;color:inherit;font-weight:750;border:1px solid #b5c8bb;background:#faf9ef;border-radius:7px;padding:9px 13px}button:hover{background:#e0eee1}button:disabled{cursor:default;opacity:.55}button:focus-visible,input:focus-visible{outline:3px solid #cb7732;outline-offset:2px}main{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,30vw);min-height:100dvh}.street{position:relative;min-height:540px;height:100dvh;overflow:hidden;background:radial-gradient(ellipse at 43% 42%,#42606a 0%,#243d48 48%,#172935 83%)}#scene{display:block;width:100%;height:100%;touch-action:none}.mast{position:absolute;left:30px;top:28px;display:flex;align-items:center;gap:13px;color:#fff4d8;pointer-events:none}.logo{background:#eb996c;border:2px solid #fff3dc;border-radius:15px 3px 15px 3px;font-weight:900;font-size:30px;width:50px;height:48px;line-height:44px;text-align:center;color:#293f40}.mast b{font-size:25px;font-weight:900;letter-spacing:.09em}.mast small,.eyebrow{display:block;font:700 11px/1.6 Consolas,monospace;letter-spacing:.16em}.camera{position:absolute;left:27px;bottom:28px;display:flex;gap:4px;padding:4px;border:1px solid #617478;border-radius:9px;background:#172f38dc}.camera button{border:0;background:transparent;color:#f4e4ca}.camera button[aria-pressed=true]{background:#f6dbb5;color:#183a38}.controls{position:absolute;right:18px;bottom:39px;color:#dfe7de;font-size:14px;font-weight:700;pointer-events:none}#loading{position:absolute;top:48%;width:100%;text-align:center;color:white;font-weight:800}aside{height:100dvh;overflow:auto;background:#f4f0df;padding:26px clamp(17px,2vw,34px);display:flex;flex-direction:column;border-left:5px solid #dfaa70}.shift,.book-head,footer,.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.shift{border-bottom:2px solid #2b584e;padding-bottom:16px}.shift strong{font-size:20px}.shift button{border:0;background:transparent}.eyebrow{color:#617369;font-size:13px}h1,h2,h3,p{margin:0}h1{font-size:clamp(32px,3vw,48px);line-height:1.18;color:#205246;margin:16px 0}h2{font-size:26px}h3{font-size:18px;margin:16px 0 8px}p{font-size:17px;line-height:1.55;font-weight:570}.intro{margin:auto 0;padding:36px 0}.intro p{margin:18px 0 24px}.primary{background:#17584b;color:#fff9e5;border:0;font-size:17px;padding:12px 17px}.primary:hover{background:#286f60}#panel{padding:20px 0}.line{padding:12px 0;border-bottom:1px dashed #b4b9a5}.bubble{margin:10px 0;background:#fffcf1;border-left:4px solid #d78d61;padding:11px 13px;font-weight:680}.compose{display:flex;gap:5px;margin:10px 0}.compose input{min-width:0;flex:1;border:1px solid #99aca0;border-radius:6px;padding:9px;font-size:16px}.quick{display:flex;gap:5px;flex-wrap:wrap}.quick button{font-size:14px;padding:6px 9px}.goods{display:grid;grid-template-columns:1fr 1fr;gap:6px}.goods button{display:flex;justify-content:space-between;gap:5px;padding:9px;font-size:15px}.goods button[aria-pressed=true]{outline:2px solid #237a67;background:#e3efde}.note{font-size:15px;color:#52665d;margin:8px 0}.act{width:100%;margin:8px 0}footer{border-top:2px solid #2b584e;padding-top:15px;margin-top:auto;font-weight:750}footer strong{font-size:25px}dialog{width:min(440px,94vw);max-height:88dvh;overflow:auto;border:1px solid #718a78;border-radius:12px;background:#faf6e5;color:#21473b;padding:22px}dialog::backdrop{background:#152830a8}.book-head{margin-bottom:10px}.book-head button{font-size:21px}.stat{font-size:19px;margin:9px 0}.bookrow{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:9px 0;border-bottom:1px solid #c6c8b8}.bookrow small{display:block}.stamp{margin:10px 0;padding:12px;border:1px dashed #7a8981;background:#fffef3}.stage{font:700 14px/1.4 monospace;color:#6c6e59}
@media(max-width:760px){main{display:flex;flex-direction:column}.street{height:47dvh;min-height:305px}.mast{left:13px;top:13px;gap:8px}.logo{width:36px;height:35px;font-size:24px;line-height:31px}.mast b{font-size:19px}.mast small{font-size:9px}.camera{left:10px;bottom:9px}.camera button{padding:6px 10px;font-size:14px}.controls{right:9px;bottom:20px;font-size:11px}aside{height:auto;min-height:53dvh;border-left:0;border-top:4px solid #dfaa70;padding:13px 18px}.shift{padding-bottom:7px}.intro{padding:5px 0}.intro p{margin:10px 0}#panel{padding:12px 0}footer{margin-top:10px}}

.staff-tools{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0 14px}.staff-tools button{font-size:15px}.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-grid figure{margin:8px 0;background:white;padding:5px;box-shadow:0 1px 4px #243f302c}.photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover}.photo-grid figcaption{font-size:14px;font-weight:bold;overflow-wrap:anywhere}.pick-file{cursor:pointer;display:inline-flex;align-items:center;background:#f2efdf;border:1px solid #a7b7a9;border-radius:5px;padding:6px 10px;font-size:15px;font-weight:bold}.pick-file input{width:1px;height:1px;position:absolute;opacity:0}.pick-file:focus-within{outline:2px solid #b96a42}#memo label{display:grid;gap:8px;font-weight:700}#memo textarea{font:inherit;line-height:1.5;padding:8px;width:100%;margin-bottom:8px}#photo-status,#donation-status{margin:10px 0;font-size:15px}#change{width:6em;padding:5px}.street{background:radial-gradient(ellipse at 34% 40%,#464c63 0%,#273748 46%,#101b30 87%)}.controls{background:#142935ab;border-radius:5px;padding:3px 7px}#scenery{position:absolute;right:20px;top:22px;color:#f5e9cf;background:#182d3ad9;border-color:#727f84}.scenery main{display:block}.scenery aside,.scenery .mast,.scenery .controls,.scenery .camera,.inspecting .camera,.inspecting #scenery,.inspecting .controls{display:none}.scenery .street{height:100dvh}.scenery #scenery{opacity:.66}.scenery #scenery:hover,.scenery #scenery:focus{opacity:1}.pack-head{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px;margin:0 0 15px}.pack-head span{grid-column:1/-1}.pack-head>b{font-size:24px;color:#a94732}.food-label{margin:15px 0;padding:14px;background:#fffcef;border:1px solid #a7b3a3}.food-label h3:first-child{margin-top:0}.food-label table{width:100%;border-collapse:collapse;font-size:17px}.food-label caption{text-align:left;font-weight:750;padding-bottom:5px}.food-label th,.food-label td{padding:4px 0;border-top:1px solid #bbc3b0}.food-label th{text-align:left}.food-label td{text-align:right;font-weight:700}.portion{display:flex;align-items:center;justify-content:space-between;gap:6px;border-top:2px solid #33584d;padding:9px 0}.portion b{font-size:20px}.portion span,.food-label small{font-size:14px}.pack-size{margin:15px 0}.pack-actions{display:flex;gap:5px;flex-wrap:wrap}.pack-actions .primary{flex:1}.inspecting .mast{display:none}
@media(max-width:760px){#scenery{top:12px;right:12px;padding:6px 9px}.inspecting{height:35dvh;min-height:210px}}
#weather{position:absolute;top:76px;right:20px;display:flex;gap:2px;background:#17343ce8;padding:3px;border-radius:8px}#weather select{background:transparent;color:#fff9eb;font:700 15px "Microsoft YaHei",sans-serif;border:0;padding:5px;cursor:pointer}#weather option{color:#163931;background:white}.inspecting #weather{display:none}.street[data-light=day-clear]{background:radial-gradient(ellipse at 35% 30%,#fff4c9,#b8e5df 54%,#83b2ba)}.street[data-light=day-rain]{background:radial-gradient(ellipse at 40% 38%,#c4d6db,#94acb5 60%,#738999)}.street[data-light=night-clear]{background:radial-gradient(ellipse at 40% 38%,#4e516a,#263a55 53%,#101d37)}.street[data-light^=day] .mast{color:#193c38}.weather-story{border-left:4px solid #7e9fa9;background:#e1e9e5;padding:10px;margin:8px 0}.weather-story button{margin-top:7px}.counter-face{display:grid;text-align:center;background:#d6e4c6;padding:24px}.counter-face strong{font-size:42px}.food-inspect{display:block;width:100%;max-height:32vh;object-fit:contain;background:#eae2d3;border-radius:8px;margin:12px 0}#staff:has(.phone-home),#staff:has(.phone-shell){padding:16px;width:min(470px,95vw);background:#f6f5ee;border:5px solid #293c3b;border-radius:26px}.phone-home{background:linear-gradient(150deg,#153e40,#286659 73%,#376f5b);border-radius:14px;padding:18px;color:#fff8dd}.phone-clock{font:700 46px/1.1 Consolas,monospace}.app-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:26px 0}.app-grid button{background:none;border:0;color:inherit;display:grid;justify-items:center;gap:8px;padding:0;font-size:15px}.app-grid b{border-radius:13px;background:#e8f2bd;color:#23493b;display:grid;place-items:center;width:49px;height:49px;font-size:23px}.app-grid button:nth-child(2) b{background:#ffca93}.app-grid button:nth-child(3) b{background:#a8d9e9}.app-grid [data-app=album] b{background:#edc3cd}.contact{display:block;text-align:left;width:100%;margin:8px 0}.contact span{display:block;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.phone-back{border:0;background:none;color:#355d53;padding:4px 8px 8px 0}.market-funds{display:flex;justify-content:space-between;background:#244e47;color:#fff6d9;padding:10px 15px;border-radius:7px;font-weight:700}.market-tabs{display:flex;gap:5px;margin:9px 0}.market-tabs [aria-pressed=true]{background:#236051;color:white}.market-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.market-grid article{background:#fffef6;border:1px solid #ced6bd;padding:8px;border-radius:8px;min-width:0}.market-grid img,.market-grid .swatch{display:grid;place-items:center;width:100%;aspect-ratio:3/2;object-fit:cover;background:#dce6cd;border-radius:5px}.swatch{font-size:26px;font-weight:900;color:#496358}.market-grid h3{font-size:17px;margin:6px 0;line-height:1.35}.market-grid button{display:block;width:100%;margin-top:6px;padding:7px 3px}.market-grid small{font-size:14px}.thread figure{margin:8px 0}.thread img{width:140px;max-width:55%;border-radius:9px;display:block}.thread figcaption button{margin:4px 0;font-size:14px}.thread p,.wish{padding:9px 12px;border-radius:9px;background:#e6ebe3;margin:8px 15% 8px 0}.thread .mine{margin:8px 0 8px 15%;background:#d5e9ab}.wish{margin-right:0;background:#f3e7d0}.wish b{display:block;margin-bottom:6px}.wish button{margin:2px}.dm-source{font-weight:bold}.phone-shell .photo-grid img{aspect-ratio:auto}
@media(max-width:760px){#weather{top:54px;right:12px}#weather select{font-size:14px}.market-grid{gap:6px}}
.staff-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:12px 0;margin:0;border-top:1px solid #bbc5b3}
.staff-tools button{display:grid;justify-items:center;align-content:center;gap:4px;min-height:66px;padding:5px 2px;border:0;background:transparent;font-size:15px}
.staff-tools button:hover{background:#e1e7d5}
#panel .note:empty{display:none}
#leave{margin:8px 0 0;padding:6px 0;background:transparent;border:0;color:#496358;text-decoration:underline;text-underline-offset:4px}
#item-stage{position:absolute;inset:0;pointer-events:none}
#counter-preview{position:absolute;inset:0;display:grid;place-items:center;background:#102932db}
#counter-preview[hidden],#item-stage[hidden]{display:none}
#counter-preview img{object-fit:contain;width:min(54%,400px);height:54%;border-radius:10px}
#item-actions{position:absolute;top:76%;left:50%;transform:translateX(-50%);display:flex;flex-wrap:nowrap;gap:5px;align-items:center;pointer-events:auto;background:#17323af0;border-radius:12px;padding:6px;box-shadow:0 4px 16px #0a232747;max-width:calc(100% - 12px)}
#item-actions button{white-space:nowrap;font-size:16px;min-height:44px;padding:8px 11px}
#item-actions .primary{background:#f8cd87;color:#233e35}
.street:has(#counter-preview:not([hidden])):has(#item-stage:not([hidden])) .camera{visibility:hidden}
.app-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.app-grid button:last-child b{background:#e0bf8b;color:#473e32}
.now-record{display:flex;align-items:center;gap:15px;background:#284f48;color:#fff6da;border-radius:10px;padding:17px 14px}
.now-record i{width:58px;flex:0 0 58px;height:58px;border-radius:50%;background:radial-gradient(circle,#18332e 2px,#dbaa64 3px 10px,transparent 11px),repeating-radial-gradient(circle,#223a37 0 3px,#49645a 4px 5px)}
.now-record h3{font-size:20px;line-height:1.25;margin:4px 0}.now-record small{font-size:14px}
.music-controls{display:flex;align-items:center;gap:6px;margin:10px 0}.music-controls a{margin-left:auto;color:#285648;font-size:14px;font-weight:bold}
.song-list{max-height:27dvh;overflow:auto}.song-list button{display:block;width:100%;padding:8px 10px;border:0;border-bottom:1px solid #c6cfbe;border-radius:0;text-align:left;background:none}.song-list small{display:block;font-size:14px}.song-list button[aria-pressed=true]{border-left:4px solid #367563;background:#e1ecd8}
#music-status,#import-status{font-size:15px}#music-status:not(:empty),#import-status:not(:empty){margin:8px 0}
@media(max-width:760px){#item-actions{top:auto;bottom:5px}#item-actions button{font-size:14px;padding:7px 9px}.app-grid{gap:3px}.app-grid b{width:43px;height:43px}.app-grid button{font-size:14px}.staff-tools button{min-height:58px}}

#counter-preview:not([hidden]){pointer-events:auto}

.guest-face,.thread img.guest-face{width:48px;height:48px;flex:none;border-radius:14px;border:2px solid #f7ebcd;object-fit:cover}
.speaker{display:flex;align-items:center;gap:10px;position:relative;z-index:1;margin:8px 0 -9px 9px;width:fit-content;max-width:calc(100% - 12px);background:#244a47;color:#fff4db;border:2px solid #b99763;border-radius:16px 18px 18px 4px;padding:3px 12px 3px 3px;box-shadow:0 3px 6px #1029231e}
.speaker h2{font-size:21px;line-height:1.05}.speaker h2 small{display:block;font-size:13px;font-weight:650;color:#ccded1;margin-top:5px}.affinity,.chat-id span{color:#f4c49a;font-size:15px;font-weight:800}
.gal-line{position:relative;border:1px solid #b39061;border-radius:7px 17px 7px 17px;padding:18px 18px 16px;background:linear-gradient(115deg,#fffcf1,#f7eed6);box-shadow:inset 0 0 0 3px #fff9e8;margin-bottom:12px}
.gal-line:after{content:'✦';position:absolute;bottom:3px;right:8px;font-size:13px;color:#ad814a}
.gal-line .bubble{border:0;margin:0;padding:0;background:none;font-size:18px;font-weight:700;line-height:1.6;color:#28453f}
.speaker + .note{margin:13px 0 3px}.speaker + .stamp{margin-top:17px}.weather-story p{font-size:16px}
.app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 6px;margin:22px 0 4px}
.contact,.roster-person{min-height:64px}.contact .guest-face{float:left;margin-right:10px;width:40px;height:40px}.contact b{display:block}.contact span{font-size:14px}
.chat-id,.profile-cover,.profile-stats{display:flex;align-items:center;gap:12px}.chat-id,.profile-cover{padding:10px;background:#284e49;color:#fff5de;border-radius:10px}.chat-id span{margin-left:auto}.profile-cover .guest-face{width:68px;height:68px}.profile-cover h3{font-size:22px;margin:0}
.roster{display:grid;gap:6px}.roster-person{display:flex;align-items:center;text-align:left;gap:10px;padding:7px 10px}.roster-person small{display:block;font-size:14px;margin-top:3px}.roster-person strong{margin-left:auto;color:#9a5943}
.profile-stats{justify-content:space-between;border-bottom:1px solid #bbc8b8;padding:12px 0}.discovered{padding-left:20px;line-height:1.65}.discovered li{margin:6px 0}.bond-progress{font-size:15px;margin-top:8px}.friend-gift{padding:13px 15px;background:#f0dfb6;border:1px solid #c3a15c;border-radius:9px;margin:12px 0}.friend-gift.packet{background:#924c3f;color:#fff5de}.friend-gift b{display:block;font-size:19px;margin:5px 0}.friend-gift p{margin:6px 0;font-size:15px}


#guide{margin-top:12px;padding:11px 14px;background:#e1ecdd;border-left:4px solid #357059;border-radius:2px 8px 8px 2px}
#guide header,.wx-chat header{display:flex;align-items:center;justify-content:space-between;gap:8px}
#guide-title{font-size:18px}#guide-copy{margin-top:4px;font-size:16px;line-height:1.45}
#skip-guide{background:transparent;border:0;padding:4px;font-size:14px;color:#426050}.guide-target{outline:3px solid #bd782d;outline-offset:2px}
.shift #guide-again{margin-left:auto}.shift button{padding:6px}
.app-grid b,.wx-avatar{position:relative}.unread-dot{display:block;position:absolute;right:-3px;top:-3px;width:12px;height:12px;background:#e74743;border:2px solid white;border-radius:50%}
.wx-list .contact{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:12px;align-items:center;background:white;border:0;border-radius:0;border-bottom:1px solid #e7e7e7;margin:0;padding:13px 10px}
.wx-list .contact .wx-avatar{grid-row:span 2;overflow:visible;width:44px;height:44px}.wx-list .guest-face{display:block;float:none;width:44px;height:44px;border-radius:8px;border:0}.wx-list .snippet{color:#636967}
#staff:has(.wx-chat){padding:0;width:min(450px,96vw);border:4px solid #283c3a;border-radius:22px;background:#ededed;overflow:hidden}
#staff:has(.wx-chat)>.book-head{position:absolute;right:9px;top:8px;z-index:1;margin:0}
#staff:has(.wx-chat)>.book-head h2{display:none}
#staff:has(.wx-chat) #staff-close,.wx-chat header button{background:transparent;border:0;font-size:25px;padding:2px 9px}
.wx-chat{display:flex;flex-direction:column;height:min(680px,84dvh);color:#232925}
.wx-chat header{min-height:52px;justify-content:flex-start;border-bottom:1px solid #d5d8d4;padding:6px 52px 6px 8px}
.wx-chat header b{flex:1;text-align:center;font-size:19px}.wx-chat header small{font-weight:750;color:#52695d}
.wx-history{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 11px}
.wx-row{display:flex;align-items:flex-start;gap:9px;margin-bottom:14px}.wx-row.outgoing{flex-direction:row-reverse}
.wx-row .guest-face,.clerk-avatar{width:38px;height:38px;border:0;border-radius:7px}
.clerk-avatar{display:grid;place-items:center;background:#326359;color:#ffe4b9;font-weight:900;flex:none}
.wx-bubble,.wx-order{max-width:77%;background:white;border-radius:5px;padding:9px 12px;font-size:16px;line-height:1.48;overflow-wrap:anywhere}
.wx-bubble{position:relative}.wx-bubble:before{content:'';position:absolute;top:14px;left:-5px;width:9px;height:9px;transform:rotate(45deg);background:inherit}
.outgoing .wx-bubble{background:#a9eb84}.outgoing .wx-bubble:before{left:auto;right:-4px}
.wx-order{display:flex;flex-wrap:wrap;gap:5px}.wx-order b,.wx-order img{width:100%}.wx-order img{max-height:138px;object-fit:cover;border-radius:4px}.wx-order button{font-size:14px;padding:5px 7px}
.wx-reward{min-width:195px;text-align:left;background:#f4d59d;border:0;padding:0;overflow:hidden}
.wx-reward.red{background:#e99344;color:white}.wx-reward strong,.wx-reward span,.wx-reward small{display:block;padding:0 12px}.wx-reward strong{padding-top:11px;font-size:16px}.wx-reward span{font-size:14px;margin:4px 0 8px}.wx-reward small{background:#fffaef;color:#786542;padding:5px 12px}.typing{display:block;text-align:center;color:#55675e}
#dm{display:flex;align-items:center;gap:5px;padding:8px;background:#f7f7f7;border-top:1px solid #d5d8d4}
#dm input{min-width:0;flex:1;padding:9px;border:0;border-radius:5px;font-size:16px}
#emoji-toggle{border:0;background:none;padding:2px;font-size:27px}.wx-send{background:#177e46;color:white;border:0}
#emoji-tray:not([hidden]){display:grid;grid-template-columns:repeat(6,1fr);padding:8px;background:#f3f4f2}
#emoji-tray button{background:none;border:0;font-size:24px;padding:4px}
#envelope{width:min(310px,86vw);padding:38px 22px 27px;text-align:center;color:#ffe8be;border:0;background:#ab443a;border-radius:16px}
#envelope .guest-face{border-color:#e4b78d}#envelope h3{margin:9px 0 4px}#envelope .packet-close{position:absolute;top:5px;right:7px;color:inherit;background:none;border:0;font-size:23px}
.unseal{display:block;margin:38px auto 5px;width:66px;height:66px;border:2px solid #dfae64;border-radius:50%;background:#f4cc85;color:#775020;font-size:26px}
#envelope.opened{color:#71492a;background:#fff5df}.packet-sum{display:block;font-size:42px;color:#9b5230;margin:24px 0 4px}.packet-sum small{font-size:16px}

.wx-receipt{display:block;text-align:center;font-size:14px;color:#626a64;margin:10px 0 16px}

.welcome-title em{font-style:normal;color:#ad492e}
.app-grid [data-app=chat] b{background:#238953;color:#fff}
.app-grid [data-app=charity] b{background:#ffe2d7;color:#ae413d;font-size:29px}
.aid-record{padding:9px 2px}.aid-record summary{cursor:pointer;font-weight:750}.aid-record p{font-size:15px;margin-top:5px}
