/* Tab Rias & Seragam, Mealbox, Bride & Groom */
.dform .f[hidden] { display: none; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.bg-card { padding: 16px 18px; }
.bg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bg-head h4 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 600; }
.bg-count { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bg-bar { margin: 8px 0 10px; }
.bg-list { display: flex; flex-direction: column; }
.bg-item { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 40px; }
.bg-item:last-child { border-bottom: 0; }
.bg-item input[type=checkbox] { width: 18px; height: 18px; flex: none; margin: 0; padding: 0; accent-color: var(--navy); }
.bg-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bg-item.done span { text-decoration: line-through; color: var(--muted); }
.bg-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.bg-item:hover .bg-x, .bg-x:focus-visible { opacity: 1; }
.bg-x:hover { background: var(--soft); color: var(--danger); }
@media (hover: none) { .bg-x { opacity: .7; } }
.bg-add { display: flex; gap: 8px; margin-top: 10px; }
.bg-add input { flex: 1; min-width: 0; }
html[data-theme="dark"] .bg-card { background: linear-gradient(180deg, #14203A, #111A2F); border-color: #2A3757; }
@keyframes bg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bg-card { animation: bg-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.bg-grid .bg-card:nth-child(2) { animation-delay: 60ms; } .bg-grid .bg-card:nth-child(3) { animation-delay: 120ms; }
.bg-grid .bg-card:nth-child(4) { animation-delay: 180ms; } .bg-grid .bg-card:nth-child(5) { animation-delay: 240ms; }
@media (prefers-reduced-motion: reduce) { .bg-card { animation: none; } }
