.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.login h1 { margin: 0; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14px; color: #c8d0ef; }
#app { display: flex; min-height: 100vh; }
.side { width: 210px; background: #0a0f22; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { font-weight: 900; font-size: 18px; padding: 6px 10px 14px; }
.side a { padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; color: #c8d0ef; text-decoration: none; }
.side a.on, .side a:hover { background: var(--panel2); color: #fff; }
.side .me { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; font-size: 13px; color: var(--muted); }
main { flex: 1; padding: 20px 24px 60px; min-width: 0; }
main h1 { margin: 0 0 16px; font-size: 24px; }
main h2 { font-size: 18px; margin: 0 0 12px; }
.card + .card { margin-top: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 30px; font-weight: 900; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; position: sticky; top: 0; background: var(--panel); }
tr.clickable { cursor: pointer; } tr.clickable:hover { background: rgba(255,255,255,.04); }
.tablewrap { max-height: 560px; overflow: auto; }
.tablewrap th, .tablewrap td { white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.warnbox { background: #2a1f00; border: 1px solid #6b5200; color: #ffd84d; padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-size: 14px; }
.infobox { background: #0f2240; border: 1px solid #2a4f86; color: #bcd8ff; padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-size: 14px; }
.errbox { background: #300f14; border: 1px solid #7a2630; color: #ffb3b3; padding: 10px 12px; border-radius: 10px; margin: 8px 0; font-size: 14px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; display: inline-block; border: 2px solid rgba(255,255,255,.5); cursor: pointer; vertical-align: middle; }
.palette { display: flex; gap: 6px; flex-wrap: wrap; }
.logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; vertical-align: middle; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.preview canvas { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background: #000; display: block; }
.bar { height: 10px; background: rgba(255,255,255,.12); border-radius: 5px; overflow: hidden; min-width: 120px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #3a6cff, #5be08a); }
pre.notice { white-space: pre-wrap; background: #0b1020; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-family: inherit; margin: 0 0 8px; }
.pill-tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pill-tabs button.on { background: #3a6cff; border-color: #3a6cff; }
.small { font-size: 13px; }
video { width: 100%; border-radius: 12px; background: #000; margin-top: 8px; }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { flex: 1; min-width: 0; }
@media (max-width: 800px) {
  #app { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; }
  .side .me { margin: 0; flex-direction: row; align-items: center; }
  main { padding: 14px; }
}
/* 로또 공 */
.lball { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; margin: 0 2px; font-size: 12px; font-weight: 900; color: #111; box-shadow: inset -2px -3px 4px rgba(0,0,0,.3), inset 2px 2px 3px rgba(255,255,255,.5); }
.lball.big { width: 38px; height: 38px; font-size: 17px; }
/* 로또 번호 입력칸 */
.pickIn { display: inline-flex; gap: 3px; align-items: center; }
.pickIn .pk { width: 46px; padding: 5px 4px; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.pickIn .pk::-webkit-outer-spin-button, .pickIn .pk::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pickIn.empty .pk { border-color: #ff5a6a; background: #2a0f16; }
.pickIn button { margin-left: 4px; }
tr.nopick td { background: rgba(255, 90, 106, .07); }
.gameTabs button { font-size: 15px; padding: 9px 16px; }
/* 사다리 번호 */
.lnum { display: inline-block; min-width: 42px; padding: 3px 9px; border-radius: 999px; background: #3b228a; color: #fff; font-weight: 900; text-align: center; }
.lnum.win { background: #ffcf33; color: #5a3a00; }
.pickIn .small.muted { margin: 0 2px; }
/* 게임별 관리: 바로가기 줄(스크롤해도 위에 고정) */
.jumpbar { position: sticky; top: 0; z-index: 5; background: var(--bg, #0b1020); padding: 8px 0; margin-bottom: 8px; gap: 6px; }
/* 영상 연출 설정 */
.styleForm label { gap: 4px; }
.styleForm input[type=color] { width: 56px; height: 34px; padding: 2px; }
.styleForm input[type=range] { accent-color: #f6c453; }
/* 영상 제작 현황 띠 */
.queuebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: #3a2a00; border-bottom: 2px solid #f6c453; color: #ffe9a8; font-size: 14px; }
.queuebar .dotp { width: 10px; height: 10px; border-radius: 50%; background: #f6c453; animation: qpulse 1.2s infinite; }
@keyframes qpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
body.has-queue .side { top: 44px; height: calc(100vh - 44px); }
/* 당첨자 이력 */
.wcard { margin-top: 12px; }
.wcard .row a { text-decoration: none; }
.affn { display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 2px 0; white-space: nowrap; }
.affn .n { font-weight: 900; color: #fff; }
.pager { gap: 4px; margin: 12px 0 4px; align-items: center; flex-wrap: wrap; }
.pager .muted.small { margin-left: 10px; }

/* 💻 영상 제작 PC */
.chip.pcchip { background: #123a2a; color: #7ff0b5; border-color: #1f6a4a; }
.agent { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.agent.on { background: #123a2a; color: #7ff0b5; }
.agent.off { background: #2a2f45; color: #aab3d0; }
.agent.warn { background: #3d3212; color: #ffd778; }
