/* ---- 00-tokens.css ---- */
/*
 * 엔터플렉스 중앙서버 관리자 콘솔
 * 색·글꼴·반경은 `/` 메인(central-quasar.css `.qz-site`)의 값을 그대로 쓴다.
 * 관리 화면이라 바꾼 것: 흐린 글자 #888 → #959595(작은 글자 4.5:1), 폭 1170 고정 → 1440 유동.
 */
:root {
    color-scheme: dark;
    --bg: #272727;
    --bg-deep: #1d1d1d;
    --bg-black: #171717;
    --bg-hover: #2f2f2f;
    --bg-soft: rgba(255, 255, 255, .025);
    --line: #444;
    --line-soft: rgba(68, 68, 68, .6);
    --line-faint: #363636;
    --text: #ddd;
    --text-strong: #fff;
    --dim: #aaa;
    --muted: #959595;
    --placeholder: #7d7d7d;
    --accent: #ff9200;
    --accent-hover: #ffa32b;
    --accent-strong: #ff5500;
    --accent-ink: #272727;
    --accent-wash: rgba(255, 146, 0, .13);
    --accent-line: rgba(255, 146, 0, .42);
    --accent-text: #ffb24d;
    --gold: #ffd650;
    --blue: #85c1ff;
    --green: #84d000;
    --red: #ff5a5a;
    --chip: #2b2e32;

    --ok: #84d000;
    --ok-wash: rgba(132, 208, 0, .12);
    --ok-line: rgba(132, 208, 0, .36);
    --ok-text: #b9e66b;
    --warn: #ffd650;
    --warn-wash: rgba(255, 214, 80, .12);
    --warn-line: rgba(255, 214, 80, .38);
    --warn-text: #ffe08a;
    --danger: #ff5a5a;
    --danger-wash: rgba(255, 90, 90, .12);
    --danger-line: rgba(255, 90, 90, .4);
    --danger-text: #ffa3a3;
    --info: #85c1ff;
    --info-wash: rgba(133, 193, 255, .12);
    --info-line: rgba(133, 193, 255, .36);
    --info-text: #bcd9ff;

    /* 배너 계열 — .qz-top-banner / .qz-auth-head 의 보라→남색 + 주황 빛 */
    --band-1: #2f2440;
    --band-2: #241d33;
    --band-3: #1b1b26;
    --band-line: #3a3348;

    /* 차트(dataviz 기준 팔레트 어두운 모드 1~3번, #272727 위 검증 통과) */
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --grid-line: #353535;
    --axis-line: #4a4a4a;

    --radius: 10px;
    --radius-sm: 8px;
    --radius-lg: 14px;
    --shadow-pop: 0 20px 44px rgba(0, 0, 0, .58);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, .32);
    --shell: 1440px;
    --gutter: 24px;
    --header-h: 60px;
    --menubar-h: 48px;

    /* 메인 사이트 머리띠 사진 — 머리띠와 로그인 배경이 함께 쓴다 */
    --header-img: url("/media/images/header/enple-pc-cafe-20260911.webp");

    --font: NanumBarunGothic, "Nanum Barun Gothic", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    --mono: "Cascadia Mono", "D2Coding", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--menubar-h) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 20px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

code, kbd, .mono {
    font-family: var(--mono);
    font-size: 12px;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;
    background: var(--bg-deep);
    color: var(--dim);
    font-size: 11px;
    line-height: 1;
}

[hidden] {
    display: none !important;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

::selection {
    background: rgba(255, 146, 0, .35);
    color: #fff;
}

/* 스크롤바는 메인 사이트처럼 눈에 덜 띄게 */
* {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4a transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border: 3px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.t-muted { color: var(--muted); }
.t-dim { color: var(--dim); }
.t-strong { color: var(--text-strong); }
.t-ok { color: var(--ok-text); }
.t-warn { color: var(--warn-text); }
.t-danger { color: var(--danger-text); }
.t-info { color: var(--info-text); }
.t-accent { color: var(--accent-text); }
.t-small { font-size: 12px; line-height: 18px; }
.t-micro { font-size: 11px; line-height: 16px; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ---- 10-shell.css ---- */
/* ------------------------------------------------------------ shell */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* 머리띠 — 메인 사이트 최상단 띠처럼 매장 사진을 어둡게 깐다(높이만 60px 로 줄임). */
.ax-header {
    position: relative;
    z-index: 40;
    background-color: #211c19;
    background-image:
        linear-gradient(0deg, rgba(39, 39, 39, .96) 0%, rgba(24, 24, 24, .72) 100%),
        linear-gradient(90deg, rgba(16, 19, 23, .5), rgba(16, 19, 23, .2) 55%, rgba(16, 19, 23, .55)),
        var(--header-img);
    background-size: cover;
    background-position: center 43%;
}

.ax-header-row {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text);
    font-size: 20px;
}

.icon-btn:hover {
    background: var(--line-soft);
    color: #fff;
}

.icon-btn[aria-expanded="true"] {
    background: var(--line-soft);
    color: #fff;
}

.icon-btn .count-dot {
    position: absolute;
    top: 5px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px #222;
}

.ax-menu-toggle {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    height: 36px;
}

/* 로고는 검은 타일 + 빨간 칸이라 어두운 바탕에서 안 보인다 — 밝은 타일 위에 얹는다. */
.brand img {
    width: 30px;
    height: 30px;
    padding: 3px;
    border-radius: 8px;
    background: #f2f2f2;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-copy strong {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 20px;
    background: linear-gradient(90deg, #ffb43c, #ff9200 45%, #ff6a00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    font-size: 10px;
    line-height: 12px;
    letter-spacing: .22em;
    color: var(--muted);
}

.brand-badge {
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    border: 1px solid var(--accent-line);
    background: var(--accent-wash);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* 전역 검색 — .qz-search 와 같은 모양, 누르면 명령 창이 열린다 */
.ax-search {
    margin-left: 18px;
    width: 340px;
    flex: 0 1 340px;
    min-width: 0;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 12px;
    border-radius: 10px;
    background: var(--line-soft);
    color: #bbb;
    font-size: 13px;
    text-align: left;
}

.ax-search:hover {
    background: rgba(80, 80, 80, .7);
    color: #fff;
}

.ax-search i {
    font-size: 17px;
    color: var(--muted);
}

.ax-search span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: .85;
}

.ax-header-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pop-anchor {
    position: relative;
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    margin-left: 6px;
    padding: 0 10px 0 5px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(23, 23, 23, .55);
    text-align: left;
}

.account-chip:hover,
.account-chip[aria-expanded="true"] {
    border-color: var(--accent);
}

.avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    background: linear-gradient(140deg, #ffb43c, #ff6a00);
    color: #272727;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar.lg {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 18px;
}

.avatar.blue {
    background: linear-gradient(140deg, #9fd0ff, #4f8fe0);
}

.avatar.green {
    background: linear-gradient(140deg, #c9f07a, #6fb000);
}

.avatar.muted {
    background: #3a3a3a;
    color: #bbb;
}

.account-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.account-meta b {
    font-size: 13px;
    line-height: 16px;
    color: #fff;
    white-space: nowrap;
}

.account-meta small {
    font-size: 11px;
    line-height: 14px;
    color: var(--muted);
    white-space: nowrap;
}

.account-meta small .num {
    color: var(--dim);
}

/* 메뉴 띠 — .qz-main-menu 처럼 선택 항목은 주황 알약 + 어두운 글자 */
.ax-menubar {
    position: sticky;
    top: 0;
    z-index: 35;
    background: var(--bg);
    border-bottom: 1px solid #333;
}

.ax-menubar.is-stuck {
    box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}

.menubar-row {
    height: var(--menubar-h);
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1 1 auto;
}

.main-menu::-webkit-scrollbar {
    display: none;
}

.main-menu a {
    flex: 0 0 auto;
    height: 38px;
    min-width: 104px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    white-space: nowrap;
}

.main-menu a i {
    font-size: 17px;
    color: var(--dim);
}

.main-menu a:hover {
    background: var(--line-soft);
    color: #fff;
}

.main-menu a.is-active {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

.main-menu a.is-active i {
    color: var(--accent-ink);
}

.main-menu a.is-active:hover {
    background: var(--accent-hover);
}

.menu-count {
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(255, 85, 0, .2);
    color: #ffb08a;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.main-menu a.is-active .menu-count {
    background: rgba(39, 39, 39, .22);
    color: #272727;
}

/* 좁은 화면에서만: 현재 위치 ▾ 펼침 메뉴 */
.menubar-current {
    display: none;
    height: 38px;
    padding: 0 12px;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
}

.menubar-current b {
    font-weight: 700;
}

.menu-sheet {
    left: 0;
    right: auto;
    width: min(320px, calc(100vw - 24px));
}

.menu-sheet .menu-list a.is-current {
    background: var(--accent-wash);
    color: #fff;
    font-weight: 700;
}

.menu-sheet .menu-list a.is-current i {
    color: var(--accent);
}

.menu-sheet .menu-list a.sub {
    padding-left: 22px;
    height: 34px;
    color: var(--dim);
}

.menubar-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
}

.menubar-tools a,
.menubar-tools button {
    height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    color: var(--dim);
    font-size: 13px;
    white-space: nowrap;
}

.menubar-tools a:hover,
.menubar-tools button:hover {
    background: var(--line-soft);
    color: #fff;
}

.menubar-tools i {
    font-size: 16px;
}

/* 최근 작업 줄 — 메인 사이트 "최근 방문"(.qz-recent) 과 같은 모양, 이 브라우저에만 저장 */
.recent-row {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #333;
}

.recent-mark {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #272727;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recent-label {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--dim);
}

.recent-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 12px;
    border-left: 1px solid #3a3a3a;
    overflow: hidden;
}

.recent-track a {
    flex: 0 0 auto;
    height: 22px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 11px;
    background: var(--chip);
    color: var(--dim);
    font-size: 12px;
    white-space: nowrap;
}

.recent-track a i {
    font-size: 12px;
    color: var(--muted);
}

.recent-track a:hover {
    color: #fff;
}

.recent-empty {
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------ page head */

.page {
    padding-top: 20px;
    padding-bottom: 72px;
}

.crumb {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    font-size: 12px;
    color: var(--muted);
}

.crumb i {
    font-size: 14px;
}

.crumb a:hover {
    color: var(--accent);
}

.crumb strong {
    font-weight: 400;
    color: var(--dim);
}

.page-head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 18px;
}

.page-head-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #fff;
}

.page-desc {
    margin-top: 4px;
    font-size: 13px;
    line-height: 20px;
    color: var(--dim);
}

.page-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 2단 알약 탭 — .qz-tabs 와 같은 모양(선택 = 밝은 알약) */
.subnav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: -4px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-faint);
    overflow-x: auto;
    scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav a {
    flex: 0 0 auto;
    height: 32px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.subnav a:hover {
    color: var(--text);
}

.subnav a.is-active {
    background: var(--text);
    color: #272727;
    font-weight: 700;
}

.subnav a .tab-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 85, 0, .2);
    color: #ffb08a;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.subnav a.is-active .tab-count {
    background: rgba(39, 39, 39, .16);
    color: #272727;
}

/* ------------------------------------------------------------ footer */

.ax-footer {
    border-top: 1px solid #333;
    background: var(--bg-black);
    color: var(--muted);
    font-size: 12px;
}

.ax-footer .shell {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ax-footer .foot-links {
    display: flex;
    gap: 14px;
    margin-left: auto;
}

.ax-footer a:hover {
    color: var(--accent);
}

.foot-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---- 20-components.css ---- */
/* ------------------------------------------------------------ panel */

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    min-width: 0;
}

.panel.flush {
    padding: 0;
    overflow: hidden;
}

.panel.soft {
    background: var(--bg-soft);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 30px;
    flex-wrap: wrap;
}

.panel.flush > .panel-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-faint);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--text-strong);
}

.panel-title i {
    font-size: 18px;
    color: var(--dim);
}

.panel-sub {
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.panel-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-body {
    margin-top: 14px;
}

.panel.flush > .panel-body {
    margin: 0;
    padding: 16px;
}

.panel-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid var(--line-faint);
    font-size: 12px;
    color: var(--muted);
}

.panel-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.panel-link:hover {
    color: var(--accent);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }

/* ------------------------------------------------------------ buttons */

.btn {
    height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .12s, background-color .12s, color .12s;
}

.btn i {
    font-size: 16px;
}

.btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: #fff;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-ink);
}

.btn-light {
    background: var(--text);
    border-color: var(--text);
    color: #272727;
    font-weight: 700;
}

.btn-light:hover:not(:disabled) {
    background: #fff;
    border-color: #fff;
    color: #272727;
}

.btn-ghost {
    border-color: transparent;
    color: var(--dim);
}

.btn-ghost:hover:not(:disabled) {
    border-color: transparent;
    background: var(--line-soft);
    color: #fff;
}

.btn-danger {
    border-color: var(--danger-line);
    color: var(--danger-text);
}

.btn-danger:hover:not(:disabled) {
    border-color: var(--danger);
    background: var(--danger-wash);
    color: #ffc7c7;
}

.btn-danger-solid {
    background: #d94a4a;
    border-color: #d94a4a;
    color: #fff;
}

.btn-danger-solid:hover:not(:disabled) {
    background: #e85d5d;
    border-color: #e85d5d;
    color: #fff;
}

.btn:disabled {
    opacity: .45;
}

.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 7px;
}

.btn-sm i {
    font-size: 14px;
}

.btn-lg {
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 36px;
    padding: 0;
}

.btn-sm.btn-icon {
    width: 30px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ax-spin .7s linear infinite;
}

@keyframes ax-spin {
    to { transform: rotate(360deg); }
}

/* ------------------------------------------------------------ chips, dots */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--dim);
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    vertical-align: middle;
}

.chip i {
    font-size: 12px;
}

.chip.ok { border-color: var(--ok-line); background: var(--ok-wash); color: var(--ok-text); }
.chip.warn { border-color: var(--warn-line); background: var(--warn-wash); color: var(--warn-text); }
.chip.danger { border-color: var(--danger-line); background: var(--danger-wash); color: var(--danger-text); }
.chip.info { border-color: var(--info-line); background: var(--info-wash); color: var(--info-text); }
.chip.accent { border-color: var(--accent-line); background: var(--accent-wash); color: var(--accent-text); }
.chip.solid { border-color: var(--text); background: var(--text); color: #272727; }

.chip.sq {
    border-radius: 5px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    line-height: 16px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--muted);
}

.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(132, 208, 0, .16); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(255, 214, 80, .14); }
.dot.danger { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 90, 90, .16); }
.dot.info { background: var(--info); }
.dot.off { background: #5a5a5a; }

.dot.live {
    animation: ax-pulse 2.2s ease-in-out infinite;
}

@keyframes ax-pulse {
    50% { box-shadow: 0 0 0 6px rgba(132, 208, 0, 0); }
}

.state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    white-space: nowrap;
}

.state small {
    color: var(--muted);
    font-size: 12px;
}

.label-tag {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 4px;
    border-radius: 5px;
    background: var(--chip);
    color: var(--dim);
    font-size: 10px;
    line-height: 16px;
    white-space: nowrap;
}

.id-text {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    letter-spacing: -.01em;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 13px;
    vertical-align: middle;
}

.copy-btn:hover {
    background: var(--line-soft);
    color: #fff;
}

/* ------------------------------------------------------------ filter chips (.qz-quick 모양) */

.filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* 툴바 안 flex 항목 — min-width:auto 로 두면 좁은 화면에서 줄어들지 않고 페이지 폭을 밀어낸다(모바일 서랍 위치가 어긋났던 원인). */
    min-width: 0;
    max-width: 100%;
}

.fchip {
    height: 32px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--dim);
    font-size: 13px;
    white-space: nowrap;
}

.fchip i {
    font-size: 14px;
}

.fchip:hover {
    border-color: var(--accent);
    color: #fff;
}

.fchip .fchip-count {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.fchip.is-active {
    background: var(--text);
    border-color: var(--text);
    color: #272727;
    font-weight: 700;
}

.fchip.is-active .fchip-count {
    color: #555;
}

.fchip.alert .fchip-count {
    color: #ffb08a;
    font-weight: 700;
}

.fchip.alert.is-active .fchip-count {
    color: #b54400;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.toolbar .spacer {
    min-width: 8px;
}

.toolbar > * {
    min-width: 0;
}

/* ------------------------------------------------------------ form controls */

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field + .field,
.field + .field-row,
.field-row + .field,
.field-row + .field-row {
    margin-top: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field-row > .field {
    margin-top: 0;
}

.field-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.field-label .opt {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
}

.field-help {
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.field-help.warn {
    color: var(--warn-text);
}

.field-error {
    font-size: 12px;
    line-height: 18px;
    color: var(--danger-text);
}

.input {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
    min-width: 0;
    transition: border-color .12s, box-shadow .12s;
}

.input > i {
    flex: 0 0 auto;
    font-size: 16px;
    color: var(--muted);
}

.input input,
.input select {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    border: 0;
    outline: none;
    background: none;
    color: var(--text);
    font-size: 14px;
}

.input input::placeholder,
.textarea::placeholder {
    color: var(--placeholder);
}

.input .suffix {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
}

.input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 146, 0, .14);
}

.input:focus-within > i {
    color: var(--accent);
}

.input.is-error {
    border-color: var(--danger);
}

.input.is-readonly {
    background: transparent;
    border-style: dashed;
}

.input.is-readonly input {
    color: var(--dim);
}

.input.is-disabled {
    opacity: .5;
}

.input.lg {
    height: 48px;
    padding: 0 14px;
}

.input.lg input {
    height: 46px;
}

.input.sm {
    height: 34px;
}

.input.sm input,
.input.sm select {
    height: 32px;
    font-size: 13px;
}

.input select {
    appearance: none;
    cursor: pointer;
    padding-right: 18px;
    background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%);
    background-position: calc(100% - 7px) 50%, calc(100% - 2px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.input select option {
    background: #1d1d1d;
    color: var(--text);
}

.input-btn {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: var(--muted);
    font-size: 16px;
}

.input-btn:hover {
    background: var(--line-soft);
    color: #fff;
}

.textarea {
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
    color: var(--text);
    font-size: 14px;
    line-height: 21px;
    resize: vertical;
}

.textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 146, 0, .14);
}

.search-box {
    width: 300px;
    max-width: 100%;
}

.search-box kbd {
    flex: 0 0 auto;
}

/* 스위치 */
.switch {
    /* 숨긴 input 이 absolute 라 기준을 여기로 잡는다 — 없으면 표의 가로 스크롤 상자를 벗어나 모바일 페이지 폭을 밀어낸다. */
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    min-width: 0;
}

.switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.switch-track {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: #4a4a4a;
    transition: background-color .15s;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    transition: transform .15s;
}

.switch input:checked + .switch-track {
    background: var(--accent);
}

.switch input:checked + .switch-track::after {
    transform: translateX(16px);
    background: #fff;
}

.switch input:focus-visible + .switch-track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.switch input:disabled + .switch-track {
    opacity: .45;
}

.switch-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.switch-text b {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.switch-text small {
    font-size: 12px;
    line-height: 17px;
    color: var(--muted);
}

.switch.sm .switch-track {
    width: 32px;
    height: 18px;
    flex-basis: 32px;
}

.switch.sm .switch-track::after {
    width: 12px;
    height: 12px;
}

.switch.sm input:checked + .switch-track::after {
    transform: translateX(14px);
}

/* 세그먼트 */
.seg {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.seg button {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.seg button:hover {
    color: var(--text);
}

.seg button.is-active {
    background: var(--text);
    color: #272727;
    font-weight: 700;
}

.seg.block {
    display: flex;
}

.seg.block button {
    flex: 1 1 0;
    justify-content: center;
}

/* 체크 */
.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.check input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    border: 1px solid #666;
    border-radius: 5px;
    background: var(--bg-deep);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
}

.check input::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform .1s;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background: #272727;
}

.check input:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.check input:checked::before {
    transform: scale(1);
}

.check input:indeterminate {
    background: var(--accent);
    border-color: var(--accent);
}

.check input:indeterminate::before {
    transform: scale(1);
    clip-path: inset(40% 10% 40% 10%);
}

/* 비밀값 — "저장됨 ••••a1b2 [변경]" */
.secret {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 6px 0 12px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

.secret i {
    font-size: 16px;
    color: var(--ok);
}

.secret.is-empty i {
    color: var(--muted);
}

.secret-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    color: var(--text);
}

.secret-value .mono {
    color: var(--dim);
    letter-spacing: .06em;
}

.secret-meta {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

/* ------------------------------------------------------------ table */

.table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    font-size: 13px;
}

.table th {
    height: 38px;
    padding: 0 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1;
}

.table th.sortable {
    cursor: pointer;
    user-select: none;
}

.table th.sortable:hover {
    color: var(--text);
}

.table th.sortable i {
    font-size: 13px;
    vertical-align: -2px;
}

.table th.is-sorted {
    color: var(--accent-text);
}

.table td {
    height: 46px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line-faint);
    vertical-align: middle;
    color: var(--text);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table .r {
    text-align: right;
}

.table .c {
    text-align: center;
}

.table tr.clickable {
    cursor: pointer;
}

.table tbody tr:hover td {
    background: var(--bg-hover);
}

.table tr.is-selected td {
    background: rgba(255, 146, 0, .07);
}

.table tr.is-selected td:first-child {
    box-shadow: inset 3px 0 0 var(--accent);
}

.table tr.is-muted td {
    color: var(--muted);
}

.cell-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.cell-main b {
    font-weight: 600;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-main small {
    font-size: 11px;
    line-height: 15px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.money.neg {
    color: var(--danger-text);
}

.money.low {
    color: var(--warn-text);
}

.table-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--line-faint);
    font-size: 12px;
    color: var(--muted);
}

.pager {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pager button {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border-radius: 7px;
    color: var(--dim);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.pager button:hover:not(:disabled) {
    background: var(--line-soft);
    color: #fff;
}

.pager button.is-active {
    background: var(--text);
    color: #272727;
    font-weight: 700;
}

.pager button:disabled {
    opacity: .35;
}

/* ------------------------------------------------------------ callouts */

.callout {
    display: flex;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: 13px;
    line-height: 20px;
    color: var(--dim);
}

.callout > i {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 20px;
}

.callout b {
    color: var(--text-strong);
    font-weight: 600;
}

.callout.info { background: var(--info-wash); border-color: var(--info-line); color: var(--info-text); }
.callout.ok { background: var(--ok-wash); border-color: var(--ok-line); color: #cdf08d; }
.callout.warn { background: var(--warn-wash); border-color: var(--warn-line); color: var(--warn-text); }
.callout.danger { background: var(--danger-wash); border-color: var(--danger-line); color: #ffb1b1; }
.callout.accent { background: var(--accent-wash); border-color: var(--accent-line); color: #ffc680; }

.callout .callout-body {
    flex: 1 1 auto;
    min-width: 0;
}

.callout .callout-action {
    flex: 0 0 auto;
    align-self: center;
}

/* ------------------------------------------------------------ meters */

.meter {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(57, 135, 229, .2);
    overflow: hidden;
    min-width: 60px;
}

.meter > span {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 3px;
    background: var(--series-1);
}

.meter.warn {
    background: rgba(255, 214, 80, .18);
}

.meter.warn > span {
    background: var(--warn);
}

.meter.danger {
    background: rgba(255, 90, 90, .18);
}

.meter.danger > span {
    background: var(--danger);
}

.meter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter-row .meter {
    flex: 1 1 auto;
}

.meter-row .num {
    font-size: 12px;
    color: var(--dim);
}

/* ------------------------------------------------------------ key/value */

.kv {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 10px 14px;
    font-size: 13px;
}

.kv dt {
    color: var(--muted);
}

.kv dd {
    color: var(--text);
    min-width: 0;
    overflow-wrap: anywhere;
}

.kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line-faint);
}

.kv-grid > div {
    padding: 10px 12px;
    background: var(--bg-deep);
    min-width: 0;
}

.kv-grid > div > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.kv-grid > div > strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ empty / skeleton */

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 36px 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.empty > i {
    font-size: 30px;
    color: #5a5a5a;
}

.empty b {
    color: var(--dim);
    font-size: 14px;
    font-weight: 600;
}

.skel {
    display: block;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #303030 0%, #3a3a3a 50%, #303030 100%);
    background-size: 200% 100%;
    animation: ax-skel 1.3s ease-in-out infinite;
}

@keyframes ax-skel {
    to { background-position: -200% 0; }
}

.is-refreshing {
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s;
}

/* ------------------------------------------------------------ stat tiles */

.stat {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.stat-label i {
    font-size: 15px;
    color: var(--dim);
}

.stat-value {
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.stat-value small {
    margin-left: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
}

.stat-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    min-height: 18px;
}

.delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 600;
    white-space: nowrap;
}

.delta.up-good { color: var(--ok-text); }
.delta.up-bad { color: var(--danger-text); }
.delta.flat { color: var(--dim); }

/* ------------------------------------------------------------ tabs in drawers/panels */

.tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs button {
    flex: 0 0 auto;
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 15px;
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.tabs button:hover {
    color: var(--text);
}

.tabs button.is-active {
    background: var(--text);
    color: #272727;
    font-weight: 700;
}

.tabs .tab-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 85, 0, .2);
    color: #ffb08a;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}

.tabs button.is-active .tab-count {
    background: rgba(39, 39, 39, .16);
    color: #272727;
}

/* ------------------------------------------------------------ list rows */

.list {
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-faint);
    min-width: 0;
}

.list-row:last-child {
    border-bottom: 0;
}

a.list-row:hover .list-title,
button.list-row:hover .list-title {
    color: #fff;
    text-decoration: underline;
}

button.list-row {
    width: 100%;
    text-align: left;
}

.list-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--chip);
    color: var(--dim);
    font-size: 16px;
}

.list-icon.ok { background: var(--ok-wash); color: var(--ok); }
.list-icon.warn { background: var(--warn-wash); color: var(--warn); }
.list-icon.danger { background: var(--danger-wash); color: var(--danger); }
.list-icon.info { background: var(--info-wash); color: var(--info); }
.list-icon.accent { background: var(--accent-wash); color: var(--accent); }

.list-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-sub {
    font-size: 12px;
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.list-meta {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    text-align: right;
}

/* ------------------------------------------------------------ misc */

.divider {
    height: 1px;
    background: var(--line-faint);
    margin: 18px 0;
    border: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-strong);
}

.section-title .opt {
    font-weight: 400;
    font-size: 12px;
    color: var(--muted);
}

.section-title .tools {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.code-block {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    background: var(--bg-black);
    color: #cfcfcf;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 19px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 320px;
    overflow: auto;
}

.dropzone {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px dashed #5a5a5a;
    border-radius: var(--radius);
    background: var(--bg-soft);
    color: var(--dim);
    font-size: 13px;
    cursor: pointer;
}

.dropzone:hover,
.dropzone.is-over {
    border-color: var(--accent);
    background: var(--accent-wash);
}

.dropzone > i {
    font-size: 26px;
    color: var(--muted);
}

.dropzone small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.logo-tile {
    width: 92px;
    height: 40px;
    flex: 0 0 92px;
    border-radius: 9px;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #222;
    letter-spacing: -.02em;
    overflow: hidden;
}

.kbd-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
}

.note-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #272727;
    font-size: 10px;
    font-weight: 800;
    cursor: help;
    flex: 0 0 18px;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary {
    list-style: none;
}

.new-tag {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 5px;
    background: rgba(133, 193, 255, .14);
    border: 1px solid rgba(133, 193, 255, .36);
    color: var(--info-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* ---- 30-overlays.css ---- */
/* ------------------------------------------------------------ popovers (.qz-noti-pop 모양) */

.popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    width: 360px;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-black);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
    animation: ax-pop-in .12s ease-out;
}

@keyframes ax-pop-in {
    from { opacity: 0; transform: translateY(-4px); }
}

.popover-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-faint);
}

.popover-head b {
    font-size: 14px;
    color: #fff;
}

.popover-head em {
    font-style: normal;
    font-size: 12px;
    color: var(--accent);
}

.popover-head .spacer + * {
    font-size: 12px;
}

.popover-body {
    max-height: 420px;
    overflow-y: auto;
    padding: 4px 0;
}

.pop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 8px 14px;
    text-align: left;
    color: var(--text);
}

.pop-item:hover,
.pop-item:focus-visible {
    background: #232323;
    outline: none;
}

.pop-item .list-copy b {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.pop-item .list-copy small {
    font-size: 12px;
    color: var(--muted);
}

.pop-item .pop-count {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.popover-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    border-top: 1px solid var(--line-faint);
    font-size: 12px;
    color: var(--dim);
}

.popover-foot:hover {
    color: var(--accent);
}

.menu-list {
    padding: 6px;
}

.menu-list a,
.menu-list button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    text-align: left;
}

.menu-list a:hover,
.menu-list button:hover {
    background: #262626;
    color: #fff;
}

.menu-list i {
    font-size: 16px;
    color: var(--dim);
}

.menu-list .ext {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
}

.menu-sep {
    height: 1px;
    margin: 6px 4px;
    background: var(--line-faint);
}

.session-box {
    padding: 14px;
    border-bottom: 1px solid var(--line-faint);
}

.session-box .row + .row {
    margin-top: 8px;
}

/* ------------------------------------------------------------ drawer */

.scrim {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, .5);
    animation: ax-fade .15s ease-out;
}

@keyframes ax-fade {
    from { opacity: 0; }
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 81;
    width: min(640px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--bg-deep);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 48px rgba(0, 0, 0, .5);
    animation: ax-drawer-in .18s ease-out;
}

@keyframes ax-drawer-in {
    from { transform: translateX(24px); opacity: 0; }
}

.drawer-head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--line-faint);
    background:
        radial-gradient(120% 220% at 6% 0%, rgba(255, 146, 0, .16), transparent 55%),
        linear-gradient(90deg, #262033 0%, #1f1b29 50%, #1d1d1d 100%);
}

.drawer-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.drawer-title {
    flex: 1 1 auto;
    min-width: 0;
}

.drawer-title h2 {
    font-size: 19px;
    line-height: 26px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.drawer-title p {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.drawer-head .tabs {
    margin-top: 12px;
}

.drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 18px;
}

.drawer .table th,
.modal .table th {
    background: var(--bg-deep);
}

.drawer-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid var(--line-faint);
    background: var(--bg-black);
}

.drawer-foot .foot-note {
    font-size: 12px;
    color: var(--muted);
    margin-right: auto;
}

.drawer-foot .foot-note.dirty {
    color: var(--accent-text);
}

.danger-zone {
    margin-top: 24px;
    padding: 14px;
    border: 1px solid var(--danger-line);
    border-radius: var(--radius);
    background: rgba(255, 90, 90, .05);
}

.danger-zone .row {
    align-items: flex-start;
}

.danger-zone b {
    display: block;
    font-size: 13px;
    color: var(--danger-text);
}

.danger-zone small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

/* ------------------------------------------------------------ modal */

.modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .58);
    animation: ax-fade .12s ease-out;
}

.modal {
    width: min(540px, 100%);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-deep);
    box-shadow: var(--shadow-pop);
    animation: ax-modal-in .16s ease-out;
    overflow: hidden;
}

.modal.wide {
    width: min(860px, 100%);
}

@keyframes ax-modal-in {
    from { transform: translateY(8px) scale(.98); opacity: 0; }
}

.modal-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px 12px;
}

.modal-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--accent-wash);
    color: var(--accent);
}

.modal-icon.danger {
    background: var(--danger-wash);
    color: var(--danger);
}

.modal-icon.info {
    background: var(--info-wash);
    color: var(--info);
}

.modal-head h2 {
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
    color: #fff;
}

.modal-head p {
    margin-top: 3px;
    font-size: 13px;
    line-height: 20px;
    color: var(--dim);
}

.modal-body {
    padding: 4px 20px 16px;
    overflow-y: auto;
    font-size: 13px;
}

.modal-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--line-faint);
    background: var(--bg-black);
}

.modal-foot .foot-note {
    margin-right: auto;
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------ toast */

.toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ok);
    border-radius: 10px;
    background: var(--bg-black);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    line-height: 19px;
    animation: ax-toast-in .18s ease-out;
}

@keyframes ax-toast-in {
    from { transform: translateY(8px); opacity: 0; }
}

.toast > i {
    font-size: 18px;
    line-height: 19px;
    color: var(--ok);
}

.toast.error { border-left-color: var(--danger); }
.toast.error > i { color: var(--danger); }
.toast.info { border-left-color: var(--info); }
.toast.info > i { color: var(--info); }
.toast.warn { border-left-color: var(--warn); }
.toast.warn > i { color: var(--warn); }

.toast-body {
    flex: 1 1 auto;
    min-width: 0;
}

.toast-body b {
    display: block;
    color: #fff;
    font-weight: 600;
}

.toast-body span {
    color: var(--dim);
}

.toast-body a {
    color: var(--accent);
    text-decoration: underline;
}

.toast .copy-btn {
    flex: 0 0 auto;
}

/* ------------------------------------------------------------ command palette */

.cmdk-wrap {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 12vh 16px 16px;
    background: rgba(0, 0, 0, .55);
    animation: ax-fade .12s ease-out;
}

.cmdk {
    width: min(640px, 100%);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg-black);
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}

.cmdk-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line-faint);
}

.cmdk-input i {
    font-size: 19px;
    color: var(--accent);
}

.cmdk-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: none;
    background: none;
    color: #fff;
    font-size: 16px;
}

.cmdk-input input::placeholder {
    color: var(--placeholder);
}

.cmdk-list {
    overflow-y: auto;
    padding: 6px;
}

.cmdk-group {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .04em;
}

.cmdk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 6px 10px;
    border-radius: 8px;
    text-align: left;
    color: var(--text);
    font-size: 14px;
}

.cmdk-item i {
    font-size: 17px;
    color: var(--dim);
}

.cmdk-item small {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.cmdk-item.is-active {
    background: var(--accent-wash);
    box-shadow: inset 0 0 0 1px var(--accent-line);
    color: #fff;
}

.cmdk-item.is-active i {
    color: var(--accent);
}

.cmdk-item mark {
    background: none;
    color: var(--accent-text);
    font-weight: 700;
}

.cmdk-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 38px;
    padding: 0 14px;
    border-top: 1px solid var(--line-faint);
    font-size: 11px;
    color: var(--muted);
}

/* ------------------------------------------------------------ savebar */

.savebar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 60;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 32px));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 16px;
    border: 1px solid var(--accent-line);
    border-radius: 12px;
    background: rgba(23, 23, 23, .96);
    box-shadow: var(--shadow-pop);
    animation: ax-toast-in .18s ease-out;
}

.savebar > i {
    font-size: 18px;
    color: var(--accent);
}

.savebar-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
}

.savebar-text b {
    color: #fff;
}

.savebar-text small {
    display: block;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 저장 줄이 떠 있으면 마지막 칸이 가려지지 않게 아래 여백을 늘리고, 목업 제어를 위로 비킨다. */
.has-savebar .page {
    padding-bottom: 128px;
}

/* 서랍 탭이 넘치면 오른쪽 끝을 흐리게 — 더 있다는 표시 */
.drawer-head .tabs {
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    padding-right: 24px;
}

/* ---- 40-login.css ---- */
/* ------------------------------------------------------------ login (/login 의 .qz-auth 틀을 따른다) */

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 340px;
    background-image:
        linear-gradient(0deg, #272727 0%, rgba(39, 39, 39, .55) 60%, rgba(24, 24, 24, .35) 100%),
        linear-gradient(90deg, rgba(16, 19, 23, .45), rgba(16, 19, 23, .15) 55%, rgba(16, 19, 23, .5)),
        var(--header-img);
    background-size: cover;
    background-position: center 43%;
    pointer-events: none;
}

.login-shell {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.login-top {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-top .spacer + a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--dim);
}

.login-top .spacer + a:hover {
    color: #fff;
}

.login-card {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(39, 39, 39, .92);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.login-head {
    padding: 26px 28px 24px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(120% 220% at 6% 0%, rgba(255, 146, 0, .3), transparent 58%),
        linear-gradient(90deg, var(--band-1) 0%, var(--band-2) 45%, var(--band-3) 100%);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 13px;
    background: rgba(255, 146, 0, .16);
    border: 1px solid rgba(255, 146, 0, .4);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}

.login-head h1 {
    margin-top: 12px;
    font-size: 27px;
    line-height: 35px;
    font-weight: 700;
    color: #fff;
}

.login-head p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 20px;
    color: var(--dim);
}

.login-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    padding: 26px 28px 28px;
}

.login-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--muted);
}

.login-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-steps .step-no {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.login-steps .is-done .step-no {
    background: var(--ok);
    border-color: var(--ok);
    color: #1b2600;
}

.login-steps .is-current {
    color: var(--text);
    font-weight: 600;
}

.login-steps .is-current .step-no {
    background: var(--accent);
    border-color: var(--accent);
    color: #272727;
}

.login-steps .is-blocked .step-no {
    background: var(--danger-wash);
    border-color: var(--danger-line);
    color: var(--danger-text);
}

.login-steps .step-line {
    flex: 0 0 28px;
    height: 1px;
    background: var(--line);
}

.member-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.member-check.ok {
    border-color: var(--ok-line);
    background: rgba(132, 208, 0, .06);
}

.member-check.bad {
    border-color: var(--danger-line);
    background: rgba(255, 90, 90, .06);
}

.member-check .list-copy b {
    font-size: 14px;
    color: #fff;
}

.member-check .list-copy small {
    font-size: 12px;
    color: var(--muted);
    line-height: 17px;
}

.member-check .btn {
    flex: 0 0 auto;
}

.login-form {
    margin-top: 18px;
    position: relative;
}

.login-form.is-disabled .field {
    opacity: .45;
    pointer-events: none;
}

.login-form .field + .field {
    margin-top: 16px;
}

.caps-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--warn-text);
}

.login-submit {
    margin-top: 20px;
    width: 100%;
    height: 50px;
    font-size: 16px;
}

.login-sub {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

.login-sub a,
.login-sub button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.login-sub a:hover,
.login-sub button:hover {
    color: var(--accent);
}

.login-aside {
    align-self: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(255, 255, 255, .02);
}

.login-aside > b {
    display: block;
    font-size: 14px;
    color: #fff;
}

.login-aside ul {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-aside li {
    display: flex;
    gap: 10px;
}

.login-aside li > i {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 18px;
    color: var(--green);
}

.login-aside li span {
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.login-aside li span b {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.login-aside .aside-foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.login-aside .aside-foot i {
    font-size: 16px;
    color: var(--blue);
}

.login-foot {
    padding: 22px 0 28px;
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

.lock-count {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #fff;
}

/* ---- 50-pages.css ---- */
/* ------------------------------------------------------------ dashboard */

.mock-band {
    margin-bottom: 18px;
}

.todo-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.todo-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
    transition: border-color .12s, background-color .12s, transform .12s;
}

.todo-card:hover {
    border-color: var(--accent);
    background: rgba(255, 146, 0, .04);
}

.todo-card .list-icon {
    grid-row: 1 / span 2;
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    font-size: 19px;
}

.todo-count {
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    color: #fff;
}

.todo-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.todo-sub {
    grid-column: 1 / -1;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-go {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    color: var(--muted);
}

.todo-card:hover .todo-go {
    color: var(--accent);
}

.todo-card.is-zero .todo-count {
    color: var(--muted);
}

.kpi-row .stat-foot .chip + .chip {
    margin-left: 2px;
}

/* chart */
.chart {
    margin-top: 12px;
}

.chart-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--dim);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.chart-plot {
    position: relative;
    min-height: 260px;
}

.chart-plot svg {
    display: block;
    overflow: visible;
}

.chart-plot .bar-hit {
    cursor: default;
    outline: none;
}

.chart-plot .bar-hit.is-hover,
.chart-plot .bar-hit:focus-visible {
    fill: rgba(255, 255, 255, .045);
}

.chart-tip {
    position: absolute;
    z-index: 2;
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-black);
    box-shadow: var(--shadow-soft);
    font-size: 12px;
    pointer-events: none;
}

.tip-head {
    margin-bottom: 6px;
    color: var(--muted);
}

.tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
}

.tip-row b {
    color: #fff;
    min-width: 44px;
    text-align: right;
}

.tip-row span:last-child {
    color: var(--dim);
}

.tip-key {
    width: 12px;
    height: 3px;
    border-radius: 2px;
}

.tip-row.total {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line-faint);
    padding-left: 20px;
}

.chart-table {
    max-height: 280px;
    overflow: auto;
}

.chart-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 14px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line-faint);
}

.chart-summary > div {
    padding: 12px 14px;
    background: var(--bg);
    min-width: 0;
}

.chart-summary > div > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.chart-summary > div > strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.chart-summary strong small {
    font-size: 12px;
    font-weight: 600;
    color: var(--dim);
}

/* ------------------------------------------------------------ list pages */

.list-panel {
    padding: 0;
}

.list-panel .toolbar {
    padding: 14px 16px 0;
    margin-bottom: 12px;
}

.list-panel .table th:first-child,
.list-panel .table td:first-child {
    padding-left: 16px;
}

.list-panel .table th:last-child,
.list-panel .table td:last-child {
    padding-right: 16px;
}

.cell-store {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.store-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #33302b;
    color: #ffc680;
    font-size: 13px;
    font-weight: 700;
}

.approval-queue {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.queue-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

.queue-card .row {
    align-items: flex-start;
}

.queue-card .checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.queue-card .actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.queue-card .actions .btn {
    flex: 1 1 0;
}

/* 서랍 안 구획 */
.dsec + .dsec {
    margin-top: 22px;
}

.dsec-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-strong);
}

.dsec-title i {
    font-size: 16px;
    color: var(--dim);
}

.dsec-title .tools {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line-faint);
    margin-bottom: 20px;
}

.summary-strip > div {
    padding: 12px 14px;
    background: var(--bg-deep);
    min-width: 0;
}

.summary-strip > div > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.summary-strip > div > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-faint);
}

.person-row:last-child {
    border-bottom: 0;
}

.person-row .list-copy b {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.person-row .list-copy small {
    font-size: 12px;
    color: var(--muted);
}

.balance-hero {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    background:
        radial-gradient(120% 200% at 100% 0%, rgba(255, 146, 0, .12), transparent 60%),
        var(--bg-black);
    margin-bottom: 18px;
}

.balance-hero .big {
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    color: #fff;
}

.balance-hero .big.neg {
    color: var(--danger-text);
}

.balance-hero small {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.preview-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-black);
    border: 1px solid var(--line-faint);
    font-size: 13px;
    color: var(--dim);
}

.preview-line b {
    color: #fff;
}

.preview-line i {
    color: var(--muted);
}

.pii {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pii .mono {
    font-size: 13px;
    color: var(--text);
    letter-spacing: .02em;
}

.reveal-banner {
    margin-bottom: 14px;
}

.stepper {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 18px;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    padding-bottom: 18px;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--line-faint);
}

.step:last-child::before {
    display: none;
}

.step-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--bg-deep);
    color: var(--dim);
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.step.is-done .step-no {
    background: var(--ok);
    border-color: var(--ok);
    color: #1b2600;
}

.step.is-current .step-no {
    background: var(--accent);
    border-color: var(--accent);
    color: #272727;
}

.step-body b {
    display: block;
    font-size: 14px;
    color: #fff;
    line-height: 28px;
}

.step-body .step-content {
    margin-top: 6px;
}

.change-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
}

.change-pair .from {
    text-decoration: line-through;
}

.change-pair .to {
    color: var(--accent-text);
    font-weight: 700;
}

/* ------------------------------------------------------------ release */

.release-hero {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--band-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--band-line);
    margin-bottom: 16px;
}

.release-hero > div {
    padding: 14px 16px;
    background:
        radial-gradient(140% 200% at 0% 0%, rgba(255, 146, 0, .1), transparent 60%),
        linear-gradient(120deg, #241f2e, #1e1c26);
    min-width: 0;
}

.release-hero > div > span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.release-hero > div > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.release-hero > div > small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--dim);
}

.release-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.release-steps span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.release-steps .n {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
}

.release-steps .is-on {
    color: var(--text);
}

.release-steps .is-on .n {
    background: var(--accent);
    border-color: var(--accent);
    color: #272727;
}

.release-steps .sep {
    width: 20px;
    height: 1px;
    background: var(--line);
}

.pkg-row.is-held td {
    background: rgba(255, 214, 80, .035);
}

.pkg-changes {
    margin-top: 6px;
    padding-left: 16px;
    list-style: disc;
    font-size: 12px;
    line-height: 18px;
    color: var(--dim);
}

/* 배포 화면 변경사항 접기 — 접힌 줄은 요약 한 줄, 누른 항목 하나만 펼친다(70-release.js releaseDisclosureGroup) */
/* 좌우 -8px: 버튼 안쪽 여백만큼 당겨 글자를 표 머리·앱 칩과 같은 선에 맞춘다(hover 배경만 칸 여백으로 번진다). */
.relnote {
    min-width: 220px;
    margin: 0 -8px;
}

.relnote-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 28px;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: left;
    font-size: 12px;
    line-height: 18px;
    color: var(--text);
}

.relnote-toggle:hover {
    background: var(--bg-hover);
}

.relnote-preview {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.relnote-close {
    flex: 1 1 auto;
    color: var(--muted);
}

.relnote-toggle[aria-expanded="true"] .relnote-preview,
.relnote-toggle[aria-expanded="false"] .relnote-close {
    display: none;
}

.relnote-count {
    flex: none;
    color: var(--muted);
    white-space: nowrap;
}

.relnote-toggle:hover .relnote-count,
.relnote-toggle:hover .relnote-caret {
    color: var(--accent);
}

.relnote-caret {
    flex: none;
    font-size: 16px;
    color: var(--muted);
    transition: transform .15s ease;
}

.relnote-toggle[aria-expanded="true"] .relnote-caret {
    transform: rotate(180deg);
}

.relnote-panel {
    padding: 2px 8px 4px;
}

.relnote-summary {
    font-size: 12px;
    line-height: 18px;
    color: var(--text);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.relnote-panel .pkg-changes {
    overflow-wrap: anywhere;
}

.version-flow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 12px;
    white-space: nowrap;
}

.version-flow .old {
    color: var(--muted);
}

.version-flow .new {
    color: var(--accent-text);
    font-weight: 700;
}

.version-flow i {
    color: var(--muted);
    font-size: 13px;
}

/* 매장 목록의 프로그램 버전 칸 — DB서버·카운터·키오스크 세 줄(이름 | 버전) */
.version-stack {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    column-gap: 8px;
    font-size: 11px;
    line-height: 15px;
    white-space: nowrap;
}

.version-stack .app {
    color: var(--muted);
}

.version-stack .ver {
    font-family: var(--mono);
    color: var(--text);
}

.version-stack .ver small {
    font-family: inherit;
    font-size: 10px;
    color: var(--muted);
}

.version-stack .ver.dim {
    color: var(--muted);
}

/* 뒤처진 버전은 오래된 보고여도 경고색이 이긴다(할 일이 있다는 뜻이므로). */
.version-stack .ver.warn {
    color: var(--warn-text);
    font-weight: 600;
}

/* 매장 서랍의 설치된 프로그램 — 하루 넘게 소식 없는 컴퓨터는 흐리게 */
.version-list .list-row.is-stale {
    opacity: .55;
}

/* 공개 대기 표의 "모두 고르기" 줄 — 표의 고르기 칸과 같은 들여쓰기 */
.pick-bar {
    gap: 8px;
    padding: 0 16px 8px;
}

.mirror-table td,
.mirror-table th {
    height: 36px;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 12px;
    padding-bottom: 18px;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--line-faint);
}

.tl-item:last-child::before {
    display: none;
}

.tl-dot {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    z-index: 1;
}

.tl-item:not(:first-child) .tl-dot {
    border-color: #5a5a5a;
}

.tl-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.tl-head b {
    color: #fff;
}

.tl-pkgs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tl-summary {
    margin-top: 6px;
    font-size: 12px;
    line-height: 18px;
    color: var(--dim);
}

.result-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    background: var(--bg-black);
}

.result-step > i {
    font-size: 18px;
}

.result-step.ok > i { color: var(--ok); }
.result-step.fail > i { color: var(--danger); }
.result-step.wait > i { color: var(--muted); }

.result-step .list-copy b {
    font-size: 13px;
    color: #fff;
}

.result-step .list-copy small {
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------ settings */

.settings-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.settings-nav {
    position: sticky;
    top: calc(var(--menubar-h) + 16px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
}

.settings-nav-group {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .04em;
}

.settings-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
}

.settings-nav a i {
    font-size: 16px;
    color: var(--dim);
}

.settings-nav a:hover {
    background: var(--line-soft);
    color: #fff;
}

.settings-nav a.is-active {
    background: var(--accent-wash);
    box-shadow: inset 0 0 0 1px var(--accent-line);
    color: #fff;
    font-weight: 700;
}

.settings-nav a.is-active i {
    color: var(--accent);
}

.settings-nav a .dot {
    margin-left: auto;
}

.settings-select {
    display: none;
}

.settings-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    background: var(--accent-wash);
    border: 1px solid var(--accent-line);
}

.settings-head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #fff;
}

.settings-head p {
    margin-top: 2px;
    font-size: 13px;
    color: var(--dim);
}

.settings-head .page-actions {
    margin-left: auto;
}

.set-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.set-card + .set-card {
    margin-top: 16px;
}

.set-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-faint);
}

.set-card-head h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.set-card-head p {
    font-size: 12px;
    color: var(--muted);
}

.set-card-head .tools {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.set-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-faint);
    align-items: start;
}

.set-row:last-child {
    border-bottom: 0;
}

.set-row-label b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 20px;
}

.set-row-label small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 17px;
    color: var(--muted);
}

.set-row-control {
    min-width: 0;
    max-width: 520px;
}

.set-row-control.wide {
    max-width: none;
}

.set-row.is-changed .set-row-label b::after {
    content: "변경됨";
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 4px;
    background: var(--accent-wash);
    color: var(--accent-text);
    font-size: 10px;
    font-weight: 700;
    vertical-align: 1px;
}

.inline-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.test-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.test-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    background: var(--bg-black);
    font-size: 12px;
    color: var(--dim);
    text-align: center;
}

.test-step i {
    font-size: 20px;
    color: var(--muted);
}

.test-step.ok i { color: var(--ok); }
.test-step.fail i { color: var(--danger); }
.test-step.run i { color: var(--accent); animation: ax-spin 1s linear infinite; }

.phone-preview {
    width: 260px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: #111;
}

.phone-bubble {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: #2e2e33;
    font-size: 13px;
    line-height: 19px;
    color: #eee;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    min-height: 40px;
}

.phone-bubble b {
    display: block;
    margin-bottom: 4px;
}

.byte-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.byte-meter .meter {
    flex: 1 1 auto;
}

.engine-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.engine-tile {
    padding: 12px 14px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    background: var(--bg-black);
}

.engine-tile > span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.engine-tile > strong {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 14px;
    color: #fff;
}

.audio-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line-faint);
    border-radius: 24px;
    background: var(--bg-black);
}

.audio-mock .meter {
    flex: 1 1 auto;
}

.riot-queue {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}

.queue-store {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    text-align: left;
}

.queue-store + .queue-store {
    margin-top: 8px;
}

.queue-store:hover {
    border-color: var(--line);
    background: var(--bg-hover);
}

.queue-store.is-active {
    border-color: var(--accent-line);
    background: var(--accent-wash);
}

.queue-store b {
    font-size: 13px;
    color: #fff;
}

.queue-store small {
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------------------------------------ content */

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.title-input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.title-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 146, 0, .14);
}

.quill-mock {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
    overflow: hidden;
}

.quill-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 6px 8px;
    border-bottom: 1px solid var(--line-faint);
    background: #202020;
}

.quill-toolbar button {
    width: 32px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--dim);
    font-size: 16px;
}

.quill-toolbar button:hover,
.quill-toolbar button.is-on {
    background: var(--line-soft);
    color: #fff;
}

.quill-toolbar .sep {
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: var(--line);
}

.quill-body {
    min-height: 360px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 26px;
    color: #e6e6e6;
    outline: none;
}

.quill-body h2 {
    margin: 4px 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: #fff;
}

.quill-body p + p,
.quill-body ul + p,
.quill-body p + ul {
    margin-top: 10px;
}

.quill-body ul {
    list-style: disc;
    padding-left: 22px;
}

.quill-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-top: 1px solid var(--line-faint);
    font-size: 12px;
    color: var(--muted);
}

.counter-preview {
    border: 1px solid #3b3b3b;
    border-radius: 12px;
    background: #f4f5f7;
    color: #222;
    overflow: hidden;
}

.counter-preview-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #2b3544;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.counter-preview-body {
    padding: 12px;
    font-size: 12px;
    line-height: 18px;
}

.counter-preview-body b {
    display: block;
    font-size: 13px;
    color: #111;
    margin-bottom: 4px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.cat-chip.notice { background: rgba(133, 193, 255, .14); color: #bcd9ff; }
.cat-chip.update { background: rgba(132, 208, 0, .14); color: #b9e66b; }
.cat-chip.urgent { background: rgba(255, 90, 90, .16); color: #ffa3a3; }
.cat-chip.maintenance { background: rgba(255, 214, 80, .14); color: #ffe08a; }
.cat-chip.event { background: rgba(255, 146, 0, .16); color: #ffb24d; }
.cat-chip.qna { background: #2b2e32; color: #bbb; }

.paid-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius);
    text-align: left;
}

.company-item:hover {
    border-color: var(--line);
    background: var(--bg-hover);
}

.company-item.is-active {
    border-color: var(--accent-line);
    background: var(--accent-wash);
}

.company-item.is-off {
    opacity: .6;
}

.company-item .list-copy b {
    font-size: 13px;
    color: #fff;
}

.company-item .list-copy small {
    font-size: 11px;
    color: var(--muted);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: left;
    background: var(--bg-soft);
}

.game-card:hover {
    border-color: var(--accent);
}

.game-card.is-off {
    opacity: .6;
}

.game-card .row {
    align-items: center;
}

.game-card b {
    font-size: 14px;
    color: #fff;
}

.game-detect {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--dim);
}

.game-detect > span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.game-detect i {
    color: var(--muted);
}

.game-detect .mono {
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------ monitor */

.source-chips .fchip b {
    font-weight: 700;
}

.error-group-count {
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: var(--danger-wash);
    color: var(--danger-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.result-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---- 90-responsive.css ---- */
/* ------------------------------------------------------------ 반응형 */

@media (max-width: 1280px) {
    .todo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-main-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .release-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .ax-search {
        width: 260px;
        flex-basis: 260px;
    }
}

@media (max-width: 1100px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .settings-nav {
        display: none;
    }

    .settings-select {
        display: block;
        margin-bottom: 16px;
    }

    .paid-layout,
    .riot-queue,
    .editor-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .engine-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .set-row {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    :root {
        --gutter: 16px;
    }

    .main-menu,
    .menubar-tools span,
    .brand-badge,
    .account-meta,
    .ax-search kbd,
    .ax-search span {
        display: none;
    }

    .menubar-current {
        display: inline-flex;
    }

    .menubar-row {
        justify-content: space-between;
    }

    .ax-search {
        width: 40px;
        flex: 0 0 40px;
        margin-left: 4px;
        padding: 0;
        justify-content: center;
    }

    .account-chip {
        padding: 0 4px;
        border-radius: 50%;
    }

    .todo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        justify-content: flex-start;
    }

    .release-steps {
        display: none;
    }

    .chart-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .page {
        padding-top: 14px;
    }

    .page-title {
        font-size: 21px;
        line-height: 28px;
    }

    .recent-row {
        display: none;
    }

    .toolbar {
        gap: 8px;
    }

    .toolbar .spacer {
        display: none;
    }

    .search-box,
    .toolbar > .input {
        width: 100%;
        flex: 1 1 100%;
    }

    .list-panel .toolbar {
        padding: 12px 12px 0;
    }

    .filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        max-width: 100%;
        padding-bottom: 2px;
    }

    .filters::-webkit-scrollbar {
        display: none;
    }

    .fchip {
        flex: 0 0 auto;
    }

    .todo-grid {
        gap: 10px;
    }

    .todo-card {
        padding: 12px;
    }

    .todo-sub {
        white-space: normal;
    }

    .grid-4 {
        gap: 10px;
    }

    .stat-value {
        font-size: 22px;
    }

    .kv-grid,
    .summary-strip,
    .field-row,
    .field-row.three,
    .inline-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .set-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .set-card-head {
        padding: 14px;
        flex-wrap: wrap;
    }

    .settings-head {
        flex-wrap: wrap;
    }

    .settings-head .page-actions {
        margin-left: 0;
        width: 100%;
    }

    .test-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .engine-tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .release-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .chart-summary strong {
        font-size: 16px;
    }

    .drawer-head {
        padding: 12px 14px 10px;
    }

    .drawer-body {
        padding: 14px;
    }

    .drawer-foot {
        padding: 10px 14px;
    }

    .drawer-title h2 {
        font-size: 17px;
        line-height: 24px;
    }

    .modal-wrap {
        padding: 10px;
        align-items: flex-end;
    }

    .modal {
        max-height: calc(100vh - 20px);
    }

    .modal-head {
        padding: 16px 16px 10px;
    }

    .modal-body {
        padding: 4px 16px 14px;
    }

    .modal-foot {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .modal-foot .foot-note {
        width: 100%;
    }

    .login-head {
        padding: 20px 18px 18px;
    }

    .login-head h1 {
        font-size: 23px;
        line-height: 30px;
    }

    .login-body {
        padding: 18px;
        gap: 18px;
    }

    .login-top .spacer + a span,
    .login-top .brand-badge {
        display: none;
    }

    .member-check {
        flex-wrap: wrap;
    }

    .member-check .list-copy {
        flex: 1 1 calc(100% - 50px);
    }

    .member-check .btn {
        margin-left: 42px;
    }

    .ax-footer .foot-links {
        margin-left: 0;
    }

    .savebar {
        bottom: 10px;
    }

    .savebar-text small {
        display: none;
    }

    .toasts {
        right: 10px;
        bottom: 60px;
        width: calc(100vw - 20px);
    }

    .grid[style*="300px"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .phone-preview {
        width: 100%;
    }
}

/* ---- 95-console.css ---- */
/* ------------------------------------------------------------ 실제 콘솔에서 더한 것(목업에 없던 상태) */

.boot-splash {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--dim);
    background:
        linear-gradient(180deg, rgba(23, 23, 23, .82), rgba(39, 39, 39, .96) 420px),
        var(--header-img) center top / cover no-repeat,
        var(--bg);
}

/* 대시보드 — 매장별 크레딧(누적 사용 상위·잔액 낮은 매장) */
.dash-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 12px;
}

.rank-list {
    display: flex;
    flex-direction: column;
}

.rank-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) minmax(60px, 34%) 76px;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 6px 4px;
    border-bottom: 1px solid var(--line-faint);
    border-radius: 6px;
    text-align: left;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row:hover {
    background: var(--bg-hover);
}

.rank-no {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.rank-name {
    color: var(--text);
}

.rank-value {
    text-align: right;
    color: var(--text-strong);
}

.todo-card.is-loading {
    pointer-events: none;
}

@media (max-width: 900px) {
    .dash-split {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 공지 편집기 — Quill(테마 없이 core)을 목업 모양에 맞춘다. quill.snow.css 가 나중에 붙어도 이기도록 선택자를 좁힌다. */
.quill-toolbar button.ql-active {
    background: var(--line-soft);
    color: #fff;
}

.quill-mock .quill-body.ql-container {
    min-height: 0;
    padding: 0;
    border: 0;
    height: auto;
    font-family: var(--font);
    font-size: 15px;
}

.quill-mock .quill-body.ql-container .ql-editor {
    min-height: 360px;
    padding: 16px 18px;
    line-height: 26px;
    color: #e6e6e6;
}

.quill-mock .quill-body .ql-editor.ql-blank::before {
    left: 18px;
    right: 18px;
    color: var(--placeholder);
    font-style: normal;
}

.quill-mock .quill-body.ql-container ul,
.quill-mock .quill-body.ql-container ol {
    list-style: none;
    padding-left: 1.5em;
}

.quill-mock .quill-body .ql-editor h1 { font-size: 22px; font-weight: 700; color: #fff; margin: 6px 0 8px; }
.quill-mock .quill-body .ql-editor h2 { font-size: 19px; font-weight: 700; color: #fff; margin: 4px 0 8px; }
.quill-mock .quill-body .ql-editor h3 { font-size: 16px; font-weight: 700; color: #fff; margin: 4px 0 6px; }

.quill-mock .quill-body .ql-editor a {
    color: var(--accent-text);
    text-decoration: underline;
}

.quill-mock .quill-body .ql-editor blockquote {
    margin: 6px 0;
    padding-left: 12px;
    border-left: 3px solid var(--line);
    color: var(--dim);
}

.quill-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 360px;
    padding: 16px 18px;
    color: var(--muted);
}

.color-pop {
    width: 212px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--line);
}

.color-swatch:hover,
.color-swatch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

/* 유료게임 — 서버 이미지(게임사 로고·썸네일) */
.logo-tile img {
    max-width: 88%;
    max-height: 82%;
    object-fit: contain;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 연동 설정 */
.settings-tabs {
    margin-top: 0;
}

.set-card-body {
    padding: 16px 18px;
}

.set-card > summary {
    cursor: pointer;
    list-style: none;
}

.set-card > summary::-webkit-details-marker {
    display: none;
}

.sms-test-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.log-message {
    max-width: 340px;
}

.log-toggle {
    max-width: 340px;
    color: var(--text);
    text-align: left;
    white-space: normal;
}

.tts-audio {
    display: block;
    width: 100%;
    max-width: 520px;
    color-scheme: dark;
}

.tts-audio[hidden] {
    display: none;
}

.thumb.thumb-dark {
    background: #2b2e32;
}

.fw-normal { font-weight: 400; }
.pre-wrap { white-space: pre-wrap; }
.break-all { word-break: break-all; }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 200px; min-width: 0; }

@media (max-width: 900px) {
    .sms-test-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 격자 안의 설정 카드는 서로 옆에 놓인다 — 세로로 쌓을 때 주는 위 여백을 없앤다. */
.grid > .set-card + .set-card {
    margin-top: 0;
}

/* 모니터링 */
.list-icon.drawer-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 20px;
    border-radius: 12px;
}

.audit-detail {
    display: block;
    max-width: 420px;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ 매장 원격 업데이트(50-stores.js) */

/* 표 위 선택 줄: 고른 매장이 있을 때만 보인다 */
.selection-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: -4px 0 12px;
    padding: 8px 12px;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--accent-wash);
    font-size: 13px;
}

.selection-bar[hidden] {
    display: none;
}

.selection-bar .spacer {
    flex: 1 1 auto;
}

.selection-bar .selection-names {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 420px;
}

/* 목록 "업데이트" 칸: 채널 칩 아래 원격 업데이트 상태 칩 */
.update-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.remote-app-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.remote-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.remote-mode-help {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--dim);
}

.remote-head {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

/* 원격 업데이트 요청 창: 진행 방식(동시 수·자동 멈춤·시작) */
.remote-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.remote-plan-grid .field {
    margin: 0;
}

/* 매장 — 업데이트 관제 */
.upd-card {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upd-card.is-paused {
    border-color: var(--warn-line);
}

.upd-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.upd-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.upd-card-title > b {
    font-size: 15px;
    color: var(--text-strong);
}

.upd-card .callout {
    margin: 0;
}

.upd-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-deep);
    border: 1px solid var(--line-faint);
}

.upd-seg {
    display: block;
    height: 100%;
    min-width: 3px;
}

.upd-seg + .upd-seg {
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, .35);
}

.ph-done { background: var(--ok); }
.ph-partial { background: var(--ok-line); }
.ph-installing { background: var(--accent); }
.ph-downloading { background: var(--info); }
.ph-waiting { background: var(--warn); }
.ph-unknown { background: var(--warn-line); }
.ph-queued { background: #555; }
.ph-scheduled { background: var(--info-line); }
.ph-failed { background: var(--danger); }
.ph-expired { background: var(--danger-line); }
.ph-cancelled { background: #3a3a3a; }
.ph-superseded { background: #303030; }

.upd-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.upd-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--dim);
    font: inherit;
    font-size: 12.5px;
}

.upd-legend-item b {
    color: var(--text-strong);
    font-weight: 700;
}

button.upd-legend-item {
    cursor: pointer;
}

button.upd-legend-item:hover {
    background: var(--bg-hover);
}

button.upd-legend-item.is-active {
    border-color: var(--accent-line);
    background: var(--accent-wash);
    color: var(--accent-text);
}

.upd-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.upd-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.upd-metrics > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid var(--line-faint);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    min-width: 0;
}

.upd-metrics > div > span {
    font-size: 12px;
    color: var(--muted);
}

.upd-metrics > div > strong {
    font-size: 18px;
    color: var(--text-strong);
}

.upd-metrics > div > strong.t-danger {
    color: var(--danger-text);
}

.upd-metrics > div > small {
    font-size: 12px;
    color: var(--dim);
    overflow-wrap: anywhere;
}

.upd-metrics .meter.ok > span {
    background: var(--ok);
}

.upd-actions {
    flex-wrap: wrap;
    gap: 8px;
}

.upd-devices {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.upd-device {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
    color: var(--dim);
    white-space: nowrap;
}

.upd-device.ok { border-color: var(--ok-line); color: var(--ok-text); }
.upd-device.warn { border-color: var(--warn-line); color: var(--warn-text); }
.upd-device.danger { border-color: var(--danger-line); color: var(--danger-text); }
.upd-device.info { border-color: var(--info-line); color: var(--info-text); }
.upd-device.accent { border-color: var(--accent-line); color: var(--accent-text); }

@media (max-width: 900px) {
    .remote-plan-grid,
    .upd-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .remote-plan-grid,
    .upd-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

.upd-versions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0;
    font-size: 12.5px;
    color: var(--dim);
}

.upd-versions > span:first-of-type {
    color: var(--muted);
}

.upd-versions .mono {
    color: var(--text);
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ 매장 서랍 › 원격제어(53-store-remote.js) */

.rsup-cell {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.rsup-cell:hover .chip {
    border-color: var(--line);
    color: var(--text-strong);
}

.rsup-device {
    border-bottom: 1px solid var(--line-faint);
    padding-bottom: 6px;
}

.rsup-device:last-child {
    border-bottom: 0;
}

.rsup-device > .list-row {
    border-bottom: 0;
    flex-wrap: wrap;
}

.rsup-state {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rsup-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: auto;
    gap: 6px;
}

.rsup-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 2px 0 6px 44px;
    padding: 8px 10px;
    border: 1px solid var(--line-faint);
    border-radius: 9px;
    background: var(--bg-soft);
}

.rsup-status.is-open {
    border-color: var(--info-line);
    background: var(--info-wash);
}

.rsup-status-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
}

.rsup-detail,
.rsup-reason {
    overflow-wrap: anywhere;
}

.rsup-reason {
    color: var(--danger-text);
}

/* 새 장비 확인 버튼: 경고 톤(확인 전 장비는 원격제어 버튼이 잠긴다). */
.btn.rsup-confirm {
    color: var(--warn-text);
    background: var(--warn-wash);
    border-color: var(--warn-line);
}

.btn.rsup-confirm:hover:not(:disabled) {
    border-color: var(--warn);
}

@media (max-width: 640px) {
    .rsup-actions {
        margin-left: 44px;
        flex: 1 1 calc(100% - 44px);
        max-width: calc(100% - 44px);
    }

    .rsup-status {
        margin-left: 0;
    }
}

/* ---- 57-admins.css ---- */
/* ------------------------------------------------------------ 관리자 계정(최고관리자 전용) — 넓은 화면은 표, 좁은 화면(≤900px)은 카드 */

.adm-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-faint);
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.adm-summary b {
    color: var(--text-strong);
    font-weight: 600;
}

.adm-notice {
    margin: 12px 16px 0;
}

.adm-panel .table th:first-child,
.adm-panel .table td:first-child {
    padding-left: 16px;
}

.adm-panel .table th:last-child,
.adm-panel .table td:last-child {
    padding-right: 16px;
}

.adm-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.adm-name {
    overflow-wrap: anywhere;
}

.adm-states {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.adm-lock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.adm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.adm-master-row td,
.adm-card.adm-master-row {
    background: rgba(255, 146, 0, .05);
}

.adm-empty {
    border-top: 1px solid var(--line-faint);
}

/* 카드(좁은 화면) — 표와 같은 값·같은 단추 */
.adm-cards {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.adm-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-faint);
}

.adm-card:last-child {
    border-bottom: 0;
}

.adm-card.is-muted {
    color: var(--muted);
}

.adm-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    min-width: 0;
}

.adm-card-body {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 4px 10px;
    margin: 0;
    font-size: 13px;
    line-height: 20px;
}

.adm-card-body dt {
    color: var(--muted);
}

.adm-card-body dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
}

.adm-card.is-muted .adm-card-body dd {
    color: var(--dim);
}

/* 등록·수정·비밀번호 창 */
.adm-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.adm-label-row .field-label {
    flex: 1 1 auto;
    min-width: 0;
}

.adm-pw-group .field + .field {
    margin-top: 14px;
}

.adm-form .field + .field,
.adm-form .field + .adm-pw-group {
    margin-top: 16px;
}

.adm-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    margin-top: 2px;
}

.adm-rules li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 18px;
    color: var(--muted);
}

.adm-rules li i {
    flex: 0 0 auto;
    font-size: 14px;
}

.adm-rules li.is-ok {
    color: var(--ok-text);
}

.adm-gen {
    padding: 10px 12px;
    border: 1px dashed var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-wash);
}

.adm-gen-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.adm-gen-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-text);
}

.adm-gen-value {
    flex: 1 1 160px;
    min-width: 0;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--bg-black);
    color: var(--text-strong);
    font-size: 14px;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
    user-select: all;
}

.adm-gen .field-help {
    margin-top: 6px;
    color: var(--dim);
}

/* 중간 폭(901~1279px): 표의 작업 단추는 아이콘만(이름은 aria-label·title 로 남는다). */
@media (min-width: 901px) and (max-width: 1279px) {
    .adm-table .adm-btn-text {
        display: none;
    }

    .adm-table .adm-actions .btn {
        width: 30px;
        padding: 0;
    }
}

@media (max-width: 900px) {
    .adm-table {
        display: none;
    }

    .adm-cards {
        display: block;
    }
}

@media (max-width: 640px) {
    .adm-summary {
        padding: 10px 14px;
    }

    .adm-notice {
        margin: 10px 14px 0;
    }

    .adm-card {
        padding: 12px 14px;
    }

    .adm-card-body {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .adm-actions {
        justify-content: flex-start;
    }

    .adm-rules {
        grid-template-columns: minmax(0, 1fr);
    }
}
/* 매장 결제 식별정보: 작은 화면에서도 번호와 고정 기준을 함께 읽을 수 있다. */
.payment-identity-cell { display: grid; gap: 5px; min-width: 180px; }
.payment-identity-cell .chip { margin-left: 5px; }
.payment-terminal-list { display: grid; gap: 12px; margin-top: 14px; }
.payment-terminal-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 0; }
.payment-terminal-card.is-changed { border-color: #d99c38; background: rgba(217, 156, 56, .07); }
.payment-terminal-card .row { flex-wrap: wrap; gap: 8px; }
.payment-identity-fields { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 6px 10px; margin: 12px 0; }
.payment-identity-fields dt { color: var(--muted); font-size: 12px; }
.payment-identity-fields dd { margin: 0; overflow-wrap: anywhere; }
.payment-pinned-values { border-top: 1px solid var(--line); padding-top: 10px; }
.payment-alert-state { font-size: 12px; overflow-wrap: anywhere; }
.payment-terminals .field-help, .payment-terminal-card p { overflow-wrap: anywhere; }
:root .store-link-panel { margin-bottom: 20px; }
.store-link-panel > .toolbar, .store-link-panel > .empty-state { padding: 18px; }
.store-link-panel h2 { margin: 0; font-size: 16px; }
.store-link-requests { display: grid; gap: 12px; padding: 0 18px 18px; }
.store-link-request { padding: 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow-wrap: anywhere; }
.store-link-request-title, .store-link-request-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-link-request-actions { justify-content: flex-end; }
.store-link-facts dd { overflow-wrap: anywhere; min-width: 0; }
