/* 관리자 화면 */
body.admin { background: var(--c-bg); }
.adm-top { position: sticky; top: 0; z-index: 40; background: var(--c-primary); color: var(--c-on-primary); }
.adm-top .wrap { display: flex; align-items: center; gap: 10px; height: 56px; }
.adm-top b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top .badge { background: rgba(255,255,255,.16); color: inherit; }
.adm-top .sp { flex: 1; }
.adm-top a, .adm-top button { color: inherit; }
.adm-top .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: inherit; }
.adm-tabs { position: sticky; top: 56px; z-index: 39; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.adm-tabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.adm-tabs .wrap::-webkit-scrollbar { display: none; }
.adm-tabs a { flex: none; padding: 14px 12px 12px; text-decoration: none; font-weight: 650; font-size: 14px; color: var(--c-muted); border-bottom: 2.5px solid transparent; }
.adm-tabs a.on { color: var(--c-ink); border-color: var(--c-primary); }
.adm-main { padding: 20px 0 80px; }
.adm-main h1 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.adm-main h2 { font-size: 17px; font-weight: 800; margin: 22px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px; }
.stat small { font-size: 12px; color: var(--c-muted); font-weight: 650; }
.stat b { display: block; font-size: 22px; font-weight: 850; letter-spacing: -.02em; margin-top: 2px; }
.todo { display: grid; gap: 8px; }
.todo a { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.todo a i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--c-soft); flex: none; }
.todo a.done i { background: var(--c-ok); color: #fff; }
.todo a span { margin-left: auto; color: var(--c-muted); font-size: 13px; }
.list { display: grid; gap: 10px; }
.li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 14px; padding: 14px; }
.li-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.li-head b { font-size: 15px; }
.li-head .sp { flex: 1; }
.pthumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--c-soft); display: grid; place-items: center; font-size: 22px; flex: none; overflow: hidden; }
.seg { display: inline-flex; background: var(--c-soft); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; font-weight: 650; font-size: 13px; cursor: pointer; color: var(--c-muted); }
.seg button.on { background: var(--c-surface); color: var(--c-ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.item-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; border-top: 1px dashed var(--c-line); font-size: 14px; }
.item-line .ctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item-line select, .item-line input { min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-surface); font-size: 13px; }
@media (max-width: 560px) { .item-line { grid-template-columns: 1fr; } .item-line .ctl { justify-content: flex-start; } }
.rows-edit { display: grid; gap: 8px; margin-bottom: 8px; }
.rows-edit .r { display: grid; gap: 6px; grid-template-columns: 1fr 110px 90px 36px; align-items: center; }
.rows-edit .r.s3 { grid-template-columns: 1fr 120px 36px; }
.rows-edit input { min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-surface); width: 100%; }
.rows-edit button { height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--c-muted); }
.imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.imgs .im { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--c-soft); }
.imgs .im img, .imgs .im video { width: 100%; height: 100%; object-fit: cover; }
.imgs .im button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.imgs label.add { width: 76px; height: 76px; border-radius: 10px; border: 1.5px dashed var(--c-line); display: grid; place-items: center; cursor: pointer; color: var(--c-muted); font-size: 26px; }
.imgs label.add input { display: none; }
.design { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 960px) { .design { grid-template-columns: 1fr; } }
.preview { position: sticky; top: 118px; border-radius: 18px; overflow: hidden; border: 1px solid var(--c-line); background: #fff; height: calc(100vh - 140px); min-height: 520px; }
.preview iframe { width: 100%; height: 100%; border: 0; }
.preview-bar { display: flex; gap: 6px; justify-content: center; margin-bottom: 8px; }
.preview.phone { max-width: 390px; margin: 0 auto; height: 760px; max-height: calc(100vh - 160px); border-radius: 34px; border: 8px solid #1b1d1e; }
@media (max-width: 960px) { .preview { position: static; height: 640px; } }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset { border: 2px solid var(--c-line); border-radius: 12px; padding: 8px; cursor: pointer; background: var(--c-surface); text-align: left; font-size: 12px; font-weight: 700; }
.preset.on { border-color: var(--c-primary); }
.preset .sw { display: flex; height: 26px; border-radius: 7px; overflow: hidden; margin-bottom: 6px; }
.preset .sw i { flex: 1; }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.colors label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--c-line); border-radius: 10px; font-size: 12.5px; font-weight: 650; background: var(--c-surface); }
.colors input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; }
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vids button { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #111; }
.vids button.on { border-color: var(--c-primary); box-shadow: 0 0 0 2px var(--c-accent); }
.vids video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vids span { position: absolute; left: 4px; bottom: 4px; font-size: 10.5px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 6px; }
.vids .none { display: grid; place-items: center; color: #aaa; font-size: 12px; background: var(--c-soft); }
.acc { border: 1px solid var(--c-line); border-radius: 14px; background: var(--c-surface); margin-bottom: 10px; }
.acc > summary { list-style: none; padding: 14px 16px; font-weight: 750; cursor: pointer; display: flex; justify-content: space-between; }
.acc > summary::after { content: '＋'; color: var(--c-muted); }
.acc[open] > summary::after { content: '－'; }
.acc > div { padding: 0 16px 16px; }
.secrow { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--c-line); }
.secrow .mv { display: flex; flex-direction: column; }
.secrow .mv button { border: 0; background: none; cursor: pointer; font-size: 11px; line-height: 1.1; color: var(--c-muted); padding: 1px 4px; }
.guide { background: var(--c-soft); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; line-height: 1.7; }
.guide ol { margin: 6px 0 0; padding-left: 20px; }
.guide code { background: var(--c-surface); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }
.chan { border: 1px solid var(--c-line); border-radius: 12px; padding: 12px; margin-bottom: 8px; background: var(--c-surface); }
.chan .grid2 .field { margin-bottom: 8px; }
.login-box { max-width: 420px; margin: 40px auto; }
