#otiskyEntry[hidden], #otiskyLetter [hidden] { display:none!important; }
#otiskyEntry small { font:500 .77rem/1.2 Outfit,sans-serif; color:var(--td-muted); }
#otiskyLetter {
  width:min(530px,calc(100% - 24px)); padding:0; margin:auto; box-sizing:border-box;
  border:1px solid var(--td-line,#b9ab97); color:var(--td-ink,#352e28);
  background:var(--td-paper,#fff8ea); border-radius:19px;
  box-shadow:0 20px 90px #18110c55,0 4px 12px #18110c24;
  max-height:calc(100dvh - 24px); overflow:auto;
}
#otiskyLetter::backdrop { background:#1b1711a6; }
.otisky-letter-sheet { position:relative; padding:26px 30px 23px; border-top:5px solid #a54437; }
.otisky-letter-art { position:relative; height:98px; width:166px; margin:0 0 15px; isolation:isolate; }
.otisky-envelope {
  position:absolute; left:5px; bottom:5px; width:121px; height:68px;
  border:1px solid #baa47b; border-radius:3px; background:#f2e0b9;
  transform:rotate(-7deg); overflow:hidden; box-shadow:1px 3px 0 #6e4b282e;
}
.otisky-envelope::before, .otisky-envelope::after {
  content:''; position:absolute; width:91px; height:91px; left:13px;
  transform:rotate(45deg) skew(-9deg,-9deg); border:1px solid #baa47b; background:#f7eacc;
}
.otisky-envelope::before {bottom:-65px;} .otisky-envelope::after {top:-61px;}
.otisky-letter-art img { position:absolute; right:0; bottom:0; width:88px; height:88px; object-fit:contain; }
#otiskyLetter h2 { margin:0 0 12px; color:inherit; font:650 clamp(26px,5.2vw,37px)/1.08 Fraunces,Georgia,serif; letter-spacing:-.034em; text-align:left; text-wrap:balance; outline:none; }
#otiskyLetter p { margin:0 0 12px; color:inherit; text-align:left; font:400 16px/1.45 Outfit,system-ui,sans-serif; }
#otiskyLetter .otisky-signature { margin:6px 0 18px; font:italic 500 23px/1.15 Fraunces,Georgia,serif; }
#otiskyLetter [data-letter-preview] { font-size:12px; color:var(--td-muted); }
#otiskyLetter [role=status]:empty {display:none;}
.otisky-letter-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#otiskyLetter button {font:650 15px/1.1 Outfit,system-ui,sans-serif; padding:12px 16px; min-height:44px; cursor:pointer; border-radius:9px;}
#otiskyLetter [data-letter-action] {background:#a63f31;color:white;border:1px solid #8c3025;}
#otiskyLetter [data-letter-close] {background:transparent;color:var(--td-ink);border:1px solid var(--td-line);}
#otiskyLetter button:focus-visible {outline:3px solid var(--td-ink);outline-offset:2px;}
@media(max-width:375px),(max-height:650px) {
  .otisky-letter-sheet {padding:16px 19px;} .otisky-letter-art {height:64px;width:130px;margin-bottom:12px;}
  .otisky-letter-art img {height:64px;width:64px;}.otisky-envelope {width:105px;height:48px;}
  #otiskyLetter p {font-size:15px;}
}
@media(min-width:660px) {
  #otiskyLetter {width:min(610px,calc(100% - 40px));}
  .otisky-letter-sheet {display:grid;grid-template-columns:132px minmax(0,1fr);gap:19px;padding:32px 27px;}
  .otisky-letter-art {width:132px;height:105px;margin:0;} .otisky-envelope {width:101px;height:62px;}
}
