:root {
  --bg: #faf8fd;
  --panel: #ffffff;
  --panel2: #f3f0fa;
  --line: #e8e3f2;
  --text: #2f3550;
  --muted: #7a809c;
  --accent: #8b7cf6;
  --accent-soft: #ece8ff;
  --good: #23a065;
  --warn: #b7800a;
  --bad: #e0567a;
  --shadow: 0 12px 32px rgba(104, 89, 153, .10);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: radial-gradient(ellipse 55% 38% at 0% 0%, #f8e9f2 0%, transparent 72%), radial-gradient(ellipse 48% 36% at 100% 0%, #e5efff 0%, transparent 72%), var(--bg); background-attachment: fixed; color: var(--text); font-family: "Pretendard", -apple-system, "Malgun Gothic", sans-serif; font-size: 14px; word-break: keep-all; }
.hidden { display: none !important; }
a { color: #6a5bd8; }
button, input, select, textarea { font: inherit; color: inherit; }

.btn { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { filter: brightness(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { background: #ff8fab; border-color: #ff8fab; color: #fff; }
.btn.ghost { background: #fff; color: #5a4bb0; }
.btn.small { padding: 6px 11px; font-size: 13px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 900; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; line-height: 1.5; }

/* 로그인 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { position: relative; width: 100%; max-width: 380px; padding: 34px 28px 28px; border-radius: 26px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 22px 60px rgba(104,89,153,.16); display: flex; flex-direction: column; gap: 11px; overflow: hidden; }
.login-card::before { content: ""; height: 7px; position: absolute; inset: 0 0 auto; background: linear-gradient(90deg, #ffb3cf, #b8a9ff, #9bdbff, #a9ebcf); }
.login-card h1 { margin: 0; font-size: 22px; }
.login-card p { margin: 0; color: var(--muted); }
.login-card input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.login-card .msg { color: var(--bad); min-height: 18px; font-size: 13px; }
.login-card .back { text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; }

.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.head h2 { margin: 0; font-size: 20px; }

/* 게임 목록 */
.st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.st.live { background: #dcf7ea; color: var(--good); }
.st.soon { background: #fff1c2; color: var(--warn); }
.st.off { background: #eeedf3; color: var(--muted); }
.st.data { background: #e3efff; color: #3b6fb0; }

/* 데이터 */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { position: relative; overflow: hidden; padding: 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.stat::after { content: ""; position: absolute; right: -18px; bottom: -20px; width: 62px; height: 62px; border-radius: 50%; background: var(--accent-soft); opacity: .78; }
.stat:nth-child(4n+2)::after { background: #e0f5eb; }
.stat:nth-child(4n+3)::after { background: #e3efff; }
.stat:nth-child(4n+4)::after { background: #fff0c9; }
.stat small { display: block; color: var(--muted); font-size: 12px; }
.stat b { font-size: 24px; }
.skeleton { min-height: 70px; background: linear-gradient(90deg, var(--panel), var(--panel2), var(--panel)); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.search { width: 100%; max-width: 320px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 12px; font-weight: 700; background: var(--panel2); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
tbody tr[data-id] { cursor: pointer; }
tbody tr[data-id]:hover { background: var(--panel2); }
td.id { font-weight: 800; }

/* 창 */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(70, 60, 110, .28); backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(80, 70, 130, .18); }
.sheet h3 { margin: 0 0 12px; font-size: 19px; }
.sheet h4 { margin: 0 0 8px; font-size: 14px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.form label small { color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); font-weight: 500; }
.form input[readonly] { opacity: .6; }
.form input[type="color"] { padding: 2px; height: 40px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.grow { flex: 1; }
.preview .pv { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--c) 22%, #fff); border: 1px solid var(--line); }
.preview svg { width: 52px; height: 52px; }
dl.view { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
dl.view dt { color: var(--muted); }
dl.view dd { margin: 0; font-weight: 600; }
.act { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.act .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.act button { justify-self: start; }
.danger-zone { padding: 12px 14px; border-radius: 12px; border: 1px solid #ffc9d6; background: #fff4f7; }
.danger-zone .row { display: flex; gap: 8px; margin-top: 8px; }
.danger-zone input { flex: 1; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; padding: 11px 16px; border-radius: 12px; background: #e6f8ef; border: 1px solid #a8e6c6; color: #1d7a4e; font-weight: 700; box-shadow: 0 8px 24px rgba(80, 70, 130, .15); max-width: calc(100% - 32px); }
.toast.bad { background: #ffeef2; border-color: #ffc0cf; color: #c23a5e; }

@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
}

.row-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.sheet.wide { max-width: 920px; }
.dtable { margin-bottom: 12px; }
.dtable table { font-size: 13px; }
.dtable td:last-child, .dtable th:last-child { text-align: right; }
.raw { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.raw summary { padding: 10px 14px; cursor: pointer; font-weight: 700; }
.raw-tools { display: flex; gap: 6px; padding: 0 14px; }
.raw pre { margin: 8px 0 0; padding: 12px 14px; max-height: 360px; overflow: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; color: #4a4f6a; white-space: pre; border-top: 1px solid var(--line); }

table { box-shadow: 0 6px 20px rgba(120, 110, 170, .06); }
.stat { box-shadow: 0 6px 20px rgba(120, 110, 170, .06); }

/* 여러 명 선택·정렬 */
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--text); }
th.ck, td.ck { width: 36px; text-align: center !important; padding-left: 10px; padding-right: 4px; }
.ck input, .chk input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
tbody tr.on { background: var(--accent-soft); }
.bulkbar { position: sticky; top: 64px; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: var(--accent-soft); border: 1px solid #d5ccff; }
.bulkbar .bb-acts { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.progress { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.form textarea { padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); font-weight: 500; resize: vertical; }
.act .fields label.wide { grid-column: 1 / -1; }

/* 계정 상세: 분류 탭 */
.u-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.u-head h3 { margin: 0; }
.utabs { position: sticky; top: -20px; z-index: 2; display: flex; gap: 4px; overflow-x: auto; margin: 0 -20px 14px; padding: 8px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.utabs button { border: 0; background: none; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-weight: 800; cursor: pointer; white-space: nowrap; }
.utabs button.active { background: var(--accent-soft); color: #4b3b9a; }
.utabs small { font-weight: 700; color: var(--muted); }
.dt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dt-head h4 { margin: 0 6px 0 0; }
.dt-head select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.dt-bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 8px; border-radius: 10px; background: #fff4f7; border: 1px solid #ffc9d6; }
.dt-bulk.idle { background: var(--panel2); border-color: var(--line); }
.dt-bulk .chk { display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.dt-bulk b { flex: 1; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; color: var(--muted); font-weight: 700; }
.act.danger-act { border-color: #ffc9d6; background: #fffafb; }
.form .fields input, .form .fields select, .form .fields textarea { width: 100%; min-width: 0; }
.sheet { overflow-x: hidden; }


/* 2026-10-18 분석 · 검색 · 단축키 */
.gsearch { position: relative; display: flex; align-items: center; }
.gsearch input { width: 220px; padding: 7px 30px 7px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.gsearch input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.gsearch kbd { position: absolute; right: 8px; pointer-events: none; }
kbd { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel2); color: var(--muted); font: 700 11px/1.5 inherit; text-align: center; }
dl.keys { grid-template-columns: max-content 1fr; align-items: center; }
.errbox { padding: 14px 16px; border-radius: 14px; background: #fff4f7; border: 1px solid #ffc9d6; color: #b2385c; font-weight: 600; white-space: normal; text-align: left; }
.loadmsg { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted); }
.loadmsg.bad { color: var(--bad); font-weight: 600; }
.live-dot { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #dcf7ea; color: var(--good); font-size: 11px; font-weight: 800; vertical-align: middle; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.sk-row td i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--panel2), #e9e4f5, var(--panel2)); background-size: 200% 100%; animation: sh 1.2s linear infinite; }
.sk-row td:nth-child(2) i { width: 70%; }
.sub.tiny, .tiny { font-size: 11px; }
.tip { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--panel2); color: var(--muted); font-size: 10px; font-weight: 800; cursor: help; }

.an-sec { margin-top: 26px; }
.an-sec h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-sec > .sub { margin-bottom: 12px; }
.an-skel { height: 320px; border-radius: 18px; margin-top: 20px; }
.stat .dl { position: relative; z-index: 1; margin-left: 4px; }
.dl { font-size: 11.5px; font-weight: 800; padding: 1px 6px; border-radius: 99px; white-space: nowrap; }
.dl.up { background: #ffe5ed; color: #d6406c; }
.dl.down { background: #e3efff; color: #3b6fb0; }
.dl.same { background: var(--panel2); color: var(--muted); }
.lg { display: inline-block; width: 18px; height: 0; margin: 0 4px 3px 2px; vertical-align: middle; border-top: 2.5px solid #8b7cf6; }
.lg.dash { border-top: 2px dashed #b9b3cf; }
.an-table td.gname, .gs-table td.gname { text-align: left; font-weight: 800; }
.an-table td.left { text-align: left; color: var(--muted); font-size: 12.5px; }
.an-table th[data-ans] { cursor: pointer; user-select: none; }
.an-table th:nth-child(2), .an-table td:nth-child(2) { text-align: left; }
.an-table tr.go { cursor: pointer; }
.an-table tr.go:hover { background: var(--panel2); }
.an-table td .st { margin-left: 6px; }
.an-table .on { color: var(--good); }
.mini-art { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; vertical-align: middle; border-radius: 8px; background: color-mix(in srgb, var(--c, #ddd) 22%, #fff); }
.gs-table .mini-art { background: var(--panel2); }
.mini-art svg { width: 20px; height: 20px; filter: drop-shadow(0 1px .6px rgba(47,53,80,.45)); }
.spark { display: block; margin-left: auto; }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.genre { padding: 14px 15px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(120, 110, 170, .06); }
.genre:first-child { border-color: #ffc2d4; background: linear-gradient(160deg, #fff6f9, #fff); }
.genre.empty { opacity: .6; box-shadow: none; }
.g-top { display: flex; align-items: center; gap: 8px; }
.g-top b { font-size: 15px; flex: 1; }
.g-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #4b3b9a; font-weight: 900; font-size: 13px; }
.genre:first-child .g-rank { background: #ff8fb8; color: #fff; }
.g-bar { height: 7px; margin: 10px 0 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb3cf, #8b7cf6); }
.g-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 12px; }
.g-nums b { color: var(--text); }
.genre p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: #555b76; }

.badge-ai { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: linear-gradient(90deg, #ffe1ec, #e6e0ff); color: #6a4fc0; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rec { position: relative; padding: 18px 18px 14px; border-radius: 18px; background: linear-gradient(170deg, #fbf9ff, #fff 55%); border: 1px solid #e3dcff; box-shadow: var(--shadow); }
.rec-n { position: absolute; top: -10px; left: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff9fc1, #8b7cf6); color: #fff; font-weight: 900; box-shadow: 0 4px 10px rgba(139,124,246,.35); }
.rec-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rec-tags span { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--panel2); color: var(--muted); }
.rec-tags span:first-child { background: var(--accent-soft); color: #4b3b9a; }
.rec h4 { margin: 10px 0 4px; font-size: 18px; letter-spacing: -.3px; }
.rec-desc { margin: 0 0 8px; color: #555b76; line-height: 1.5; }
.rec ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }


/* ===== 2026-10-18 새 구조: 왼쪽 메뉴 + 내용 ===== */
.preview svg { filter: drop-shadow(0 1px 1px rgba(47, 53, 80, .45)); }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-right: 1px solid rgba(232,227,242,.95); box-shadow: 5px 0 22px rgba(104,89,153,.05); overflow: hidden; z-index: 15; }
.side-head { display: flex; align-items: center; justify-content: space-between; }
.brand { margin: 0; font-size: 17px; padding: 4px 6px; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 18px; border-radius: 3px; background: linear-gradient(135deg, #ff9fc1, #8b7cf6); box-shadow: 10px 0 0 #b8e8d1, 0 10px 0 #cce8ff, 10px 10px 0 #ffe6a6; transform: translateY(-5px); }
.side-close { display: none; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; color: #4b5170; font-weight: 750; text-decoration: none; }
.nav a:hover { background: var(--panel2); }
.nav a.active { background: var(--accent-soft); color: #4b3b9a; box-shadow: inset 3px 0 0 var(--accent); }
.nav a kbd { margin-left: auto; opacity: 0; transition: opacity .15s; }
.nav a:hover kbd, .nav a:focus-visible kbd { opacity: 1; }
.nav-ic { width: 22px; text-align: center; font-size: 16px; }
.picker { display: flex; flex-direction: column; gap: 6px; min-height: 0; flex: 1; border-top: 1px solid var(--line); padding-top: 12px; }
.picker-label { font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 0 4px; letter-spacing: .02em; }
.picker input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.pick-list { list-style: none; margin: 0; padding: 0 2px 8px 0; overflow-y: auto; flex: 1; min-height: 0; }
.pick-list a { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 650; }
.pick-list a:hover { background: var(--panel2); }
.pick-list a.active { background: color-mix(in srgb, var(--c) 18%, #fff); }
.pick-list .mini-art { width: 24px; height: 24px; margin-right: 4px; flex: none; }
.pick-list .mini-art svg { width: 18px; height: 18px; }
.pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-list .st { font-size: 10px; padding: 1px 6px; }
.pick-list .live-dot { margin-left: 0; }
.scrim { position: fixed; inset: 0; z-index: 14; background: rgba(70, 60, 110, .28); }

.content { min-width: 0; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 11px 22px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(232,227,242,.9); }
.menu-btn { display: none; font-size: 16px; }
.crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.crumb a { color: var(--muted); text-decoration: none; font-weight: 700; }
.crumb a:hover { color: var(--accent); }
.crumb span { color: #c3bdd6; }
.crumb b { overflow: hidden; text-overflow: ellipsis; }
.gsearch input { width: 260px; }
main { max-width: 1180px; margin: 0 auto; padding: 24px 22px 90px; }
.head.slim { margin-bottom: 10px; align-items: center; }
.card { padding: 16px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(120, 110, 170, .06); min-width: 0; }
.card h3 { margin: 0 0 8px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card h3.mt, .mt { margin-top: 16px; }
.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.dash-grid, .gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.gd-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
#settingsBox .gd-grid, #chartBox > .gd-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
#settingsBox .card > .btn { margin-top: 8px; }
dl.keys dt kbd { white-space: nowrap; }

/* 주의할 것 */
.attn h3 .cnt { font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #fff1c2; color: var(--warn); }
.attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.attn-list li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.attn-list .dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.attn-list .lv-bad { background: #fff4f7; } .attn-list .lv-bad .dot { background: var(--bad); }
.attn-list .lv-warn { background: #fffaea; } .attn-list .lv-warn .dot { background: #f0b429; }
.attn-list .lv-info .dot { background: #8fb4e6; }
.attn-list .lv-ok { background: #effaf4; } .attn-list .lv-ok .dot { background: var(--good); }
.attn-list b { font-size: 13.5px; }
.attn-list p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 9px 2px 3px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 12px; font-weight: 700; }
.chip:hover { border-color: var(--c); }
.chip .mini-art { width: 20px; height: 20px; margin-right: 3px; border-radius: 50%; }
.chip .mini-art svg { width: 15px; height: 15px; }

/* 분석 도우미 */
.helper { display: flex; flex-direction: column; background: linear-gradient(170deg, #fbf9ff, #fff 60%); border-color: #e3dcff; }
.helper-head { display: flex; align-items: center; justify-content: space-between; }
.helper-head h3 { margin: 0; }
.chat { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; padding: 10px; min-height: 120px; max-height: 330px; overflow-y: auto; border-radius: 14px; background: #f7f5fc; }
.chat-empty { margin: auto; color: var(--muted); font-size: 13px; }
.bubble { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.55; }
.bubble p { margin: 0 0 4px; } .bubble p:last-child { margin: 0; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; font-weight: 700; }
.bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.bubble li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 8px; border-radius: 9px; background: var(--bg); }
.bubble li a { display: inline-flex; align-items: center; font-weight: 800; text-decoration: none; }
.bubble li .mini-art { width: 20px; height: 20px; margin-right: 4px; }
.bubble li .mini-art svg { width: 15px; height: 15px; }
.bubble li small { color: var(--muted); font-size: 11.5px; }
.qbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.qbtn { border: 1px solid #ddd5ff; background: #fff; color: #5a4bb0; border-radius: 99px; padding: 6px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; text-align: left; }
.qbtn:hover { background: var(--accent-soft); }

/* 게임 목록 편집 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.toolbar input, .toolbar select, .bulkbar select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.toolbar input { flex: 1; min-width: 180px; max-width: 300px; }
#gHint { margin: 0 0 10px; }
.glist { display: grid; gap: 6px; }
.grow-row { display: grid; grid-template-columns: 26px 16px minmax(180px, 1.6fr) auto 150px minmax(90px, .6fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-left: 4px solid var(--c); box-shadow: 0 3px 12px rgba(120, 110, 170, .05); }
.grow-row.changed { background: #fffdf4; border-color: #ffe08a; border-left-color: var(--c); }
.grow-row.on { background: var(--accent-soft); }
.grow-row.dragging { opacity: .45; }
.grow-row.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.grow-row.drop-after { box-shadow: 0 3px 0 var(--accent); }
.grow-row .ck { display: grid; place-items: center; }
.handle { cursor: grab; color: #b3acc9; font-size: 16px; user-select: none; }
.handle.off { opacity: .25; cursor: default; }
.g-main { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px; }
.g-main:hover b { color: var(--accent); }
.g-art { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 24%, #fff); }
.g-art svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgba(47,53,80,.45)); }
.g-txt { display: grid; min-width: 0; }
.g-txt b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-txt small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg { color: #e0a100; font-style: normal; font-size: 10px; margin-left: 5px; vertical-align: middle; }
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 5px 9px; border-radius: 8px; font-size: 12px; font-weight: 750; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on.live { background: #dcf7ea; color: var(--good); }
.seg button.on.soon { background: #fff1c2; color: var(--warn); }
.seg button.on.off { background: #fff; color: #555b76; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.g-genre { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; min-width: 0; width: 100%; }
.g-num { font-size: 12.5px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.g-num b { color: var(--text); }
.g-num .on { color: var(--good); }
.g-num .st { margin-left: 4px; }
.g-acts { display: flex; gap: 4px; align-items: center; }
.savebar { position: sticky; bottom: 14px; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: #fff6d6; border: 1px solid #ffe08a; color: #8a6200; box-shadow: 0 12px 30px rgba(138, 98, 0, .16); }
.sb-text { display: grid; gap: 2px; }
.sb-note { font-size: 12.5px; color: #8a5a00; font-weight: 600; }
.sb-btns { display: flex; gap: 6px; flex: none; }
.note { margin: -4px 0 0; padding: 8px 11px; border-radius: 10px; background: #fff6d6; border: 1px solid #ffe08a; color: #8a5a00; font-size: 12.5px; font-weight: 600; }

/* 게임 자세히 */
.gd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gd-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gd-art { flex: none; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 26%, #fff); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.gd-art svg { width: 48px; height: 48px; filter: drop-shadow(0 1px 1px rgba(47,53,80,.45)); }
.gd-txt h2 { margin: 0; font-size: 21px; display: flex; align-items: center; }
.gd-txt .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gd-txt code, .card code { font-size: 12px; background: var(--panel2); padding: 1px 6px; border-radius: 6px; }
.gd-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gd-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.gd-status select { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; }
.gd-tabs { position: static; margin: 0 0 16px; padding: 6px 0; background: transparent; border-bottom: 1px solid var(--line); }
.gd-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 800; text-decoration: none; white-space: nowrap; }
.gd-tabs a.active { background: var(--accent-soft); color: #4b3b9a; }
.big-trend { width: 100%; height: auto; display: block; }
.big-trend .ax { font-size: 10px; fill: #9a9fb8; }
.lg.bar { width: 10px; height: 10px; border: 0; border-radius: 3px; background: #dcd6ee; }
.big-rank { margin: 4px 0; font-size: 15px; }
.big-rank b { font-size: 34px; color: #4b3b9a; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.recent li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 9px; background: var(--bg); }
.recent small { color: var(--muted); }
.linkish { border: 0; background: none; padding: 0; color: #5a4bb0; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
dl.info { margin: 0; }
dl.info dd { word-break: break-all; }
.bad { color: var(--bad); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.hbars li { display: grid; grid-template-columns: minmax(70px, 120px) 1fr auto; align-items: center; gap: 8px; font-size: 12.5px; }
.hbars span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #ffb3cf, #8b7cf6); min-width: 2px; }
.table-wrap.flat { box-shadow: none; }

/* 플레이어 */
.psearch { display: flex; gap: 8px; margin-bottom: 14px; max-width: 520px; }
.psearch input { flex: 1; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; }
.psearch input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pcard { margin-bottom: 12px; }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pid { font-size: 18px; }
.pc-bulk { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.gs-table td.left { text-align: left; }
.gs-table .gname a { color: inherit; text-decoration: none; }
.gs-table .st { margin-right: 4px; }
.row-acts { display: flex; gap: 4px; align-items: center; }
details.menu { position: relative; }
details.menu summary { list-style: none; cursor: pointer; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 8; display: grid; min-width: 190px; padding: 5px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(80,70,130,.18); }
.menu-pop button { border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left; cursor: pointer; font-weight: 650; }
.menu-pop button:hover { background: var(--panel2); }
.pcard .table-wrap { overflow: visible; }
.pc-skel { height: 150px; border-radius: 18px; margin-bottom: 12px; }
.qres { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.qres li { padding: 6px 10px; border-radius: 9px; font-weight: 700; font-size: 13px; }
.qres li.ok { background: #effaf4; color: #1d7a4e; }
.qres li.bad { background: #fff4f7; color: #b2385c; }
.qres small { font-weight: 500; color: inherit; opacity: .8; margin-left: 4px; }

/* 순위·차트 */
.mini-podium { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.mini-podium li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid var(--line); }
.mini-podium .medal { font-size: 20px; }
.mini-podium a { color: inherit; text-decoration: none; }
.mini-podium small { color: var(--muted); margin-left: auto; font-weight: 700; }
.rule { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: #4b3b9a; font-weight: 800; }
.rule-list { margin: 0; padding-left: 18px; color: #555b76; font-size: 13px; line-height: 1.65; }
.rank-table td.score { white-space: nowrap; }
.sbar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; margin-right: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.sbar i { display: block; height: 100%; background: linear-gradient(90deg, #ffb3cf, #8b7cf6); }

/* 접근성: 키보드로 옮길 때 테두리 */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, tr.go:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grow-row { grid-template-columns: 26px 16px minmax(160px, 1fr) auto 140px auto; }
  .grow-row .g-num { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 10px 0 40px rgba(80,70,130,.18); visibility: hidden; }
  .side.open { transform: none; visibility: visible; }
  .side-close, .menu-btn { display: inline-grid; place-items: center; }
  .nav a kbd { display: none; }
  .dash-grid, .gd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .top { padding: 9px 12px; gap: 6px; flex-wrap: wrap; }
  .crumb { font-size: 14px; }
  .gsearch { order: 3; flex: 1 1 100%; }
  .gsearch input { width: 100%; }
  .gsearch kbd { display: none; }
  #keysHelp { display: none; }
  main { padding: 14px 12px 90px; }
  .head { flex-wrap: wrap; }
  .head h2 { font-size: 18px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 20px; }
  .toolbar input { max-width: none; flex-basis: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
  .grow-row { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "ck main acts" "ck seg seg" "ck genre genre"; gap: 6px 8px; padding: 9px 10px; }
  .grow-row .ck { grid-area: ck; align-self: start; padding-top: 10px; }
  .grow-row .handle { display: none; }
  .grow-row .g-main { grid-area: main; }
  .grow-row .seg { grid-area: seg; justify-self: start; }
  .grow-row .g-genre { grid-area: genre; }
  .grow-row .g-acts { grid-area: acts; }
  .grow-row .g-acts .btn { display: none; }
  .savebar { flex-direction: column; align-items: stretch; bottom: 8px; }
  .sb-btns { justify-content: flex-end; }
  .gd-art { width: 52px; height: 52px; } .gd-art svg { width: 38px; height: 38px; }
  .gd-txt h2 { font-size: 18px; }
  .psearch input { font-size: 16px; }
  .pc-bulk { width: 100%; }
  .pcard .table-wrap { overflow-x: auto; }
  .bubble { max-width: 100%; }
}

@media (max-width: 640px) { .menu-pop { position: static; margin-top: 4px; box-shadow: none; } }

/* 다듬기 */
.toast { top: 14px; bottom: auto; }
#gd-overview > .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#gd-log > .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-mob { display: none; }
@media (max-width: 1100px) { #gd-overview > .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #gd-overview > .stats, #gd-log > .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs-table th:nth-child(n+3):nth-child(-n+7), .gs-table td.c-n, .gs-table td.left:nth-child(7) { display: none; }
  .gs-table .c-mob { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
  .gs-table td.gname { white-space: normal; }
}

/* ---------- 메뉴 배지 ---------- */
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 900; line-height: 1; }
.nav-badge.bug { background: var(--bad); }
.nav a .nav-badge { margin-left: auto; }
.nav a .nav-badge:not(.hidden) + kbd { margin-left: 6px; }
.fb-chip small { color: var(--muted); font-weight: 800; }

/* ---------- 게임 목록: 보기 방식 · 장르별 배치 ---------- */
.gmode { margin-bottom: 10px; }
.gmode button { padding: 7px 14px; font-size: 13px; }
.gmode button.on { background: #fff; color: #4b3b9a; box-shadow: 0 1px 4px rgba(80, 60, 160, .14); }
.arr-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--panel2); color: #555b76; font-size: 13px; line-height: 1.55; }
.arr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
.arr-col { border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(120, 110, 170, .06); padding: 10px; min-width: 0; }
.arr-col.hid { background: repeating-linear-gradient(135deg, #fbfafd 0 10px, #f4f2f9 10px 20px); }
.arr-col.hid .arr-list { opacity: .6; }
.arr-head { display: flex; align-items: center; gap: 6px; padding: 2px 2px 8px; }
.arr-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #4b3b9a; font-weight: 900; font-size: 12px; }
.arr-title { flex: 1; min-width: 0; display: grid; }
.arr-title b { font-size: 14.5px; line-height: 1.3; word-break: keep-all; }
.arr-title small { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.arr-head .icon-btn { width: 28px; height: 28px; flex: none; }
.arr-hide { flex: none; padding: 4px 8px; font-size: 12px; }
.arr-hidnote { margin: 0 0 8px; font-size: 12px; color: var(--warn); font-weight: 700; }
.arr-list { list-style: none; margin: 0; padding: 4px; display: grid; gap: 6px; min-height: 64px; border-radius: 12px; border: 2px dashed transparent; transition: border-color .12s, background .12s; }
.arr-list.drop-in { border-color: var(--accent); background: var(--accent-soft); }
.arr-card { display: grid; grid-template-columns: 14px 36px minmax(0, 1fr) 28px 28px; grid-template-areas: "h art name up down" "h art genre genre genre"; gap: 4px 6px; align-items: center; padding: 7px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); cursor: grab; }
.arr-card:hover { border-color: #d5ccff; border-left-color: var(--c); }
.arr-card.dim { background: #fbfafd; }
.arr-card.dim .g-art { opacity: .55; }
.arr-card.changed { background: #fffdf4; border-color: #ffe08a; border-left-color: var(--c); }
.arr-card.dragging { opacity: .4; }
.arr-card.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.arr-card.drop-after { box-shadow: 0 3px 0 var(--accent); }
.arr-card .handle { grid-area: h; }
.arr-card .g-art { grid-area: art; width: 36px; height: 36px; }
.arr-card .g-art svg { width: 27px; height: 27px; }
.arr-name { grid-area: name; display: flex; align-items: center; gap: 6px; min-width: 0; }
.arr-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arr-card [data-mup] { grid-area: up; width: 28px; height: 28px; }
.arr-card [data-mdown] { grid-area: down; width: 28px; height: 28px; }
.arr-genre { grid-area: genre; min-width: 0; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); font-size: 12px; color: #555b76; }
.arr-empty { padding: 14px 8px; text-align: center; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.arr-empty small { font-weight: 600; opacity: .8; }

/* ---------- 📝 의견함 ---------- */
.fb-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fb-stat { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: #555b76; font-weight: 750; font-size: 13px; text-align: left; }
.fb-stat b { font-size: 20px; color: var(--text); }
.fb-stat.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.fb-stat.st-new b { color: #4b3b9a; }
#fbKind button small { opacity: .7; }
#fbKind button.on { background: #fff; color: #4b3b9a; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.fb-list { display: grid; gap: 10px; margin-top: 8px; }
.fb-card { padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); box-shadow: 0 3px 12px rgba(120, 110, 170, .05); min-width: 0; }
.fb-card.s-done, .fb-card.s-wontfix { background: #fbfafd; }
.fb-card.s-done .fb-text, .fb-card.s-wontfix .fb-text { color: #7a809c; }
.fb-card.k-bug.s-new { border-color: #ffc9d6; border-left-color: var(--bad); }
.fb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-game { display: inline-flex; align-items: center; font-weight: 800; color: var(--text); text-decoration: none; font-size: 14px; }
.fb-game:hover { text-decoration: underline; }
.fb-game .mini-art { margin-right: 6px; }
.fb-kind { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--panel2); color: #555b76; }
.fb-kind.k-bug { background: #ffe4ec; color: #b2385c; }
.fb-kind.k-idea { background: #fff4cc; color: #8a6200; }
.fb-time { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.fb-text { margin: 8px 0 6px; white-space: pre-wrap; word-break: break-word; font-size: 14.5px; line-height: 1.55; }
.fb-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.fb-meta b { color: #555b76; }
.fb-key { margin-left: auto; }
.fb-key code { font-size: 11px; color: #a4a9c0; }
.fb-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-seg button.on.st-new { background: var(--accent-soft); color: #4b3b9a; }
.fb-seg button.on.st-doing { background: #fff1c2; color: var(--warn); }
.fb-seg button.on.st-done { background: #dcf7ea; color: var(--good); }
.fb-seg button.on.st-wontfix { background: #eeedf3; color: #555b76; }
.fb-note { flex: 1; min-width: 160px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); font-size: 13px; transition: background .3s; }
.fb-note:focus { background: #fff; outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.fb-note.saved { background: #dcf7ea; }
.fb-del { flex: none; background: #fff; }
.fb-empty { padding: 34px 16px; text-align: center; border-radius: 16px; border: 1px dashed var(--line); background: #fff; }
.fb-empty p { margin: 0; font-weight: 750; }
.fb-empty .sub { margin-top: 6px; font-weight: 500; }
.fb-copybox { width: 100%; min-height: 50vh; font: 12px/1.5 ui-monospace, Consolas, monospace; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .gmode { display: flex; }
  .gmode button { flex: 1; }
  .arr-grid { grid-template-columns: minmax(0, 1fr); }
  .arr-card { cursor: default; grid-template-columns: 0 32px minmax(0, 1fr) 34px 34px; column-gap: 8px; padding-left: 4px; }
  .arr-card .handle { visibility: hidden; }
  .arr-card { padding-top: 6px; padding-bottom: 6px; row-gap: 3px; }
  .arr-card .g-art { width: 32px; height: 32px; }
  .arr-card .g-art svg { width: 24px; height: 24px; }
  .arr-card [data-mup], .arr-card [data-mdown], .arr-head .icon-btn { width: 34px; height: 32px; }
  .arr-genre { padding: 5px 8px; font-size: 12.5px; }
  .fb-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fb-stat { padding: 8px 12px; }
  .fb-stat b { font-size: 17px; }
  #view-feedback .head { flex-direction: column; align-items: stretch; }
  #view-feedback .row-btns { justify-content: stretch; }
  #view-feedback .row-btns .btn { flex: 1; }
  #fbKind { width: 100%; }
  #fbKind button { flex: 1; padding: 6px 4px; }
  .fb-seg { width: 100%; }
  .fb-seg button { flex: 1; padding: 6px 2px; font-size: 11.5px; }
  .fb-key { margin-left: 0; }
}

/* 휴대폰 알림 설치 */
#notifyCard .steps { margin: 8px 0; padding-left: 1.2em; display: grid; gap: 4px; }
#notifyCard .topic-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#notifyCard .topic-row code { font-size: 15px; padding: 4px 8px; border-radius: 8px; overflow-wrap: anywhere; }
#notifyCard .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 🔐 2단계 인증: 로그인 OTP 칸, 위쪽 배너, 설정 카드, 등록 창 */
.code-box { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--accent-soft); }
.code-box label { font-weight: 800; font-size: 13.5px; }
.code-box input { width: 100%; min-width: 0; font-size: 22px; letter-spacing: .18em; text-align: center; font-variant-numeric: tabular-nums; }
.code-box small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.sec-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 24px 0; padding: 12px 16px; border-radius: 14px; background: #fff3cd; border: 2px solid #ffcf4d; color: #7a4f00; text-decoration: none; font-size: 14px; box-shadow: 0 6px 18px rgba(183, 128, 10, .12); }
.sec-banner b { font-size: 15px; }
.sec-banner span { font-size: 13px; }
.sec-on { color: var(--good); font-weight: 800; }
.sec-off { color: var(--bad); font-weight: 800; }
.sec-card .btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.enroll { display: grid; gap: 12px; }
.enroll ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; line-height: 1.5; }
.qr { display: grid; place-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.qr svg { width: min(220px, 70vw); height: auto; display: block; }
.secret { font-size: 15px; font-weight: 800; letter-spacing: .06em; padding: 8px 10px; border-radius: 10px; background: var(--panel2); overflow-wrap: anywhere; text-align: center; user-select: all; }
.enroll .otp { font-size: 22px; letter-spacing: .18em; text-align: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.rc-list { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; border-radius: 12px; background: var(--panel2); font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; text-align: center; user-select: all; }
@media (max-width: 640px) { .sec-banner { margin: 10px 12px 0; } }

/* 계정 거르기 · 의심 · 임시 비밀번호 (2026-10-20) */
.search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.search-row .search { flex: 1 1 200px; }
.ufilter { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); margin-bottom: 10px; max-width: 100%; }
.st.susp { background: #fff1c2; color: var(--warn); cursor: help; }
.st.nopw { background: #ffe4ea; color: var(--bad); }
.u-flag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 10px; border-radius: 12px; border: 1px solid #f3dc9a; background: #fffaeb; font-size: 14px; }
.u-flag.bad { border-color: #ffc9d6; background: #fff4f7; }
.u-flag p { margin: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.temp-card { padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; border: 1px solid #d5ccff; background: var(--accent-soft); }
.temp-card h4 { margin: 0 0 4px; }
.temp-card p { margin: 4px 0; }
.temp-pw { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.temp-pw output { font: 900 34px/1.1 ui-monospace, Consolas, monospace; letter-spacing: .12em; padding: 8px 14px; border-radius: 10px; background: var(--panel); border: 2px dashed var(--accent); color: #2b2250; user-select: all; }

/* ---------- 🗂️ FicePal ---------- */
.fp-bar { align-items: center; justify-content: space-between; margin-bottom: 12px; }
a.stat.fp-link { color: inherit; text-decoration: none; }
a.stat.fp-link:hover { border-color: var(--accent); }
.fp-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.form label.fp-check { display: flex; align-items: center; gap: 8px; }
.fb-seg button.on.st-read { background: #e3efff; color: #3b5ba9; }

/* ---------- 메뉴 묶기: 🏠 홈 + 칸 안의 위쪽 탭 (미니게임·FicePal 같이 씀) ---------- */
.sec-tabs { margin-bottom: 18px; }
.sec-tabs .nav-badge { margin-left: 4px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.home-h h3 { margin: 0; }
.home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
.home-card .sub.tiny { margin: 0; }
@media (max-width: 900px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .sec-tabs { margin: 0 -12px 14px; padding: 6px 12px; scrollbar-width: none; }
  .sec-tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } /* 옆으로 더 있다는 표시 */
  .sec-tabs::-webkit-scrollbar { display: none; }
  .sec-tabs a { padding: 7px 11px; }
  .home-stats .stat b { font-size: 20px; }
}
