/* v55 Dokumentasi (foto & video per komponen dan event) */
.steps2 { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .82fr); }
.steps2 a.steps2-dm b { display: grid; place-items: center; width: 34px; min-width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--kc, #1A5DB4) 12%, #fff); color: var(--kc, #1A5DB4); }
.steps2 a.steps2-dm b .ic { width: 18px; height: 18px; }
@media (max-width: 720px) { .steps2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .steps2 a.steps2-dm b { width: 26px; min-width: 26px; height: 22px; border-radius: 7px; } .steps2 a.steps2-dm b .ic { width: 15px; height: 15px; } }

.dm { --dmc: #1A5DB4; position: relative; margin: 22px 0 8px; padding: 18px; border: 1px solid #E6E9EE; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(16,32,52,.04); transition: box-shadow .25s, border-color .25s; }
.dm.is-drag { border-color: var(--dmc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dmc) 16%, transparent); }
.dm-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dm-hic { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--dmc) 12%, #fff); color: var(--dmc); }
.dm-hic .ic { width: 21px; height: 21px; }
.dm-h > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.dm-h h2 { margin: 0; font: 700 18px/1.2 var(--head); color: var(--navy-ink); letter-spacing: -.01em; }
.dm-h p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.dm-ha { display: flex; gap: 8px; flex: 0 0 auto; }
.dm-tg .ic { transition: transform .35s var(--ease); }
.dm-tg[aria-expanded="true"] .ic { transform: rotate(90deg); }

/* composer */
.dm-cw { display: grid; grid-template-rows: 1fr; margin-bottom: 16px; animation: dmOpen .42s var(--ease); }
.dm-cw.is-closing { animation: dmClose .3s var(--ease) forwards; }
@keyframes dmOpen { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dmClose { to { opacity: 0; transform: translateY(-6px) scale(.985); } }
.dm-comp { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: #F6F8FB; border: 1px solid #E8ECF1; }
.dm-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed color-mix(in srgb, var(--dmc) 45%, #C9D3DF); border-radius: 15px; background: #fff; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.dm-drop:hover, .dm.is-drag .dm-drop { border-color: var(--dmc); background: color-mix(in srgb, var(--dmc) 5%, #fff); }
.dm-drop:active { transform: scale(.985); }
.dm-drop:focus-visible { outline: 2px solid var(--dmc); outline-offset: 2px; }
.dm-drop-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: var(--dmc); color: #fff; box-shadow: 0 8px 18px -8px var(--dmc); }
.dm-drop-ic .ic { width: 20px; height: 20px; }
.dm-drop b { font: 600 15px/1.3 var(--head); color: var(--navy-ink); }
.dm-drop small { font-size: 12.5px; color: var(--ink-3); }
.is-posting .dm-drop { opacity: .45; pointer-events: none; }
.dm-q { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dm-qi { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid #E8ECF1; animation: dmQin .38s calc(var(--i) * 45ms) var(--ease) both; }
@keyframes dmQin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-qm { position: relative; display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #E9EDF2; }
.dm-qm img, .dm-qm video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-qb { display: grid; gap: 4px; min-width: 0; }
.dm-cap { width: 100%; min-height: 58px; padding: 8px 10px; border: 1px solid #E1E6EC; border-radius: 10px; background: #fff; font: 400 14px/1.4 var(--body); color: var(--ink); resize: vertical; transition: border-color .15s, box-shadow .15s; }
.dm-cap:focus { outline: none; border-color: var(--dmc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dmc) 15%, transparent); }
.dm-cap:disabled { background: #F6F8FB; color: var(--ink-3); }
.dm-qb small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-qb small em { color: #B42318; font-style: normal; font-weight: 600; }
.dm-qx { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.dm-qx:hover { background: #F1F3F6; color: var(--ink); }
.dm-qx .ic { width: 16px; height: 16px; }
.dm-ring { --p: 0; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,37,64,.42); color: #fff; backdrop-filter: blur(1px); }
.dm-ring::before { content: ''; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.25) 0); -webkit-mask: radial-gradient(circle, transparent 19px, #000 20px); mask: radial-gradient(circle, transparent 19px, #000 20px); transition: background .2s; }
.dm-ring b { position: relative; font: 700 12px/1 var(--head); }
.dm-ring .ic { position: relative; width: 22px; height: 22px; stroke-width: 2.6; }
.st-ok .dm-ring { background: color-mix(in srgb, #12805C 70%, transparent); animation: dmOkFlash .5s var(--ease); }
.st-ok .dm-ring::before { display: none; }
.st-ok .dm-ring .ic { animation: cbxPop .5s cubic-bezier(.34,1.56,.64,1); }
.st-err .dm-ring { background: rgba(180,35,24,.62); }
.st-err .dm-ring::before { display: none; }
@keyframes dmOkFlash { from { opacity: 0; } to { opacity: 1; } }
.dm-cta { display: flex; justify-content: flex-end; gap: 8px; }
.dm-post { min-width: 168px; justify-content: center; }
.dm-spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: skSpin .75s linear infinite; }

/* kartu berhasil */
.dm-ok { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #ECFDF3, #F4FBF7); border: 1px solid #C7EBD6; animation: dmOkIn .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes dmOkIn { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
.dm-ok-ic svg { display: block; width: 46px; height: 46px; fill: none; stroke: #12805C; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.dm-ok-ic circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: dmDraw .55s .05s var(--ease) forwards; fill: #fff; }
.dm-ok-ic path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: dmDraw .35s .45s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes dmDraw { to { stroke-dashoffset: 0; } }
.dm-ok > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.dm-ok b { font: 700 16px/1.25 var(--head); color: #0E5A40; }
.dm-ok small { font-size: 13px; color: #2F6B52; }
.dm-ok-stack { display: flex; flex: 0 0 auto; }
.dm-ok-stack i { width: 44px; height: 44px; margin-left: -14px; border-radius: 11px; border: 2.5px solid #fff; background: #ddd center / cover; box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); animation: dmStack .5s calc(.55s + var(--n, 0) * 80ms) cubic-bezier(.34,1.56,.64,1) both; }
.dm-ok-stack i:nth-child(1) { --n: 0; transform: rotate(-6deg); } .dm-ok-stack i:nth-child(2) { --n: 1; } .dm-ok-stack i:nth-child(3) { --n: 2; transform: rotate(6deg); }
@keyframes dmStack { from { opacity: 0; transform: translateY(10px) scale(.7); } }

/* galeri */
.dm-g { columns: 4 210px; column-gap: 12px; }
.dm-t { position: relative; display: inline-block; width: 100%; margin: 0 0 12px; break-inside: avoid; border-radius: 14px; background: #fff; transition: transform .3s var(--ease), opacity .28s, filter .28s; }
.dm-t.is-new { animation: dmTin .6s calc(var(--i) * 60ms) cubic-bezier(.34,1.4,.64,1) both; }
@keyframes dmTin { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.dm-t.is-gone { opacity: 0; transform: scale(.9); filter: blur(3px); pointer-events: none; }
.dm-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; }
.dm-open:focus-visible { outline: 2px solid var(--dmc); outline-offset: 2px; }
.dm-m { position: relative; display: block; width: 100%; overflow: hidden; border-radius: 14px; background: linear-gradient(100deg, #EEF1F5 20%, #F7F9FB 40%, #EEF1F5 60%) 0 0 / 300% 100%; animation: skShine 1.4s linear infinite; }
.dm-m img, .dm-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.dm-open:hover .dm-m img, .dm-open:hover .dm-m video { transform: scale(1.035); }
.dm-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(10,20,32,.5); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; }
.dm-play .ic { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.dm-play.sm { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.dm-play.sm .ic { width: 12px; height: 12px; }
.dm-dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 999px; background: rgba(10,20,32,.62); color: #fff; font: 600 11px/1.4 var(--body); }
.dm-t figcaption { padding: 8px 4px 2px; }
.dm-t figcaption p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dm-t figcaption p.dm-nocap { color: var(--ink-3); font-style: italic; }
.dm-t figcaption small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-3); }
.dm-del { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #B42318; box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); cursor: pointer; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s var(--ease), background .15s; }
.dm-del .ic { width: 16px; height: 16px; }
.dm-t:hover .dm-del, .dm-del:focus-visible { opacity: 1; transform: none; }
.dm-del:hover { background: #fff; }
@media (hover: none) { .dm-del { opacity: 1; transform: none; width: 30px; height: 30px; } }

/* kosong */
.dm-empty { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 28px 16px; border: 1.5px dashed #DCE2EA; border-radius: 16px; background: #FAFBFC; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.dm-empty:hover { border-color: var(--dmc); background: color-mix(in srgb, var(--dmc) 4%, #fff); }
.dm-empty b { font: 600 15px/1.3 var(--head); color: var(--navy-ink); }
.dm-empty small { font-size: 13px; color: var(--ink-3); }
.dm-empty-art { position: relative; width: 92px; height: 56px; margin-bottom: 8px; }
.dm-empty-art i { position: absolute; top: 6px; width: 44px; height: 44px; border-radius: 11px; background: color-mix(in srgb, var(--dmc) 14%, #fff); border: 2px solid #fff; box-shadow: 0 6px 14px -8px rgba(16,32,52,.35); transition: transform .35s var(--ease); }
.dm-empty-art i:nth-child(1) { left: 0; transform: rotate(-10deg); }
.dm-empty-art i:nth-child(2) { left: 24px; top: 0; z-index: 1; background: color-mix(in srgb, var(--dmc) 26%, #fff); }
.dm-empty-art i:nth-child(3) { left: 48px; transform: rotate(10deg); }
.dm-empty:hover .dm-empty-art i:nth-child(1) { transform: rotate(-16deg) translateX(-4px); }
.dm-empty:hover .dm-empty-art i:nth-child(3) { transform: rotate(16deg) translateX(4px); }

/* lightbox */
body.lb-on { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(8,14,22,.94); color: #fff; opacity: 0; transition: opacity .26s; }
.lb.is-in { opacity: 1; }
.lb-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
.lb-n { font: 600 13px/1 var(--body); color: rgba(255,255,255,.7); }
.lb-x, .lb-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .15s, opacity .2s; }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-nav { align-self: center; justify-self: center; }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-x .ic, .lb-nav .ic { width: 20px; height: 20px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; }
.lb-stage > img, .lb-stage > video { grid-area: 1 / 1; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; animation: lbIn .32s var(--ease); }
.lb-stage .lb-th { filter: blur(6px); transform: scale(1.01); }
.lb-stage .lb-full { opacity: 0; transition: opacity .35s; }
.lb-stage .lb-full.is-in { opacity: 1; }
.lb-stage .lb-full.is-in ~ .lb-load { display: none; }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-load { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); font: 500 12px/1 var(--body); }
.lb-info { grid-column: 1 / -1; display: grid; gap: 6px; width: min(760px, 100%); margin: 0 auto; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); }
.lb-cap { margin: 0; font-size: 15px; line-height: 1.5; }
.lb-cap em { color: rgba(255,255,255,.55); }
.lb-info small { font-size: 12px; color: rgba(255,255,255,.6); }
.lb-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.lb .btn { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.lb .btn:hover { background: rgba(255,255,255,.2); }
.lb .btn-primary { background: #fff; color: var(--navy-ink); }
.lb .lb-del { color: #FFB4AB; }
.lb-capin { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font: 400 15px/1.45 var(--body); resize: vertical; }
.lb-capin:focus { outline: none; border-color: #fff; }
@media (max-width: 640px) {
  .lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .lb-nav { display: none; }
}

/* konfirmasi hapus + toast */
.dm-cf { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 20px; background: rgba(10,20,32,.38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s; }
.dm-cf.is-in { opacity: 1; }
.dm-cf-card { display: grid; justify-items: center; gap: 6px; width: min(340px, 100%); padding: 24px 22px 18px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 60px -20px rgba(10,20,32,.45); transform: scale(.94) translateY(6px); transition: transform .32s cubic-bezier(.34,1.56,.64,1); }
.dm-cf.is-in .dm-cf-card { transform: none; }
.dm-cf-th { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 16px; background: #EEF1F5 center / cover; color: var(--ink-3); }
.dm-cf-card b { font: 700 17px/1.3 var(--head); color: var(--navy-ink); }
.dm-cf-card small { font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.dm-cf-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 12px; }
.dm-cf-a .btn { justify-content: center; }
.dm-danger { background: #D92D20; border-color: #D92D20; color: #fff; }
.dm-danger:hover { background: #B42318; }
.dm-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1200; display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 16px; border-radius: 14px; background: #10202F; color: #fff; font: 500 14px/1.3 var(--body); box-shadow: 0 16px 34px -12px rgba(0,0,0,.45); overflow: hidden; transform: translate(-50%, 16px); opacity: 0; transition: transform .35s cubic-bezier(.34,1.4,.64,1), opacity .25s; }
.dm-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.dm-toast button { border: 0; background: none; color: #8EC5FF; font: 700 14px/1 var(--body); cursor: pointer; padding: 6px 4px; }
.dm-toast i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255,255,255,.35); transform-origin: left; animation: dmTimer 6s linear forwards; }
@keyframes dmTimer { to { transform: scaleX(0); } }
@media (min-width: 900px) { .dm-toast { bottom: 28px; } }

@media (max-width: 599px) {
  .dm { padding: 14px; border-radius: 18px; }
  .dm-h { flex-wrap: wrap; }
  .dm-ha { width: 100%; }
  .dm-ha .btn { flex: 1 1 0; justify-content: center; }
  .dm-g { columns: 2 140px; column-gap: 8px; }
  .dm-t { margin-bottom: 8px; }
  .dm-qi { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .dm-qm { width: 64px; height: 64px; }
  .dm-ok { flex-wrap: wrap; }
  .dm-cta .btn { flex: 1 1 0; justify-content: center; }
  .dm-post { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .dm *, .dm-cw, .lb, .lb *, .dm-cf-card, .dm-toast { animation: none !important; transition: none !important; } .dm-ok-ic circle, .dm-ok-ic path { stroke-dashoffset: 0; } }
.komp-body > .dm { margin-top: 0; }
.lb-top { grid-row: 1; }
.lb-prev { grid-column: 1; grid-row: 2; }
.lb-stage { grid-column: 2; grid-row: 2; }
.lb-next { grid-column: 3; grid-row: 2; }
.lb-info { grid-row: 3; }
.dm-m:has(> video) { background: linear-gradient(135deg, #1B2B3D, #31455C); animation: none; }
.dm-m:has(> video)::after { content: 'Video'; position: absolute; left: 10px; bottom: 9px; font: 600 11px/1 var(--body); color: rgba(255,255,255,.7); }
@media (max-width: 599px) { .dm-cap { min-height: 74px; font-size: 15px; } }
