/* Self-contained short-comment sheet. Never change the app/dock geometry. */
.short-comments-overlay {
  --short-comments-motion: 240ms;
  position: fixed;
  z-index: 240;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .48);
  opacity: 0;
  overflow: hidden;
  outline: none;
  transition: opacity var(--short-comments-motion) ease-out;
  overscroll-behavior: none;
  color: var(--text, #2d2d2d);
}
.short-comments-overlay * { box-sizing: border-box; }
.short-comments-sheet {
  width: 100%;
  max-width: 640px;
  height: min(72%, 640px);
  max-height: 100%;
  min-height: min(280px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--card-bg, #fff);
  box-shadow: 0 -8px 36px rgba(0, 0, 0, .16);
  transform: translateY(100%);
  transition: transform var(--short-comments-motion) cubic-bezier(.22, .68, 0, 1);
}
.short-comments-overlay.is-open { opacity: 1; }
.short-comments-overlay.is-open .short-comments-sheet { transform: translateY(0); }
.short-comments-overlay.is-closing { --short-comments-motion: 200ms; }
.short-comments-overlay.is-closing .short-comments-sheet { pointer-events: none; transition-timing-function: ease-in; }
@media (prefers-reduced-motion: reduce) {
  .short-comments-overlay, .short-comments-overlay.is-closing { --short-comments-motion: 0ms; }
}
.short-comments-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 18px; border-bottom: 1px solid rgba(128,128,128,.16); }
.short-comments-title { font-size: 17px; margin: 0; font-weight: 600; }
.short-comments-overlay button { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; min-width: 44px; min-height: 44px; }
.short-comments-overlay button:focus-visible, .short-comments-overlay textarea:focus-visible { outline: 2px solid var(--brand, #b84a4a); outline-offset: -2px; }
.short-comments-overlay button[hidden] { display: none; }
.short-comments-overlay button:disabled { cursor: default; opacity: .55; }
.short-comments-overlay [data-comment-close] { font-size: 28px; line-height: 1; }
.short-comments-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 0 16px; }
.short-comments-status { text-align: center; font-size: 14px; color: var(--text-gray, #777); padding: 24px 0; }
.short-comments-status:empty { display: none; }
.short-comments-overlay [data-comment-retry] { display: block; margin: 0 auto 12px; color: var(--brand, #b84a4a); }
.short-comments-list { list-style: none; margin: 0; padding: 0; }
.short-comment-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid rgba(128,128,128,.13); }
.short-comment-avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; object-fit: cover; background: var(--page-bg, #eee); }
.short-comment-body { flex: 1; min-width: 0; }
.short-comment-meta { color: var(--text-gray, #777); font-size: 12px; margin-bottom: 6px; overflow-wrap: anywhere; }
.short-comment-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.short-comments-overlay .short-comment-like { flex: 0 0 auto; font-size: 13px; color: var(--text-gray, #777); }
.short-comments-overlay .short-comment-like[aria-pressed="true"] { color: var(--brand, #b84a4a); opacity: 1; }
.short-comments-message { flex: 0 0 auto; padding: 8px 16px; font-size: 12px; color: var(--brand, #b84a4a); overflow-wrap: anywhere; }
.short-comments-message:empty { display: none; }
.short-comments-form { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(128,128,128,.16); }
.short-comments-input { flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 8px 10px; border-radius: 16px; background: var(--page-bg, #f0f0f0); }
.short-comments-input textarea { font: inherit; font-size: 16px; line-height: 22px; width: 100%; min-width: 0; color: inherit; background: transparent; border: 0; resize: none; padding: 0; max-height: 88px; }
.short-comments-limit { flex-shrink: 0; margin-left: 6px; color: var(--text-gray, #777); font-size: 11px; }
.short-comments-overlay [data-comment-send] { color: var(--brand, #b84a4a); font-weight: 600; }
.short-comments-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
