/* ---------- modal ---------- */
dialog { border: 1px solid var(--line2); background: var(--panel); color: var(--text); border-radius: 14px; padding: 0; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
.mh { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mb { padding: 18px; }
.drop { width: min(520px, 86vw); border: 2px dashed var(--line2); border-radius: 12px; padding: 34px 20px; text-align: center; cursor: pointer;
        color: var(--muted); transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.drop img { max-width: 100%; max-height: 260px; border-radius: 10px; display: block; margin: 0 auto 10px; }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.lb-img { max-width: min(560px, 86vw); max-height: 60vh; display: block; border-radius: 10px; margin: 0 auto; }
#lbDlg { width: min(1180px, 96vw); }
.lb-tabs { margin-bottom: 12px; }
.scene { position: relative; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.scene img { display: block; width: 100%; height: auto; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene .lg { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 10px; font-size: 12px; background: rgba(10,14,19,.75);
             padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.scene .lg i { display: inline-block; width: 12px; height: 9px; border: 2px solid; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.lb-side img { width: 100%; border-radius: 10px; display: block; background: var(--panel3); }
@media (max-width: 860px) { .lb-grid { grid-template-columns: 1fr; } .lb-side img { max-width: 200px; } }
.why { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(245,158,11,.08);
       border: 1px solid rgba(245,158,11,.35); font-size: 13px; }
.why b { display: block; color: #fcd34d; margin-bottom: 4px; }
.why ul { margin: 0; padding-left: 18px; } .why li { margin: 2px 0; }
.why a { color: #93c5fd; cursor: pointer; text-decoration: underline; }
.why.ok { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.35); }
.why.ok b { color: #86efac; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pair figure { margin: 0; } .pair img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--panel3); }
img.img-gone { position: relative; } img.img-gone::after { content: 'Ảnh đã quá hạn lưu'; position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; text-align: center; font-size: 11.5px; color: var(--muted); background: var(--panel3); border-radius: inherit; }
.pair figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; margin-top: 14px; }
.kv span:nth-child(odd) { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: all .25s; z-index: 50;
         background: var(--panel3); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 16px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: rgba(239,68,68,.5); }
.spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

