.ml-page { width: min(100% - 28px, 720px); margin: 24px auto 48px; color: #442635; }
.ml-panel { padding: clamp(16px, 5vw, 36px); background: #fffaf4; border: 1px solid #ead3d6; border-radius: 24px; overflow-wrap: anywhere; }
.ml-panel h1 { margin: 0 0 12px; line-height: 1.3; font-size: clamp(1.65rem, 5vw, 2.5rem); letter-spacing: -.04em; }
.ml-cover { display: block; width: min(100%, 480px); height: auto; margin: 0 auto 24px; border-radius: 18px; }
.ml-lead { margin-bottom: 20px; }
.ml-panel fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.ml-panel legend { padding: 0; margin-bottom: 8px; font-weight: 750; }
.ml-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ml-option { position: relative; }
.ml-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ml-option span { display: grid; min-height: 48px; place-items: center; border: 1px solid #d9b4c0; border-radius: 12px; background: #fff; color: #65364a; font-weight: 750; }
.ml-option input:checked + span { background: #8e3655; color: #fff; border-color: #8e3655; }
.ml-option input:focus-visible + span, .ml-panel :is(button,a):focus-visible { outline: 3px solid #83334f; outline-offset: 2px; }
.ml-panel .btn { min-height: 46px; max-width: 100%; white-space: normal; text-align: center; }
.ml-panel .btn-accent { background: #8e3655; color: #fff; border-color: #8e3655; }
.ml-panel .btn-accent:disabled { background: #eedde1; color: #684a57; border-color: #e0c8cf; }
.ml-type { margin: 0 0 8px; color: #8e3655; font-weight: 800; letter-spacing: .08em; }
.ml-details { display: grid; gap: 12px; margin-block: 20px; }
.ml-details section { background: #fff; border: 1px solid #efd8df; border-radius: 16px; padding: 14px 16px; }
.ml-panel h2 { margin: 0 0 8px; font-size: 1.12rem; }
.ml-details p, .ml-details blockquote { margin: 0; line-height: 1.7; }
.ml-details ul, .ml-details ol { margin: 0; padding-inline-start: 1.3em; }
.ml-details li + li { margin-top: 6px; }
.ml-details .ml-pairs { list-style: none; padding: 0; }
.ml-pairs li { display: flex; gap: 10px; align-items: center; }
.ml-pairs a { flex: none; display: inline-grid; min-width: 59px; min-height: 44px; place-items: center; background: #fce8ef; color: #78304b; border-radius: 10px; font-weight: 800; text-decoration: underline; }
.ml-note { color: #654c57; font-size: .9rem; line-height: 1.6; }
.ml-share { padding: 16px; border-radius: 18px; background: #f8e4eb; margin-block: 20px 12px; }
.ml-share-card { display: grid; grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px; background: #fffaf4; border-radius: 14px; }
.ml-share-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ml-card-copy p { margin: 4px 0; line-height: 1.45; }
.ml-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#ml-share-status:empty { display: none; }
@media (max-width: 460px) {
  .ml-share-card { grid-template-columns: 1fr; }
  .ml-share-card img { width: min(100%, 180px); }
}
