.room-page{color:#493547;background:#fff7e3;background-image:linear-gradient(#d2bd9b38 1px,transparent 1px),linear-gradient(90deg,#d2bd9b38 1px,transparent 1px);background-size:22px 22px;font-family:"Nunito","Noto Sans TC",sans-serif;line-height:1.6}
.room-header,.room-main,.room-footer{width:min(760px,92%);margin:auto}.room-header{border-bottom:2px dashed #c6a97e;font-size:14px;gap:10px}.room-header .back{font-weight:800;text-decoration:none;color:#493547}.room-header span{color:#80634a}.room-heading{display:flex;align-items:center;gap:20px;padding:25px 5px 22px}.room-heading img{flex:none;filter:drop-shadow(3px 3px 0 #d8bc9d)}.room-heading h1{font-family:inherit;font-size:clamp(30px,6vw,48px);line-height:1.2;margin:2px 0 8px;font-weight:950}.room-heading p{margin:0}.room-heading .eyebrow{font-size:12px;font-weight:900;letter-spacing:.17em;color:#98714d}.room-card{background:#fffdf6;border:2px solid #493547;border-radius:22px 16px 23px 18px;box-shadow:4px 5px #493547;padding:24px}.card-title{display:flex;align-items:center;gap:13px;margin-bottom:22px}.card-title .sticker{display:grid;place-items:center;background:#ffda79;border:2px solid #493547;border-radius:14px;transform:rotate(-7deg);font-size:26px;width:54px;height:54px;flex:none;box-shadow:2px 3px #493547}.card-title h2{font-family:inherit;font-size:25px;margin:0}.card-title p{font-size:14px;margin:2px 0 0;color:#79655b}.photo-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:8px 0 25px}.photo-frame{position:relative;margin:0;background:white;padding:9px 9px 6px;border:2px solid #493547;border-radius:9px;box-shadow:3px 4px #d8bc9d;min-width:0}.current-frame:before,.new-frame:before{content:'';position:absolute;top:-9px;left:30%;width:40%;height:17px;background:#b4e3c1d9;transform:rotate(-4deg)}.new-frame:before{background:#f7a69fce;transform:rotate(4deg)}.room-photo,.preview-stage{display:block;width:100%;aspect-ratio:1 / 1;object-fit:contain;border-radius:5px;overflow:hidden;background:#f6ead3}.room-photo[hidden],.empty-preview[hidden]{display:none}.preview-stage .room-photo{width:100%;height:100%;aspect-ratio:1 / 1;object-fit:contain}.empty-preview{height:100%;display:grid;place-content:center;text-align:center;color:#80634a;border:2px dashed #cfb99d;border-radius:5px}.empty-preview span{font-size:34px;line-height:1}.empty-preview small{font-size:13px}.photo-frame figcaption{text-align:center;font-size:14px;font-weight:900;padding-top:5px}.upload-area{border:2px dashed #c9ad8a;background:#fff5dc;border-radius:14px;padding:14px}.choose-photo{font-weight:900;display:block}.room-page input[type=file]{margin:8px 0;max-width:100%;padding:0;font-size:14px;color:#493547}.room-page input[type=file]::file-selector-button{background:#b5e6b8;color:#493547;border:2px solid #493547;border-radius:8px;padding:8px 12px;font:inherit;font-weight:800;cursor:pointer}.room-page small{display:block;color:#79655b;font-size:13px}.filename{margin:5px 0 0;font-size:13px;overflow-wrap:anywhere}.password-box{margin:18px 0}.password-box label{font-weight:900}.password-box input{border:2px solid #a68d7a;border-radius:10px;background:white;margin:6px 0;padding:10px 13px;color:#493547}.room-actions{display:flex;gap:12px;flex-wrap:wrap}.room-actions button{border:2px solid #493547;border-radius:13px 17px 13px 14px;box-shadow:3px 4px #493547;font-weight:900;min-height:48px;padding:9px 16px}.save-photo{background:#b5e6b8;color:#493547;flex:1}.cancel-photo{background:#b82d38;color:#ffdf67}.room-actions button:disabled{opacity:.48;box-shadow:none}.room-actions button:active:not(:disabled){transform:translate(2px,3px);box-shadow:1px 1px #493547}.room-status{font-weight:700;font-size:14px;min-height:23px;margin:14px 0;overflow-wrap:anywhere}.room-status[data-kind=error]{color:#a32432}.room-status[data-kind=success]{color:#22643c}.room-note{padding:12px 14px;background:#e9f1df;border-radius:11px;font-size:13px}.room-note p{margin:3px 0}.room-footer{border-top:0;justify-content:center;color:#80634a;font-size:13px;padding:30px 0}.room-page input:focus-visible,.room-page button:focus-visible{outline:3px solid #166ab0;outline-offset:2px}@media(max-width:550px){.room-heading{gap:12px;padding:20px 0}.room-heading img{width:80px;height:80px}.room-card{padding:15px}.photo-pair{gap:10px}.photo-frame{padding:5px 5px 4px}.photo-frame figcaption{font-size:12px}.card-title h2{font-size:22px}.room-header{font-size:12px}.room-actions button{font-size:15px}.empty-preview small{font-size:11px}.empty-preview span{font-size:26px}}

/* Square photo workshop */
.upload-area.drag-over{background:#e1f3dc;border-color:#367751;outline:3px solid #a6d6aa;outline-offset:2px}
.crop-dialog{box-sizing:border-box;width:min(500px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:18px 20px;background:#fffdf6;color:#493547;border:2px solid #493547;border-radius:20px;box-shadow:5px 6px #493547;overscroll-behavior:contain}
.crop-dialog::backdrop{background:#49354799;backdrop-filter:blur(2px)}
.crop-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.crop-head h2{margin:0;font-size:26px;line-height:1.2}.crop-head .eyebrow{margin:0 0 4px;font-size:11px;letter-spacing:.15em;color:#98714d;font-weight:900}.crop-ratio{background:#d6ebce;border:1.5px solid #493547;border-radius:9px;padding:4px 8px;font-size:12px;font-weight:800;white-space:nowrap}.crop-help,.crop-note{font-size:13px;color:#79655b;margin:10px 0}.crop-stage{width:min(100%,390px,48dvh);aspect-ratio:1;margin:0 auto;background:#f6ead3;border:2px solid #493547;border-radius:8px;overflow:hidden;position:relative}.crop-stage::after{content:'';position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(to right,transparent 33.1%,#ffffff80 33.1%,#ffffff80 33.5%,transparent 33.5%,transparent 66.4%,#ffffff80 66.4%,#ffffff80 66.8%,transparent 66.8%),linear-gradient(to bottom,transparent 33.1%,#ffffff80 33.1%,#ffffff80 33.5%,transparent 33.5%,transparent 66.4%,#ffffff80 66.4%,#ffffff80 66.8%,transparent 66.8%)}
#cropCanvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;user-select:none}#cropCanvas:active{cursor:grabbing}.zoom-row{display:flex;align-items:center;gap:10px;margin:15px 0 6px}.zoom-row input{flex:1;min-width:0;accent-color:#48835d;cursor:pointer}.zoom-row output{min-width:49px;text-align:right;font-size:13px;font-weight:900}.crop-dialog .zoom-row button{padding:3px 9px;min-width:38px;font-size:20px;line-height:1.4;background:#fff1ca}.crop-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 5px}.crop-dialog .crop-actions button{padding:8px 10px;font-size:14px;flex:1;white-space:nowrap}.crop-dialog #cropConfirm{background:#b5e6b8;flex:1.5}.crop-dialog #cropCancel{background:#b82d38;color:#ffdf67}.crop-dialog #cropReset{background:#fff1ca}#cropStatus{margin:8px 0 0;font-size:13px;color:#a32432}#cropStatus:empty{display:none}@media(max-width:420px){.crop-dialog{padding:14px}.crop-head h2{font-size:22px}.crop-help,.crop-note{font-size:12px}.zoom-row{gap:6px}}
.login-card{max-width:490px;margin:0 auto 24px}.room-logout,.inbox-toolbar button,#moreNotes{background:#fff1ca;border:1.5px solid #493547;color:#493547;border-radius:8px;font-size:13px;font-weight:800;padding:7px 12px}.inbox-card{margin-top:30px}.inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#79655b;font-size:13px}.note-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px}.inbox-note{position:relative;padding:16px 14px;border:1.5px solid #493547;border-radius:4px 4px 15px 4px;box-shadow:3px 4px #49354740;min-width:0}.inbox-note:before{content:'';position:absolute;left:calc(50% - 27px);top:-7px;width:54px;height:13px;background:#e5c6a8bf;transform:rotate(-4deg)}.inbox-note h3{font-size:17px;margin:0;overflow-wrap:anywhere}.inbox-note time{font-size:11px;color:#665347}.inbox-note p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0;font-size:15px}#inboxStatus{font-size:14px;color:#79655b}#inboxStatus:empty{display:none}#moreNotes{display:block;margin:20px auto 0}#moreNotes[hidden]{display:none}@media(max-width:550px){.note-list{grid-template-columns:1fr;gap:18px}}
