/* v78 keeps the selected purple/lime identity; no speculative redesign. */
.v78-listing-tools,.v78-button-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.v78-listing-tools .btn,.v78-button-row .btn{min-height:44px;font-size:16px}
.v78-error{border:1px solid var(--line);background:var(--ui-surface);border-radius:12px;padding:32px;color:var(--ink)}
.v78-error h2{font-size:24px}.v78-error p{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.v78-share-input{display:block;max-width:100%;width:100%;margin-top:12px;font-size:16px;padding:12px;color:var(--ink);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:8px}
.v78-zoom{min-width:0;background:var(--ui-soft);border-radius:8px;overflow:auto;text-align:center}.v78-zoom img{max-width:100%;max-height:65dvh;width:auto;height:auto;object-fit:contain}
#detailGalleryMain[role=button]{cursor:zoom-in}#detailGalleryMain:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}
.v78-draft-note{background:var(--ui-soft);border:1px solid var(--line);padding:12px 16px;border-radius:8px;color:var(--muted)}
.v78-draft-note p{font-size:14px;line-height:1.5;margin:0}.v78-draft-note .text-btn{min-height:44px;padding:8px 0;font-size:14px}
.v78-photo-editor{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:8px;position:relative;color:var(--ink)}
.v78-photo-editor legend{font-size:18px;font-weight:750;padding-inline:8px}.v78-photo-editor>.help-text{font-size:14px;line-height:1.5;margin:4px 0 16px}
.v78-upload{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;min-height:44px;font-size:16px}
.v78-photo-editor input[type=file]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.v78-photo-editor:has(input[type=file]:focus-visible) .v78-upload{outline:3px solid var(--accent);outline-offset:3px}
.v78-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.v78-photo-grid figure{display:block;min-width:0;margin:0;padding:8px;background:var(--ui-soft);border:1px solid var(--line);border-radius:8px}
.v78-photo-grid figure>img{width:100%;height:144px;object-fit:contain;background:var(--ui-surface);border-radius:4px}
.v78-photo-grid figcaption{font-size:14px;line-height:1.5;margin:8px 0;color:var(--ink)}
.v78-photo-grid .photo-edit-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.v78-photo-grid .photo-edit-actions>.btn{min-width:0;width:100%;min-height:44px;padding:8px;font-size:18px}
.v78-photo-grid .text-btn{font-size:14px;line-height:1.5;min-height:44px;white-space:normal}
.v78-editor-bottom{display:grid;gap:16px}.v78-ad-preview{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--ui-soft);color:var(--ink)}
.v78-ad-preview>img{display:block;width:100%;height:200px;object-fit:contain}.v78-ad-preview>div{padding:16px}.v78-ad-preview strong{font-size:20px;line-height:1.4;overflow-wrap:anywhere}.v78-ad-preview p{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.v78-ad-preview small{font-size:14px}.v78-preview-description{white-space:pre-wrap}
.v78-chat-draft-note{padding:4px 20px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;line-height:1.5;color:var(--muted);background:var(--ui-surface)}
.v78-chat-draft-note .text-btn{min-height:44px;font-size:14px;line-height:1.5;flex-shrink:0;padding:4px 0}
.v78-security{display:block}.v78-security>h2{font-size:24px}.v78-security h3{font-size:18px;margin:24px 0 12px}.v78-security p,.v78-security li{font-size:16px;line-height:1.5}.v78-security .help-text{font-size:14px}.v78-security-actions{display:flex;flex-wrap:wrap;gap:8px}.v78-session{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line);align-items:center}.v78-session strong{display:block;font-size:16px}.v78-session small{display:block;font-size:14px;line-height:1.5;color:var(--muted)}
.v78-secret,.v78-recovery-codes{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--ui-soft);font-size:16px;line-height:1.6;overflow-wrap:anywhere;user-select:all;font-family:Consolas,monospace}.v78-recovery-codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;user-select:text}
.v78-noscript{padding:32px}.v78-noscript img{max-width:100%;max-height:500px;object-fit:contain}
@media(max-width:760px){
 .v78-error{padding:24px 20px}.v78-photo-editor{padding:12px}.v78-photo-grid{gap:8px}.v78-photo-grid figure>img{height:112px}
 .v78-photo-grid figure{padding:6px}.v78-photo-grid .photo-edit-actions{gap:2px}.v78-photo-grid .photo-edit-actions>.btn{padding:4px}
 .v78-chat-draft-note{padding:4px 12px;font-size:14px}.v78-chat-draft-note>span{max-width:190px}
 .chat-show-thread .chat-main>.chat-messages{min-height:72px}.account-panel .chat-layout.chat-show-thread{height:calc(100dvh - 180px)}
 .v78-session{display:block}.v78-session .btn{margin-top:12px}.v78-security-actions>.btn{flex:1 1 160px;white-space:normal}
 .v78-listing-tools>.btn{flex:1 1 140px}.v78-recovery-codes{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px) and (max-height:700px){body:has(#chatForm input:focus) .v78-chat-draft-note{display:none}}
@media(prefers-reduced-motion:reduce){.v78-error,.v78-photo-grid *{animation:none;transition:none}}
/* Reset legacy fixed-width thumbnails: these are full photo-editor cards. */
.v78-photo-grid .photo-preview-item{width:100%;max-width:none}
.v78-photo-grid .photo-preview-item figcaption{white-space:normal;text-overflow:clip;overflow:visible;padding:0}
@media(max-width:420px){.v78-photo-grid{grid-template-columns:minmax(0,1fr)}.v78-photo-grid figure>img{height:160px}.v78-photo-grid .photo-edit-actions{gap:8px}}

/* Live toast copy belongs to the dialog accessibility tree, not its layout. */
.modal [data-modal-toast-status]{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
