html.order-sheet-open { overflow: hidden; }
.order-sheet-dialog {
  --sheet-ink: #f2eee9;
  --sheet-muted: #b5becc;
  --sheet-rim: rgba(245, 217, 159, .52);
  box-sizing: border-box;
  width: min(780px, calc(100% - 24px));
  max-width: none;
  height: min(900px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--sheet-rim);
  border-radius: 26px;
  color: var(--sheet-ink);
  color-scheme: dark;
  background: linear-gradient(180deg, #04071133, #04071188), url("assets/station-deep-space-v1.webp") center / cover no-repeat, #040711;
  box-shadow:
    0 0 2px 1px rgba(255, 239, 194, .5),
    0 0 18px 3px rgba(255, 219, 144, .22),
    0 8px 42px 8px rgba(239, 189, 97, .14),
    0 20px 80px 14px rgba(239, 180, 84, .08),
    0 40px 100px rgba(0, 0, 0, .8);
  overflow: hidden;
  font-family: Arial, "Malgun Gothic", sans-serif;
}
.order-sheet-dialog[open] { display: flex; flex-direction: column; }
.order-sheet-dialog::backdrop { background: #040711c4; backdrop-filter: blur(8px); }
.order-sheet-toolbar {
  flex: 0 0 auto;
  padding: 18px 20px 14px;
  background: linear-gradient(145deg, #1a2230f5, #0b1019fa);
  border-bottom: 1px solid rgba(245, 217, 159, .3);
  box-shadow: 0 1px 10px rgba(255, 219, 144, .12), 0 12px 28px #0006;
  z-index: 1;
}
.order-sheet-dialog h2 { margin: 0 0 12px; font-size: 1.125rem; color: #fff0d0; text-shadow: 0 0 14px #f5d99f55; }
.order-sheet-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.order-sheet-action {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(245, 217, 159, .34);
  border-radius: 12px;
  padding: 10px 14px;
  font: 700 0.9375rem/1.4 Arial, "Malgun Gothic", sans-serif;
  color: var(--sheet-ink);
  background: linear-gradient(145deg, #202a39, #10151d);
  box-shadow: inset 0 1px 0 #fff1, 0 2px 10px #0004;
  transition: border-color .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.order-sheet-action--kakao {
  background: linear-gradient(135deg, #f4dba4, #e8b56f);
  border-color: #ffe4ad;
  color: #211a11;
  box-shadow: inset 0 1px 0 #fff7, 0 0 14px #efbd613b, 0 4px 24px #efb45424;
}
.order-sheet-action:hover:not(:disabled) { border-color: #ffe4ad; filter: brightness(1.08); box-shadow: 0 0 18px #efbd614d; }
.order-sheet-action:disabled, .order-sheet-action[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.order-sheet-action:focus-visible, .order-sheet-fallback:focus-visible, .order-sheet-content:focus-visible { outline: 2px solid #f5d99f; outline-offset: 3px; }
.order-sheet-status { margin: 12px 0 0; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; color: var(--sheet-muted); }
.order-sheet-status.is-error { color: #ffb4a7; }
.order-sheet-content { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px; scrollbar-color: #77664b #0b1019; }
.order-sheet-image { box-sizing: border-box; display: block; width: 100%; height: auto; border: 1px solid rgba(245, 217, 159, .3); border-radius: 16px; background: #040711; box-shadow: 0 0 14px #efbd611c, 0 16px 40px #0007; }
.order-sheet-image[hidden], .order-sheet-text[hidden], .order-sheet-fallback[hidden] { display: none; }
.order-sheet-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding: 24px; border: 1px solid rgba(245, 217, 159, .25); border-radius: 16px; color: var(--sheet-ink); background: #101722ed; font: 1rem/1.8 Arial, "Malgun Gothic", sans-serif; }
.order-sheet-fallback { display: inline-block; margin-top: 10px; color: #f4dba4; font: 700 .875rem/1.5 Arial, "Malgun Gothic", sans-serif; text-decoration: underline; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .order-sheet-action { transition: none; } }
@media (max-width: 480px) {
  .order-sheet-dialog { width: calc(100% - 16px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .order-sheet-toolbar { padding: 16px 12px 12px; }
  .order-sheet-action { padding: 9px 8px; font-size: .875rem; }
  .order-sheet-actions { gap: 6px; }
  .order-sheet-content { padding: 12px; }
}
