.sp { color: var(--text-primary); font-size: 14px; }
.sp [hidden] { display: none !important; }
.sp section, .sp-more, .sp-empty, .sp-notice { max-width: 560px; margin-left: auto; margin-right: auto; }
.sp-hero { text-align: center; margin: 24px auto 20px; }
.sp-hero-logo { filter: drop-shadow(0 2px 8px rgba(79,70,229,0.25)); }
.sp-hero-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.sp-hero h1 { font-size: 24px; font-weight: 700; margin: 10px 0 4px; }
.sp-hero p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.sp-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sp-fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--card); border-radius: var(--radius-md, 12px); box-shadow: 0 1px 3px rgba(0,0,0,0.06); line-height: 1.5; }
.sp-fact b { display: block; font-size: 14px; color: var(--text-primary); margin-bottom: 2px; }
.sp-fact span:not(.sp-fact-icon) { font-size: 12px; color: var(--text-secondary); }
.sp-fact-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-warm, #FF9500); background: rgba(255,149,0,0.12); }
.sp-fact-icon svg { width: 18px; height: 18px; }
.sp-value { text-align: center; padding: 16px; margin-bottom: 16px; border-radius: var(--radius-lg, 14px); background: linear-gradient(135deg, rgba(255,149,0,0.14), rgba(255,149,0,0.05)); border: 1px solid rgba(255,149,0,0.28); }
.sp-value-head { font-size: 16px; font-weight: 600; }
.sp-value-head b { font-size: 30px; font-weight: 800; color: var(--accent-warm, #FF9500); font-variant-numeric: tabular-nums; margin: 0 2px; }
.sp-value p { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.sp-qr { text-align: center; padding: 22px 18px 18px; margin-bottom: 16px; background: var(--card); border-radius: var(--radius-lg, 14px); box-shadow: 0 2px 10px rgba(0,0,0,0.07); }
.sp-qr h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.sp-qr-hint { font-size: 14px; font-weight: 600; color: var(--primary); margin: 0 0 14px; }
.sp-qr-frame { display: inline-block; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); line-height: 0; }
.sp-qr-frame img { width: min(300px, 70vw); height: auto; display: block; cursor: zoom-in; }
.sp-qr-actions { display: flex; justify-content: center; gap: 10px; margin: 14px 0 8px; }
.sp-qr-actions .btn { text-decoration: none; }
.sp-qr-fallback { font-size: 12px; color: var(--text-tertiary); margin: 0 auto 4px; max-width: 360px; line-height: 1.6; }
.sp-note { text-align: left; margin-top: 16px; padding: 14px 14px 12px; border-radius: var(--radius-md, 12px); background: rgba(0,122,255,0.06); border: 1px solid rgba(0,122,255,0.18); }
.sp-note-head { list-style: none; cursor: pointer; position: relative; padding-right: 20px; }
.sp-note-head::-webkit-details-marker, .sp-notice summary::-webkit-details-marker { display: none; }
.sp-note-head::after { content: "›"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--text-tertiary); font-size: 18px; transition: transform 0.15s; }
.sp-note[open] .sp-note-head::after { transform: translateY(-50%) rotate(-90deg); }
.sp-note-head b { display: block; font-size: 15px; }
.sp-note-head span { font-size: 12px; color: var(--text-secondary); }
.sp-note ul { margin: 8px 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.85; color: var(--text-secondary); }
.sp-note li b { color: var(--text-primary); }
.sp-note-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--text-tertiary); }
.sp-note-foot a, .sp-empty a { color: var(--primary); }
.sp-notice { padding: 14px 16px; margin-bottom: 16px; border-radius: var(--radius-md, 12px); background: var(--card); border: 1px solid var(--border-light); }
.sp-notice summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.sp-notice summary span { margin-left: 6px; color: var(--primary); }
.sp-notice[open] summary span { display: none; }
.sp-notice b { font-size: 13px; color: var(--text-primary); }
.sp-notice ul { padding-left: 18px; margin: 6px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.8; }
.sp-more { margin-bottom: 16px; }
.sp-more .setting-item { text-decoration: none; color: inherit; }
.sp-empty { padding: 24px; margin-bottom: 16px; text-align: center; color: var(--text-tertiary); font-size: 13px; background: var(--card); border-radius: var(--radius-md, 12px); }
.sp-thanks { color: var(--text-tertiary); font-size: 12px; max-width: 560px; margin: 20px auto 0; line-height: 1.7; text-align: center; }
.sp-zoom { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.72); }
.sp-zoom[hidden] { display: none; }
.sp-zoom-card { background: #fff; color: #1c1c1e; border-radius: 20px; padding: 20px; text-align: center; width: min(440px, 100%); }
.sp-zoom-card img { width: 100%; height: auto; display: block; }
.sp-zoom-card p { margin: 10px 0 14px; font-size: 15px; font-weight: 600; }
@media (max-width: 480px) {
  .sp-hero { margin: 12px auto 14px; }
  .sp-hero h1 { font-size: 22px; }
  .sp-hero p { font-size: 13px; }
  .sp-facts { gap: 8px; }
  .sp-fact { flex-direction: column; gap: 6px; padding: 10px; }
  .sp-fact b { font-size: 13px; }
  .sp-qr { padding: 18px 12px 14px; }
}
@media (min-width: 900px) {
  .app-content > .sp.page-body-narrow { max-width: 1080px; padding: 4px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; }
  .app-content > .sp.sp--single { display: block; max-width: 640px; }
  .sp section, .sp-more, .sp-empty, .sp-notice { max-width: none; }
  .sp-intro { grid-column: 1; grid-row: 1; }
  .sp-qr { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .sp-outro { grid-column: 1; grid-row: 2; }
  .sp-hero { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; text-align: left; margin: 0 0 16px; }
  .sp-hero > img { grid-row: span 2; width: 72px; height: 72px; }
  .sp-hero h1 { margin: 0; font-size: 26px; align-self: end; }
  .sp-hero p { align-self: start; }
  .sp-value { text-align: left; padding: 14px 20px; }
  .sp-qr-frame img { width: clamp(180px, calc(100vh - 560px), 260px); }
  .app-container .app-content:has(> .sp.page-body-narrow) { padding-bottom: 16px; }
  .sp-note { margin-top: 12px; }
  .sp-note ul { line-height: 1.7; }
  .sp-thanks { text-align: left; margin-top: 12px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .sp-qr { padding: 16px 16px 14px; }
  .sp-qr-hint { margin-bottom: 10px; }
  .sp-qr-actions { margin: 10px 0 0; }
  .sp-qr-fallback { display: none; }
  .sp-note { padding: 10px 12px; }
  .sp-note ul { margin: 6px 0 8px; line-height: 1.55; }
  .sp-fact { padding: 10px; }
  .sp-hero { margin-bottom: 12px; }
  .sp-intro > section, .sp-notice { margin-bottom: 12px; }
}
