*{box-sizing:border-box}body{margin:0;background:#f6f5ef;color:#34483d;font-family:"Apple SD Gothic Neo","Malgun Gothic",sans-serif}header{height:76px;border-bottom:1px solid #d7dacf;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,20px);background:#fafaf5}header b{font: bold 21px Georgia,serif}.logo{color:#f8f3df;background:#395740;padding:3px 7px;border-radius:7px}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}header button,.actions button{background:#fffdf6;border:1px solid #d5d9ce;border-radius:18px;padding:8px 13px;font-size:14px}main{max-width:1130px;margin:5vh auto;display:grid;grid-template-columns:34% 1fr;gap:30px;padding:0 24px}aside{align-self:start}.postcard{position:relative;overflow:hidden;background:#f3eddc;background-image:repeating-linear-gradient(93deg,transparent 0 4px,#a48d6205 5px);border:1px solid #cfc9b8;border-radius:5px;box-shadow:1px 4px 10px #514e4210;padding:220px 30px 22px}.air{position:absolute;inset:0 0 auto;height:7px;background:repeating-linear-gradient(130deg,#79937c 0 12px,#eee7d2 12px 23px,#b87562 23px 35px,#eee7d2 35px 47px)}.stamp{position:absolute;top:32px;right:30px;padding:7px;background:#fff9e4;transform:rotate(7deg);outline:2px dashed #c5bda6;box-shadow:2px 3px 6px #59523a2a}.stamp img{width:121px;display:block}.postmark{position:absolute;top:118px;right:126px;border:3px double #62775f88;border-radius:50%;width:79px;height:79px;display:grid;place-content:center;text-align:center;font:12px/1.7 Georgia;color:#65745eb0;transform:rotate(-18deg)}small{font-size:12px;letter-spacing:.12em}.postcard h1{font-family:Georgia,"Nanum Myeongjo",serif;font-size:clamp(33px,3.2vw,49px);letter-spacing:-.065em;line-height:1.3;margin:15px 0}.postcard p{color:#596453}.postcard footer{border-top:1px solid #bfc3ac;margin-top:44px;padding-top:14px;font:italic 16px Georgia;color:#63775e}section{height:min(730px,78dvh);min-height:430px;background:#fffefa;border:1px solid #d5d9cc;border-radius:16px;display:flex;flex-direction:column;overflow:hidden}.chathead{padding:18px 24px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #e2e4d9}.chathead img,.avatar{border-radius:50%;object-fit:cover;width:47px;height:47px}h2{font-size:21px;margin:3px 0}.chathead small{letter-spacing:0;color:#687761}#messages{overflow:auto;flex:1;padding:22px}.date{text-align:center;font-size:12px;color:#76806f;margin-bottom:30px}.row{display:flex;gap:9px;align-items:flex-start;margin:15px 0}.avatar{width:32px;height:32px}.row p{background:#f0f2e8;margin:0;border-radius:3px 16px 16px;padding:12px 16px;max-width:84%;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.self{justify-content:flex-end}.self p{background:#43634b;color:white;border-radius:16px 3px 16px 16px}.compose{padding:14px 19px 20px}#chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}#chips button{background:#faf9f1;border:1px solid #dadccf;border-radius:18px;padding:7px 11px;font-size:14px}#chat{border:1px solid #cbd1c4;border-radius:14px;display:flex;padding:7px;background:#fff}#chat input{flex:1;min-width:0;border:none;padding:8px;background:transparent}#chat button{background:#42634a;color:white;border:0;border-radius:10px;width:40px}dialog{border:1px solid #bdc6b4;border-radius:16px;width:min(430px,94vw);color:inherit;padding:24px}dialog::backdrop{background:#28342c60}label{display:grid;gap:6px;margin-top:16px}label input,textarea,output input{width:100%;padding:10px;border:1px solid #c3ccbd;border-radius:7px}textarea{min-height:75px}dialog p,output{font-size:14px;line-height:1.6;color:#5f6c5a}.actions{display:flex;gap:6px;justify-content:flex-end}.actions button:last-child{background:#43634b;color:white}@media(max-width:760px){header{height:54px}main{margin:0 auto;padding:10px;display:flex;flex-direction:column;gap:8px}aside{width:100%}.postcard{padding:16px 18px;height:92px}.postcard h1{font-size:22px;margin:8px 0}.postcard h1 br{display:none}.postcard small,.postcard footer,.postcard p,.postmark{display:none}.stamp{top:11px;right:21px;padding:3px}.stamp img{width:57px}section{height:calc(100dvh - 200px);min-height:290px}.chathead{padding:9px 15px}.compose{padding:8px}#messages{padding:12px}.date{margin-bottom:14px}}

.albumLink,#albumClose{padding:9px 15px;border:1px solid #c9cfbf;border-radius:18px;background:#fffdf5;margin-top:12px}#albumDialog{max-height:82dvh}#albumDialog figure{margin:20px 0}#albumDialog figure img{width:100%;display:block;border-radius:8px}figcaption{margin-top:6px;font-size:14px}.stamp img{aspect-ratio:1;object-fit:cover}@media(max-width:760px){aside{position:relative}.albumLink{position:absolute;left:17px;top:47px;margin:0;padding:3px 10px;font-size:13px}}

#status{font-size:13px;color:#5d705e;margin:0 4px 6px}#status:empty{display:none}

#clearChat{margin-top:16px;border:0;background:transparent;text-decoration:underline;color:#754b46;padding:6px 0;font-size:14px}
