body { background: #f4f5f7; }
.adm-nav { background: #14161b; }
.adm-nav .nav-link.active { color: #ffc107; }
.stat { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 12px; padding: 1.1rem 1.3rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat i { font-size: 2rem; color: #c9a24b; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; }
.stat span { color: #6c757d; font-size: .85rem; }
.thumb-sm { width: 44px; height: 44px; object-fit: contain; background: #eee; border-radius: 6px; }
.img-prev { max-height: 90px; border-radius: 6px; border: 1px solid #ddd; background: #fafafa; }
.qr-wrap { display: inline-block; line-height: 0; border: 1px solid #eee; padding: 2px; }
.login-bg { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #14161b, #2a2f39); }
.login-card { width: min(420px, 92vw); }
.qr-sm { width: 64px; } .qr-sm svg, .qr-sm img { width: 48px; height: 48px; display: block; border: 1px solid #eee; border-radius: 4px; }
.priv { border: 1px dashed #b02a37; background: #fff5f5; border-radius: 12px; padding: 1rem; }
.priv-h { font-weight: 600; color: #b02a37; margin-bottom: .75rem; }
.star { color: #ced4da; cursor: pointer; font-size: 1.1rem; background: none; border: 0; } .star.on { color: #ffc107; }
/* ---- media manager ---- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; padding: 1.6rem 1rem; border: 2px dashed #c9a24b; border-radius: 14px; background: #fffaf0; cursor: pointer; transition: .2s; }
.dropzone i { font-size: 2rem; color: #c9a24b; } .dropzone small { color: #6c757d; } .dropzone.over, .dropzone:hover { background: #fff1c9; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 1rem; }
.mtile { position: relative; background: #f4f5f7; border-radius: 12px; padding: 8px; cursor: grab; }
.mtile img, .mtile video, .mtile .emb { width: 100%; height: 110px; object-fit: contain; background: #111; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 2.2rem; margin-bottom: 6px; }
.mk { position: absolute; left: 14px; top: 14px; font-size: .65rem; text-transform: uppercase; background: rgba(0,0,0,.65); color: #e6c675; padding: 1px 7px; border-radius: 999px; }
.mdel { position: absolute; right: 12px; top: 12px; padding: 0 6px; line-height: 1.4; }

/* ---- drag & drop board ---- */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; scroll-snap-type: x proximity; }
.bcol { flex: 0 0 280px; background: #e9ebef; border-radius: 14px; padding: 10px; scroll-snap-align: start; }
.bcol.unplaced { background: #fff7e0; border: 2px dashed #e6c675; position: sticky; left: 0; z-index: 2; }
.bcol header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; padding: 2px 4px 8px; }
.bcol header small { color: #6c757d; font-weight: 400; margin-left: 4px; }
.cnt { font-style: normal; background: #14161b; color: #e6c675; border-radius: 999px; padding: 0 9px; font-size: .78rem; }
.col-grip { cursor: grab; color: #6c757d; font-size: 1.1rem; }
.dz { min-height: 90px; display: flex; flex-direction: column; gap: 8px; padding-bottom: 30px; border-radius: 10px; }
.bcard { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.12); cursor: grab; position: relative; border: 2px solid transparent; transition: box-shadow .15s, transform .15s; touch-action: manipulation; user-select: none; }
.bcard:hover { box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.bcard img, .bcard .noimg { width: 56px; height: 56px; object-fit: contain; background: #f1f1f1; border-radius: 8px; flex: none; display: grid; place-items: center; color: #aaa; font-size: 1.5rem; pointer-events: none; }
.bt { min-width: 0; line-height: 1.2; } .bt b { display: block; font-size: .8rem; color: #8a6d1f; letter-spacing: .04em; }
.bt span { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bedit { position: absolute; right: 6px; top: 4px; color: #adb5bd; font-size: .8rem; } .bedit:hover { color: #14161b; }
.ghost { opacity: .35; background: #ffe9a8; } .chosen { box-shadow: 0 8px 22px rgba(0,0,0,.28); } .dragging { transform: rotate(2deg); }
.sortable-drag { opacity: 1 !important; }
.bcard.dim { opacity: .25; } .bcard.hit { border-color: #ffc107; }
.board.compact .bcol { flex-basis: 200px; } .board.compact .bcard img, .board.compact .bcard .noimg { width: 34px; height: 34px; } .board.compact .bt span { display: none; }
.save-state { font-size: .85rem; color: #6c757d; opacity: .0; transition: opacity .2s; } .save-state.ok { color: #198754; opacity: 1; } .save-state.err { color: #dc3545; opacity: 1; font-weight: 600; }
@media (max-width: 576px) { .bcol { flex-basis: 84vw; } }

.setup-bg { min-height: 100vh; background: radial-gradient(900px 500px at 50% -10%, #3a3220 0%, #14161b 60%) fixed; padding: 2rem 1rem; }
.setup-wrap { max-width: 560px; margin: 0 auto; }
.setup-logo { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; color: #1a1405; background: linear-gradient(135deg, #e6c675, #c9a24b); box-shadow: 0 10px 30px rgba(201,162,75,.35); }
.setup-title { font-family: Georgia, serif; color: #e6c675; font-size: 2rem; }
.setup-card { background: #fff; border-radius: 18px; padding: 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.step-h { display: flex; align-items: center; gap: .7rem; font-weight: 600; margin: .6rem 0 .8rem; }
.step-h span { width: 28px; height: 28px; border-radius: 50%; background: #14161b; color: #e6c675; display: grid; place-items: center; font-size: .85rem; }
.chk-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.chk { display: flex; gap: .75rem; align-items: flex-start; padding: .45rem 0; border-bottom: 1px solid #f0f0f0; }
.chk i { font-size: 1.1rem; margin-top: 2px; } .chk small { display: block; color: #6c757d; word-break: break-word; }
.chk.ok i { color: #198754; } .chk.bad i { color: #dc3545; } .chk.warn i { color: #fd7e14; }
.pw-meter { height: 5px; background: #eee; border-radius: 3px; margin-top: 6px; overflow: hidden; } .pw-meter i { display: block; height: 100%; width: 0; transition: .25s; }
