.dp-ha { gap: 7px; }
.dp-wall-trigger { height: 40px !important; display: inline-flex; align-items: center; gap: 8px; padding: 4px 7px 4px 6px !important; border: 1px solid #93c5fd !important; border-radius: 11px !important; background: linear-gradient(135deg,#eff6ff,#dbeafe) !important; color: #1e40af !important; box-shadow: 0 3px 10px rgba(37,99,235,.12); transition: .16s !important; }
.dp-wall-trigger:hover { border-color: #60a5fa !important; background: linear-gradient(135deg,#fff,#dbeafe) !important; box-shadow: 0 6px 16px rgba(37,99,235,.2) !important; transform: translateY(-1px); }
.dp-wall-icon { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 8px; background: #2563eb; color: #fff; box-shadow: 0 3px 8px rgba(37,99,235,.25); }
.dp-wall-icon svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dp-wall-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.dp-wall-label strong { font-size: 11px; font-weight: 850; white-space: nowrap; }
.dp-wall-label small { margin-top: 3px; color: #64748b; font-size: 8px; font-weight: 700; white-space: nowrap; }
.dp-wall-count { min-width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.9); padding: 0 5px; font-weight: 900; box-shadow: 0 2px 6px rgba(37,99,235,.2); }
@media (max-width: 760px) { .dp-wall-label small { display: none; } .dp-wall-trigger { height: 34px !important; } .dp-wall-icon { width: 25px; height: 25px; } }

.wall-link-modal { position: fixed; inset: 0; z-index: 10100; display: none; align-items: center; justify-content: center; padding: 20px; }
.wall-link-modal.on { display: flex; }
.wall-link-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.48); backdrop-filter: blur(4px); }
.wall-link-dialog { position: relative; width: min(520px,94vw); padding: 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: #fff; color: #172033; box-shadow: 0 24px 70px rgba(2,6,23,.3); animation: wallLinkRise .18s ease; }
.wall-link-dialog::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,#2563eb,#60a5fa,#38bdf8); }
.wall-link-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; color: #64748b; cursor: pointer; }
.wall-link-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 15px; border-radius: 13px; background: #dbeafe; color: #1d4ed8; font-size: 20px; }
.wall-link-kicker { color: #2563eb; font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.wall-link-dialog h3 { margin: 4px 0 5px; color: #0f172a; font-size: 20px; font-weight: 850; }
.wall-link-dialog p { margin: 0 0 18px; color: #64748b; font-size: 12px; }
.wall-link-field { display: flex; gap: 7px; padding: 6px; border: 1px solid #bfdbfe; border-radius: 11px; background: #eff6ff; }
.wall-link-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #334155; padding: 0 7px; font: 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; }
.wall-link-field button { flex: none; min-width: 98px; height: 35px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; transition: .15s; }
.wall-link-field button.copied { background: #059669; }
.wall-link-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.wall-link-actions button,.wall-link-actions a { display: inline-flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; padding: 0 14px; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.wall-link-actions .secondary { border: 1px solid #e2e8f0; background: #fff; color: #475569; }
.wall-link-actions a { gap: 6px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; }
@keyframes wallLinkRise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.wall-thumb { width: 100%; padding: 0; border: 0; cursor: zoom-in; text-align: inherit; }
.wall-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(15,23,42,.48); color: #fff; font-size: 20px; opacity: 0; transition: .16s; backdrop-filter: blur(1px); }
.wall-zoom b { font-size: 11px; }.wall-thumb:hover .wall-zoom { opacity: 1; }.wall-thumb:hover .wall-order { opacity: 0; }
.wall-preview-modal { position: fixed; inset: 0; z-index: 10080; display: none; align-items: center; justify-content: center; padding: 24px; }
.wall-preview-modal.on { display: flex; }.wall-preview-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.88); backdrop-filter: blur(10px); }
.wall-preview-dialog { position: relative; width: min(1280px,96vw); height: min(860px,92vh); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #0f172a; box-shadow: 0 30px 100px rgba(0,0,0,.55); animation: wallLinkRise .2s ease; }
.wall-preview-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 18px 0 22px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; }
.wall-preview-head div { display: flex; align-items: center; gap: 12px; }.wall-preview-head span { color: #93c5fd; font-size: 9px; font-weight: 900; letter-spacing: .15em; }.wall-preview-head strong { padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 10px; }
.wall-preview-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.wall-preview-stage { position: relative; min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; padding: 22px 70px; overflow: hidden; background: #09111f; }
.wall-preview-stage img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; box-shadow: 0 14px 45px rgba(0,0,0,.38); }
.wall-preview-nav { position: absolute; top: 50%; z-index: 2; width: 45px; height: 54px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(15,23,42,.75); color: #fff; font-size: 32px; cursor: pointer; }.wall-preview-nav.prev { left: 16px; }.wall-preview-nav.next { right: 16px; }.wall-preview-nav:hover { background: #2563eb; }
.wall-preview-info { flex: none; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 20px; border-top: 1px solid rgba(255,255,255,.1); background: #111c30; }
.wall-preview-info>div:first-child { min-width: 0; }.wall-preview-info strong,.wall-preview-info span { display: block; }.wall-preview-info strong { overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.wall-preview-info span { margin-top: 4px; color: #94a3b8; font-size: 10px; }
.wall-preview-actions { display: flex; flex: none; gap: 8px; }.wall-preview-actions button,.wall-preview-actions a { display: inline-flex; align-items: center; height: 36px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(255,255,255,.07); color: #e2e8f0; padding: 0 13px; font-size: 10px; font-weight: 800; text-decoration: none; cursor: pointer; }.wall-preview-actions a { background: #2563eb; border-color: #2563eb; color: #fff; }
@media (max-width: 640px) { .wall-preview-modal { padding: 0; }.wall-preview-dialog { width: 100vw; height: 100vh; border-radius: 0; }.wall-preview-stage { padding: 15px 45px; }.wall-preview-info { align-items: flex-start; flex-direction: column; }.wall-preview-actions { width: 100%; }.wall-preview-actions>* { flex: 1; justify-content: center; } }

/* Dark theme: light mode remains the design baseline; these rules only
   recolor the gallery surfaces when Metronic switches data-bs-theme. */
[data-bs-theme="light"] .wall-preview-backdrop { background: rgba(30,41,59,.55); backdrop-filter: blur(8px); }
[data-bs-theme="light"] .wall-preview-dialog { border-color: #d6deea; background: #fff; box-shadow: 0 30px 90px rgba(15,23,42,.28); }
[data-bs-theme="light"] .wall-preview-head { border-color: #e2e8f0; background: #fff; color: #0f172a; }
[data-bs-theme="light"] .wall-preview-head span { color: #2563eb; }
[data-bs-theme="light"] .wall-preview-head strong { background: #e0e7ff; color: #3730a3; }
[data-bs-theme="light"] .wall-preview-head button { border-color: #dbe3ef; background: #f8fafc; color: #64748b; }
[data-bs-theme="light"] .wall-preview-head button:hover { border-color: #94a3b8; background: #f1f5f9; color: #0f172a; }
[data-bs-theme="light"] .wall-preview-stage { background: #f1f5f9; }
[data-bs-theme="light"] .wall-preview-stage img { box-shadow: 0 15px 42px rgba(15,23,42,.2); }
[data-bs-theme="light"] .wall-preview-nav { border-color: #cbd5e1; background: rgba(255,255,255,.92); color: #334155; box-shadow: 0 5px 16px rgba(15,23,42,.12); }
[data-bs-theme="light"] .wall-preview-nav:hover { border-color: #2563eb; background: #2563eb; color: #fff; }
[data-bs-theme="light"] .wall-preview-info { border-color: #e2e8f0; background: #fff; }
[data-bs-theme="light"] .wall-preview-info strong { color: #0f172a; }
[data-bs-theme="light"] .wall-preview-info span { color: #64748b; }
[data-bs-theme="light"] .wall-preview-actions button { border-color: #cbd5e1; background: #f8fafc; color: #475569; }
[data-bs-theme="light"] .wall-preview-actions button:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
[data-bs-theme="light"] .wall-preview-actions a { border-color: #2563eb; background: #2563eb; color: #fff; }

[data-bs-theme="dark"] .dp-wall-trigger { border-color: #334a70 !important; background: linear-gradient(135deg,#17243a,#1d3152) !important; color: #dbeafe !important; box-shadow: 0 4px 14px rgba(0,0,0,.28); }
[data-bs-theme="dark"] .dp-wall-trigger:hover { border-color: #3b82f6 !important; background: linear-gradient(135deg,#1d3152,#1e3a68) !important; box-shadow: 0 7px 20px rgba(2,6,23,.42) !important; }
[data-bs-theme="dark"] .dp-wall-icon { background: linear-gradient(145deg,#3b82f6,#1d4ed8); box-shadow: 0 4px 11px rgba(37,99,235,.34); }
[data-bs-theme="dark"] .dp-wall-label small { color: #94a3b8; }
[data-bs-theme="dark"] .dp-wall-count { border-color: #1e293b; background: #60a5fa; color: #081426; }

[data-bs-theme="dark"] .wall-modal-backdrop { background: rgba(2,6,23,.8); }
[data-bs-theme="dark"] .wall-dialog { border-color: #2b3a50; background: #101827; color: #e5edf8; box-shadow: 0 32px 100px rgba(0,0,0,.65); }
[data-bs-theme="dark"] .wall-head { border-color: #28364a; background: linear-gradient(135deg,#162033,#111b2d); }
[data-bs-theme="dark"] .wall-head h2 { color: #f8fafc; }
[data-bs-theme="dark"] .wall-kicker { color: #60a5fa; }
[data-bs-theme="dark"] .wall-close { border-color: #334155; background: #1e293b; color: #cbd5e1; }
[data-bs-theme="dark"] .wall-close:hover { border-color: #64748b; background: #27364a; color: #fff; }
[data-bs-theme="dark"] .wall-subhead { border-color: #28364a; background: #131d2e; }
[data-bs-theme="dark"] .wall-subhead span { color: #cbd5e1; }
[data-bs-theme="dark"] .wall-subhead strong { background: #243b65; color: #bfdbfe; }
[data-bs-theme="dark"] .wall-dropzone { border-color: #365d91; background: linear-gradient(135deg,#14243a,#131d2d); }
[data-bs-theme="dark"] .wall-dropzone:hover,[data-bs-theme="dark"] .wall-dropzone.dragging { border-color: #60a5fa; background: #172b47; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
[data-bs-theme="dark"] .wall-dropzone strong { color: #e2e8f0; }
[data-bs-theme="dark"] .wall-dropzone span { color: #94a3b8; }
[data-bs-theme="dark"] .wall-progress { background: #172f52; color: #bfdbfe; }
[data-bs-theme="dark"] .wall-progress i { background: linear-gradient(90deg,#1d4ed8,#3b82f6); }
[data-bs-theme="dark"] .wall-card { border-color: #2b3a50; background: #182235; box-shadow: 0 6px 18px rgba(0,0,0,.23); }
[data-bs-theme="dark"] .wall-card:hover { border-color: #3b82f6; box-shadow: 0 12px 28px rgba(0,0,0,.38); }
[data-bs-theme="dark"] .wall-thumb { background: #0b1220; }
[data-bs-theme="dark"] .wall-card-body strong { color: #e2e8f0; }
[data-bs-theme="dark"] .wall-card-body small,[data-bs-theme="dark"] .wall-drag { color: #7f91aa; }
[data-bs-theme="dark"] .wall-actions button,[data-bs-theme="dark"] .wall-actions a { border-color: #334155; background: #111b2c; color: #cbd5e1; }
[data-bs-theme="dark"] .wall-actions button:hover,[data-bs-theme="dark"] .wall-actions a:hover { border-color: #3b82f6; background: #172b4a; color: #93c5fd; }
[data-bs-theme="dark"] .wall-actions .danger:hover { border-color: #7f1d1d; background: #3b171d; color: #fca5a5; }
[data-bs-theme="dark"] .wall-empty { border-color: #2b3a50; background: #151f31; color: #64748b; }
[data-bs-theme="dark"] .wall-empty strong { color: #cbd5e1; }
[data-bs-theme="dark"] .wall-loading { color: #94a3b8; }
[data-bs-theme="dark"] .wall-error { color: #fca5a5; }
[data-bs-theme="dark"] .wall-footer { border-color: #28364a; background: #131d2e; color: #94a3b8; }
[data-bs-theme="dark"] .wall-footer button { background: #3b82f6; box-shadow: 0 6px 18px rgba(37,99,235,.25); }

[data-bs-theme="dark"] .wall-link-backdrop { background: rgba(2,6,23,.7); }
[data-bs-theme="dark"] .wall-link-dialog { border-color: #334155; background: #162033; color: #e2e8f0; box-shadow: 0 28px 85px rgba(0,0,0,.62); }
[data-bs-theme="dark"] .wall-link-close { border-color: #334155; background: #1e293b; color: #cbd5e1; }
[data-bs-theme="dark"] .wall-link-icon { background: #1e3a5f; color: #93c5fd; }
[data-bs-theme="dark"] .wall-link-kicker { color: #60a5fa; }
[data-bs-theme="dark"] .wall-link-dialog h3 { color: #f8fafc; }
[data-bs-theme="dark"] .wall-link-dialog p { color: #94a3b8; }
[data-bs-theme="dark"] .wall-link-field { border-color: #365d91; background: #101b2d; }
[data-bs-theme="dark"] .wall-link-field input { color: #dbeafe; }
[data-bs-theme="dark"] .wall-link-actions .secondary { border-color: #334155; background: #1e293b; color: #cbd5e1; }
[data-bs-theme="dark"] .wall-link-actions a { border-color: #315b94; background: #172b4a; color: #93c5fd; }

[data-bs-theme="dark"] .wall-preview-head button:hover { border-color: #60a5fa; background: #1e3a5f; }
[data-bs-theme="dark"] .wall-preview-actions button:hover { border-color: #60a5fa; background: #1e3a5f; color: #fff; }

.story-wall-indicator { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 20px; height: 20px; min-width: 20px; margin-left: 5px; padding: 0; border: 1px solid #172554; border-radius: 6px; background: #1e3a8a; color: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.28); line-height: 1; cursor: pointer; transform: translateY(-1px); }
.story-wall-indicator b { font-size: 9px; font-weight: 950; color: inherit; }
.story-wall-indicator:hover { border-color: #1d4ed8; background: #172554; color: #fff; box-shadow: 0 2px 5px rgba(15,23,42,.35); }
[data-bs-theme="dark"] .story-wall-indicator { border-color: #60a5fa; background: #1d4ed8; color: #fff; }
[data-bs-theme="dark"] .story-wall-indicator:hover { border-color: #93c5fd; background: #1e40af; color: #fff; }
