/* Quiet app reading surface, real author, full photo, persistent actions. */
.lp-detail { --lp-composer-height: 80px; color: var(--ink); background: var(--surface); overflow-wrap: anywhere; }
.lp-topbar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 35; }
.lp-icon-button, .lp-reaction { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; gap: 5px; padding: 0; color: var(--ink); background: none; border: 0; flex: none; }
.lp-language { font-size: 13px; font-weight: 600; }
.lp-author { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.lp-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; background: var(--sand); color: var(--lake); border-radius: 50%; font-size: 16px; }
.lp-author > div { min-width: 0; }
.lp-author strong { display: block; font-size: 14px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-author > div > span { display: block; font-size: 11px; color: var(--muted); }
.lp-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--lake-soft); cursor: zoom-in; }
.lp-media img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.lp-media > span { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: #0f2a3066; }
.lp-media > span .icon { width: 18px; height: 18px; }
.lp-copy { padding: 24px; }
.lp-copy h1 { margin: 0 0 14px; font-size: 25px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; }
.lp-description { margin: 0; white-space: pre-wrap; font-size: 16px; line-height: 1.9; }
.lp-source-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.lp-image-label { position: absolute; left: 14px; bottom: 14px; padding: 3px 7px; border-radius: 5px; color: #3b5155; background: #ffffffde; font-size: 11px; }
.lp-shop { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 22px; min-height: 72px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); }
.lp-shop-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--lake); background: var(--lake-soft); border-radius: 10px; }
.lp-shop-icon .icon { width: 20px; height: 20px; }
.lp-shop-name { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
.lp-shop-name small { color: var(--muted); font-size: 11px; }
.lp-shop-name strong { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.6; }
.lp-shop-action { display: inline-flex; align-items: center; flex: none; gap: 4px; color: var(--lake); font-size: 12px; }
.lp-shop-action .icon { width: 15px; height: 15px; }
.wf-shop-fields { grid-column: 1 / -1; min-width: 0; }
.wf-shop-fields summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--lake); cursor: pointer; }
.wf-shop-fields .field { margin-top: 12px; }
.wf-shop-fields > p { font-size: 12px; line-height: 1.7; margin-top: 10px; }
.lp-note-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; align-items: center; }
.lp-note-meta > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lake); font-size: 14px; }
.lp-note-meta time { color: var(--muted); font-size: 12px; }
.lp-comments { padding: 24px; scroll-margin-top: 80px; }
.lp-comments > h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.lp-comments > h2 span { font-size: 13px; color: var(--muted); font-weight: 400; }
.lp-comment { display: flex; gap: 10px; padding-top: 16px; }
.lp-comment .lp-avatar { width: 32px; height: 32px; font-size: 13px; }
.lp-comment-body { min-width: 0; flex: 1; }
.lp-comment-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.5; }
.lp-comment-byline strong { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.lp-comment-byline > span { color: var(--lake); background: var(--lake-soft); padding: 0 5px; border-radius: 4px; font-size: 10px; }
.lp-comment-body > p { margin: 5px 0 0; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.lp-reply-to { color: var(--muted); font-size: 12px; }
.lp-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; color: var(--muted); font-size: 11px; }
.lp-comment-meta button { min-height: 44px; min-width: 44px; padding: 0; color: var(--ink-2); font-size: 12px; background: none; border: 0; }
.lp-comment > .lp-reaction { flex-direction: column; gap: 0; font-size: 11px; color: var(--muted); align-self: flex-start; }
.lp-comment > .lp-reaction .icon { width: 18px; height: 18px; }
.lp-thread + .lp-thread { border-top: 1px solid var(--line); margin-top: 8px; }
.lp-reply { margin-left: 42px; }
.lp-reply .lp-avatar { width: 26px; height: 26px; }
.lp-empty { padding: 24px 0 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.lp-empty > .icon { width: 30px; height: 30px; color: var(--lake); margin-bottom: 6px; }
.lp-empty strong { font-size: 15px; font-weight: 500; }
.lp-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.lp-empty button { min-height: 44px; padding: 0 12px; color: var(--lake); background: none; border: 0; }
.lp-composer { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px); z-index: 40; }
.lp-composer form { min-width: 0; flex: 1; margin: 0; }
.lp-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.lp-compose-row textarea { display: block; flex: 1; min-width: 0; width: 100%; min-height: 44px; max-height: 108px; padding: 11px 14px; line-height: 22px; font-size: 16px; border: 1px solid transparent; border-radius: 22px; background: var(--paper); color: var(--ink); resize: none; }
.lp-compose-row textarea:focus { outline: 2px solid var(--lake); outline-offset: 1px; }
.lp-send { min-height: 44px; min-width: 60px; border: 0; border-radius: 22px; padding: 10px 15px; background: var(--sun); color: white; font-size: 14px; font-weight: 500; }
.lp-composer:not([data-composing]) .lp-send { display: none; }
.lp-composer[data-composing] { flex-wrap: wrap; }
.lp-composer[data-composing] form { flex-basis: 100%; }
.lp-composer[data-composing] .lp-actions { display: none; }
.lp-actions { display: flex; gap: 5px; }
.lp-actions .lp-reaction { flex-direction: column; gap: 0; font-size: 11px; min-width: 44px; }
.lp-reaction.is-active { color: var(--sun); }
.lp-reaction.is-active .icon { fill: var(--sun-soft); }
.lp-reply-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--lake); padding-bottom: 6px; }
.lp-reply-context button { min-height: 44px; min-width: 44px; border: 0; background: none; color: var(--muted); }
.lp-error { color: #a52917; font-size: 13px; margin: 8px 0 0; }
.lp-error:empty { display: none; }
.lp-detail button:disabled { cursor: wait; opacity: .5; }
.lp-detail button:focus-visible, .lp-detail a:focus-visible { outline: 2px solid var(--lake); outline-offset: 3px; }
.lp-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #091c21; }
.lp-lightbox[open] { display: grid; place-items: center; }
.lp-lightbox::backdrop { background: #091c21; }
.lp-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lp-lightbox-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; width: 44px; height: 44px; background: #ffffff26; color: white; border: 0; border-radius: 50%; z-index: 1; display: grid; place-items: center; }
html:has(.lp-lightbox[open]), html:has(.lp-delete-dialog[open]) { overflow: hidden; }
.lp-delete-dialog { width: min(340px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 22px; color: var(--ink); background: var(--surface); }
.lp-delete-dialog::backdrop { background: #0f2a3066; }
.lp-delete-dialog h2 { margin: 0 0 12px; font-size: 19px; }
.lp-delete-dialog p { font-size: 14px; }
.lp-delete-dialog > div { display: flex; justify-content: flex-end; gap: 12px; }
.lp-delete-dialog [data-lp-delete-cancel] { min-height: 44px; min-width: 60px; border: 0; background: var(--paper); border-radius: 22px; }
.lp-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--lake); }
.lp-collection, .lp-unavailable { padding-top: 20px; }
.lp-collection h1, .lp-unavailable h1 { font-size: 25px; margin: 12px 0 20px; }
.lp-collection > nav { display: flex; gap: 8px; margin-bottom: 24px; }
.lp-collection > nav a { min-height: 44px; padding: 8px 20px; border-radius: 24px; }
.lp-collection > nav [aria-current] { background: var(--ink); color: white; }
.lp-collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lp-collection-grid > a { background: var(--surface); border-radius: 14px; overflow: hidden; padding-bottom: 12px; min-width: 0; }
.lp-collection-grid img { width: 100%; height: 180px; object-fit: cover; display: block; }
.lp-collection-grid h2 { margin: 12px 12px 4px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.lp-collection-grid > a > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 12px; font-size: 12px; color: var(--muted); }
.lp-collection-grid > a > p { margin: 0; padding: 16px; background: var(--lake-soft); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
html[data-ui="mobile"] .m-app[data-route="post"] .m-main { padding: 0; }
html[data-ui="mobile"] .m-app[data-route="post"] { background: white; }
html[data-ui="mobile"] .lp-detail { padding-bottom: calc(var(--lp-composer-height) + 24px); min-height: 100dvh; }
html[data-ui="mobile"] .lp-topbar { position: sticky; top: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; gap: 6px; }
html[data-ui="mobile"] .lp-media img { max-height: min(56dvh, 520px); }
html[data-ui="mobile"] .lp-copy { padding: 22px 20px 18px; }
html[data-ui="mobile"] .lp-copy h1 { font-size: 22px; margin-bottom: 12px; }
@media(max-width:350px) { html[data-ui="mobile"] .lp-shop { flex-wrap: wrap; gap: 8px; padding: 12px; } html[data-ui="mobile"] .lp-shop-action { margin-left: auto; min-height: 44px; } }
html[data-ui="mobile"] .lp-description { font-size: 15px; line-height: 1.85; }
html[data-ui="mobile"] .lp-note-meta { margin-top: 16px; gap: 3px 12px; }
html[data-ui="mobile"] .lp-comments { padding: 22px 20px; border-top: 8px solid var(--paper); }
html[data-ui="mobile"] .lp-composer { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
html[data-ui="mobile"] .lp-unavailable { padding: 20px; }
html[data-ui="mobile"] .lp-collection-grid img { height: 170px; }
html[data-ui="desktop"] .lp-detail { max-width: 1080px; margin: 32px auto 64px; border: 1px solid var(--line); border-radius: 24px; overflow: clip; }
html[data-ui="desktop"] .lp-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
html[data-ui="desktop"] .lp-topbar { padding: 16px 24px; }
html[data-ui="desktop"] .lp-comments { align-self: stretch; border-left: 1px solid var(--line); }
html[data-ui="desktop"] .lp-composer { position: sticky; bottom: 0; }
html[data-ui="desktop"] .lp-collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 350px) {
  html[data-ui="mobile"] .lp-copy, html[data-ui="mobile"] .lp-comments { padding-left: 16px; padding-right: 16px; }
  .lp-author .lp-avatar { width: 32px; height: 32px; }
  .lp-author { gap: 7px; }
  .lp-actions { gap: 0; }
  .lp-actions .lp-reaction { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) { .lp-detail *, .lp-lightbox * { scroll-behavior: auto; transition: none; animation: none; } }
