/* 一句話圖卡產生器：樣式（sc- 前綴），色彩一律用 share.css 的變數，自動支援深色模式。 */
.sc-label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--jt-muted); }
.sc-text {
  display: block; width: 100%; min-height: 96px; resize: vertical; padding: 12px;
  font: inherit; font-size: 16px; line-height: 1.5; /* 16px 以上，iOS 聚焦時才不會自動放大 */
  color: var(--jt-text); background: var(--jt-bg); border: 1px solid var(--jt-line); border-radius: 12px;
}
.sc-text:focus-visible { outline: 3px solid var(--jt-accent); outline-offset: 1px; }
.sc-meta { display: flex; justify-content: space-between; gap: 8px; margin: 6px 2px 10px; font-size: 13px; color: var(--jt-muted); min-height: 20px; }
.sc-meta .sc-over { color: var(--jt-accent); font-weight: 700; }
.sc-btn[disabled] { opacity: 0.45; cursor: not-allowed; border-style: dashed; }

.sc-frame {
  position: relative; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--jt-line); border-radius: var(--jt-radius); background: var(--jt-surface);
  display: flex; align-items: center; justify-content: center;
}
.sc-frame img { display: block; width: 100%; height: 100%; }
.sc-empty { padding: 24px; text-align: center; color: var(--jt-muted); line-height: 1.8; }
.sc-empty strong { display: block; font-size: 40px; margin-bottom: 4px; }

.sc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.sc-grid .jt-btn { padding: 8px 6px; }
.sc-wide { width: 100%; margin-top: 8px; }
.sc-dl { margin-top: 8px; padding: 12px; border: 1px solid var(--jt-line); border-radius: 12px; }
.sc-dl .jt-row { margin-bottom: 8px; }
.sc-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.sc-check input { width: 22px; height: 22px; accent-color: var(--jt-accent); }
.sc-note { font-size: 13px; color: var(--jt-muted); line-height: 1.7; margin: 0 2px 16px; }
.sc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sc-sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sc-sheet-box { width: 100%; max-width: 480px; max-height: 100%; overflow: auto; background: var(--jt-surface); border-radius: var(--jt-radius); padding: 14px; text-align: center; }
.sc-sheet-box img { width: 100%; height: auto; border-radius: 8px; -webkit-touch-callout: default; }
.sc-sheet-box p { margin: 10px 0; font-size: 15px; }
