/* 게임 운영 포털 — 한 장짜리 스타일. 색은 모두 :root 토큰으로, 다크 모드는 토큰만 바꾼다. */
:root {
  --bg: #f4f5f7; --panel: #ffffff; --panel-2: #f9fafb; --line: #e3e6ea; --line-2: #eef0f3;
  --text: #1c2024; --text-2: #5b636d; --text-3: #8a929c;
  --accent: #2f6fde; --accent-soft: #e8f0fd; --accent-text: #1f56b8;
  --good: #1b8a5a; --good-soft: #e5f5ed; --warn: #b26a00; --warn-soft: #fdf2e0; --bad: #c43d3d; --bad-soft: #fbeaea;
  --side: #15181c; --side-text: #c7ccd2; --side-dim: #7d858f; --side-active: #ffffff; --side-hover: #22272d;
  --radius: 8px; --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114; --panel: #171a1e; --panel-2: #1c2025; --line: #2a2f36; --line-2: #22262c;
    --text: #e6e9ec; --text-2: #a3abb5; --text-3: #737b85;
    --accent: #5b92f0; --accent-soft: #1b2a44; --accent-text: #8fb4f5;
    --good: #3cc488; --good-soft: #15302a; --warn: #e3a447; --warn-soft: #33281a; --bad: #ec6b6b; --bad-soft: #3a1d1f;
    --side: #0b0c0e; --side-hover: #1a1d21;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 48px; color: var(--text-3); }

/* 배치 */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { font-weight: 700; color: #fff; font-size: 15px; padding: 4px 10px 18px; letter-spacing: -.01em; }
.menu-btn { display: none; float: right; background: none; border: 1px solid #343a42; color: var(--side-text); border-radius: 6px; padding: 2px 9px; cursor: pointer; font-size: 15px; }
.brand small { display: block; color: var(--side-dim); font-weight: 500; font-size: 12px; margin-top: 2px; }
.nav-group { margin: 14px 0 4px; padding: 0 10px; font-size: 11.5px; color: var(--side-dim); font-weight: 600; letter-spacing: .02em; }
.nav a { display: flex; align-items: center; justify-content: space-between; color: var(--side-text); padding: 7px 10px; border-radius: 6px; font-size: 13.5px; }
.nav a:hover { background: var(--side-hover); text-decoration: none; }
.nav a.active { background: var(--side-hover); color: var(--side-active); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.nav a .soon { font-size: 10.5px; color: var(--side-dim); border: 1px solid #343a42; border-radius: 4px; padding: 0 5px; }
.side-foot { margin-top: 24px; padding: 12px 10px 0; border-top: 1px solid #262b31; font-size: 12px; color: var(--side-dim); }
.side-foot button { background: none; border: 1px solid #343a42; color: var(--side-text); border-radius: 6px; padding: 4px 10px; cursor: pointer; margin-top: 8px; }
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px max(28px, calc(100% - 1440px + 28px)) 14px 28px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 5; }   /* 배경은 창 끝까지, 오른쪽 도구는 본문(.content 1440px) 오른쪽 끝에 맞춘다 */
.top h1 { font-size: 17px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.top .crumb { color: var(--text-3); font-size: 13px; }
.top .spacer { flex: 1; }
.content { padding: 22px 28px 48px; max-width: 1440px; }

/* 공통 부품 */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding: 14px 16px 0; }
.panel-h h2 { font-size: 14px; margin: 0; font-weight: 650; white-space: nowrap; }
/* 좁은 화면: 제목·버튼 묶음은 줄지 않고, 설명은 14글자 폭 아래로 줄어들 바에는 다음 줄로 내려간다 */
.panel-h .seg { flex: none; }
.panel-h .sub { color: var(--text-3); font-size: 12.5px; min-width: min(14em, 100%); }
.panel-b { padding: 12px 16px 16px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }   /* 칸 안의 넓은 표가 칸을 늘려 화면 밖으로 밀지 않게 (표는 .t-wrap 이 가로로 민다) */
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack > * + * { margin-top: 16px; }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--text-2); font-size: 12.5px; }
.kpi .value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .note { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.kpi .value.muted { color: var(--text-3); font-size: 18px; font-weight: 600; }
.chart { height: 280px; }
.chart.sm { height: 220px; }

table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { text-align: left; font-weight: 600; color: var(--text-2); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; word-break: keep-all; }   /* 한글이 글자마다 끊기지 않게 — 넘치면 .t-wrap 이 가로로 민다 */
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--panel-2); }
.t .num { text-align: right; }
.t .dim { color: var(--text-3); }
.t-wrap { overflow-x: auto; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }
.tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-weight: 550; font-size: 13px; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.seg button { border: 0; background: none; padding: 5px 11px; cursor: pointer; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
select.sel, input.in, textarea.in { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 9px; font-size: 13.5px; width: 100%; }
textarea.in { min-height: 72px; resize: vertical; }
select.sel:focus, input.in:focus, textarea.in:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-size: 13.5px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

.notice { border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius); padding: 10px 14px; color: var(--text-2); font-size: 13px; }
.notice.warn { border-color: transparent; background: var(--warn-soft); color: var(--warn); }
.notice.info { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }
.notice code, .t code { font-size: 12px; background: var(--line-2); padding: 1px 5px; border-radius: 4px; color: var(--text); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--text); color: var(--panel); padding: 10px 16px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 50; }
.toast.err { background: var(--bad); color: #fff; }
.bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--accent); }

/* 로그인 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; padding: 28px; }
.login h1 { font-size: 19px; margin: 0 0 4px; }
.login p { color: var(--text-3); margin: 0 0 20px; font-size: 13px; }
.login .field + .field { margin-top: 12px; }
.login .btn { width: 100%; justify-content: center; margin-top: 18px; padding: 9px; }
.login .err { color: var(--bad); font-size: 13px; margin-top: 12px; min-height: 18px; }

/* 정책 편집 */
.policy { display: grid; grid-template-columns: 110px repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line-2); }
.policy:first-of-type { border-top: 0; }
.policy .plat { font-weight: 600; padding-bottom: 7px; }
.policy .stat { grid-column: 2 / -1; font-size: 12.5px; color: var(--text-3); }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 12px; }
  .side .brand { padding-bottom: 4px; }
  .menu-btn { display: inline-block; }
  .side-body { display: none; }
  .side.open .side-body { display: block; }
  .content, .top { padding-left: 16px; padding-right: 16px; }
  .g2, .form { grid-template-columns: 1fr; }
  .policy { grid-template-columns: 1fr 1fr; }
  .policy .stat { grid-column: 1 / -1; }
  .top { flex-wrap: wrap; }
}
.edit-row td { background: var(--panel-2); }
.edit-row .policy { border-top: 0; padding: 4px 0; }
.t td .dim, .t .dim { color: var(--text-3); }

/* 2차: 월간 리포트 인쇄 */
@media print {
  .side, .top .seg, .top select, .top .btn, .no-print, .toast { display: none !important; }
  .shell { display: block; }
  .main { margin: 0; }
  .content { padding: 0; }
  .panel { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}

/* 회사 로고 (ECSOFT) */
.brand-logo { display: block; height: 30px; width: auto; margin: 2px 0 2px; }
.login-logo { margin: 0 0 18px; }
.login-logo img { height: 34px; width: auto; display: block; }
.login-logo .on-dark { display: none; }
@media (prefers-color-scheme: dark) { .login-logo .on-light { display: none; } .login-logo .on-dark { display: block; } }

/* 스토어 리뷰 */
.rv { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rv-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-h .spacer, .rv-tools .spacer { flex: 1; }
.rv-meta { font-size: 12px; }
.rv-title { font-weight: 650; }
.rv-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.rv-reply { border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 0 6px 6px 0; padding: 8px 12px; }
.rv-reply-h { font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-edit { display: flex; flex-direction: column; gap: 8px; }
.rv-edit textarea { resize: vertical; min-height: 84px; font: inherit; }
.rv-tools { display: flex; align-items: center; gap: 8px; }
.rv-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.rv-count.over { color: var(--bad); font-weight: 700; }
.rv-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-lastmsg { overflow: hidden; text-overflow: ellipsis; }
.stars { color: #f2a417; letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }
#tpl-panel summary { list-style: none; }
#tpl-panel summary::-webkit-details-marker { display: none; }
.rv .actions { margin-top: 0; }
[hidden] { display: none !important; }
.rv-filters .seg { flex-wrap: wrap; } .rv-filters .seg button { white-space: nowrap; }
.rv-ai { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rv-ai .rv-hint { flex: 1; min-width: 200px; }
.rv-input.busy { opacity: .55; }

/* 증감: 증가 붉은색 ▲, 감소 파란색 ▼ */
.delta { font-weight: 600; font-size: .92em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta.up { color: #e5484d; }
.delta.down { color: #3b82f6; }
.delta.flat { color: var(--text-3); font-weight: 500; }
.t td .sm { font-size: 11.5px; line-height: 1.2; }
.store-head { font-size: 13px; color: var(--text-2); margin-bottom: 8px; line-height: 1.7; }

/* 공지·점검 */
.nt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.nt-row > label { flex: 1; min-width: 120px; }
#nf label, #cf label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); }
#nf .nt-check, #cf .nt-check { flex-direction: row; align-items: center; gap: 6px; }
.nt-grid { align-items: start; }
.nt-phone { background: linear-gradient(160deg, #1d2b44, #0f1726); border-radius: 22px; padding: 40px 18px; display: flex; justify-content: center; }
.nt-dialog { background: #fff; color: #1a2233; border-radius: 14px; width: 100%; max-width: 300px; padding: 18px 18px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.nt-dialog.m { border-top: 4px solid #f2a417; }
.nt-kind { font-size: 12px; color: #6b7690; margin-bottom: 4px; }
.nt-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.nt-body { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-time { margin-top: 10px; font-size: 12.5px; color: #8a5a00; background: #fff4dc; border-radius: 6px; padding: 6px 8px; }
.nt-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.nt-btn { background: #2f6fde; color: #fff; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.nt-btn.ghost { background: #eef2fa; color: #2f6fde; }

/* 크래시 현황 */
.cr-row { cursor: pointer; }
.t tr.sel td { background: var(--accent-soft); }
.cr-main { min-width: 260px; max-width: 520px; overflow-wrap: anywhere; }
.cr-frame { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; margin-top: 2px; }
.cr-title { font-size: 17px; margin-top: 8px; overflow-wrap: anywhere; }
.cr-vers { max-width: 220px; }
.chip { display: inline-block; padding: 1px 6px; margin: 1px 3px 1px 0; border: 1px solid var(--line); border-radius: 10px; font-size: 11.5px; white-space: nowrap; }
.cr-stack { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 10px 12px; max-height: 460px; overflow: auto; white-space: pre; margin: 0 0 8px; tab-size: 4; }
.top .seg button { white-space: nowrap; }

/* 서버 모니터링 */
.lv-warn { color: var(--warn); }
.lv-bad { color: var(--bad); }
.mon-bar { margin: 6px 0 4px; }
.mon-bar.good > i { background: var(--good); }
.mon-bar.warn > i { background: var(--warn); }
.mon-bar.bad > i { background: var(--bad); }
.mon-row { display: grid; grid-template-columns: 3.4em 1fr 3.6em; align-items: center; gap: 8px; font-size: 13px; margin-top: 4px; }
.mon-row .mon-bar { margin: 0; }
.mon-ell { max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mon-cc { max-height: 420px; overflow-y: auto; font-variant-numeric: tabular-nums; }   /* 들어오는 연결 — 나라별 (나라 목록도, 펼친 IP 도 안에서 스크롤) */
.mon-cc details { border-bottom: 1px solid var(--line-2); }
.mon-cc details:last-child { border-bottom: 0; }
.mon-cc summary { display: grid; grid-template-columns: 1em minmax(0, 1fr) auto 3.5em; gap: 8px; align-items: center; padding: 9px 10px; cursor: pointer; list-style: none; }
.mon-cc summary::-webkit-details-marker { display: none; }
.mon-cc summary::before { content: '▸'; color: var(--text-3); font-size: 11px; }
.mon-cc details[open] > summary::before { content: '▾'; }
.mon-cc summary:hover { background: var(--panel-2); }
.mon-cc summary .mon-ell { max-width: none; }
.mon-cc summary .dim { color: var(--text-3); font-size: 12px; }
.mon-cc summary b { text-align: right; font-weight: 600; }
.mon-cc-ips { max-height: 200px; overflow-y: auto; padding: 0 10px 8px calc(1em + 18px); }
.mon-cc-ips div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.mon-cc-ips code { font-size: 12px; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
.mon-row b { text-align: right; font-variant-numeric: tabular-nums; }
.mon-row .dim { grid-column: 2 / -1; font-size: 11.5px; color: var(--text-3); margin-top: -4px; }
.mon-strip { padding: 12px 16px; border-left: 3px solid var(--good); }
.mon-strip.warn { border-left-color: var(--warn); }
.mon-strip.bad { border-left-color: var(--bad); }
.mon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; }
.mon-head .dim { color: var(--text-3); font-size: 12.5px; }
.mon-head .spacer { flex: 1; }
.mon-items { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 1500px) { .mon-items { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mon-item { display: flex; flex-direction: column; min-width: 0; padding: 6px 8px; border-radius: 6px; background: var(--panel-2); color: var(--text); }
.mon-item:hover { background: var(--line-2); }
.mon-item .label { font-size: 11.5px; color: var(--text-3); }
.mon-item b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-item .dim { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-alerts { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.mon-alerts li { padding: 3px 0; }
.mon-alerts li .dim { color: var(--text-3); }
.mon-req > div { display: flex; flex-direction: column; }
.mon-req .label, .panel-b > .label { font-size: 12px; color: var(--text-3); }
.mon-req b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mon-msg { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.t tr.mon-key td { background: var(--accent-soft); }
@media (max-width: 1100px) { .mon-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mon-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 보안 감시 */
.sec-modal { position: fixed; inset: 0; background: rgba(10, 16, 28, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.sec-box { width: 100%; max-width: 440px; padding: 20px; display: grid; gap: 12px; }
.sec-box h2 { margin: 0; font-size: 17px; }
.sec-box p { margin: 0; font-size: 13.5px; line-height: 1.6; word-break: break-all; }
.sec-new td, .sec-hot td { background: var(--bad-soft); }
.sec-blocked td { background: var(--line-2); }
.sec-blocked td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.sec-ev.crit td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.sec-ev.warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.sec-detail { font-size: 12px; white-space: pre-wrap; word-break: break-all; max-height: 4.6em; overflow: hidden; }
.sec-path { font-size: 12px; word-break: break-all; white-space: pre-wrap; }
.sec-auto { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; margin-left: 8px; }
.t .sec-path { display: inline-block; min-width: 220px; }   /* 좁은 화면에서 표가 줄어도 경로·예시가 한 글자씩 세로로 서지 않게 (넘치면 .t-wrap 이 가로로 민다) */
.btn.sm, .sel.sm, input.in.sm { padding: 3px 9px; font-size: 12px; height: auto; }
.sm { font-size: 12px; }
.sec-more { margin-top: 10px; }
.sec-more > summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 6px 0; }
.sec-more[open] > summary { margin-bottom: 6px; }
.panel-h .btn.sm { margin-left: 8px; }

/* 알림 설정 — 열 = 채널 */
.al-matrix th:first-child { text-align: left; font-weight: 600; min-width: 150px; white-space: normal; }
.al-matrix thead th:not(:first-child), .al-matrix td { text-align: center; min-width: 130px; }
.al-matrix td .sel.sm { width: auto; max-width: 140px; }
.al-matrix tr.al-sep th { background: var(--panel-2); color: var(--text-2); font-size: 12.5px; }
.al-matrix td.al-off { opacity: .35; }
.al-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.al-quiet { margin-top: 4px; white-space: nowrap; font-size: 12px; }
.al-matrix select:disabled, .al-matrix input:disabled { opacity: .4; }
.al-tabs { display: none; margin-bottom: 10px; width: max-content; }
@media (max-width: 760px) {
  .al-tabs { display: inline-flex; }
  .al-matrix th:first-child { min-width: 0; width: 45%; }
  .al-matrix thead th:not(:first-child), .al-matrix td { min-width: 0; }
  .al-matrix[data-show="telegram"] [data-ch]:not([data-ch="telegram"]),
  .al-matrix[data-show="email"] [data-ch]:not([data-ch="email"]),
  .al-matrix[data-show="push"] [data-ch]:not([data-ch="push"]) { display: none; }
}
.al-here { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 13px; }

/* 아이폰·아이패드 Safari 는 글자가 16px 보다 작은 입력칸을 누르면 화면을 확대하고 그대로 둔다 (로그인 뒤 첫 화면이 커 보임) */
@supports (-webkit-touch-callout: none) {
  select.sel, input.in, textarea.in, select.sel.sm, input.in.sm { font-size: 16px; }
}
