@charset "UTF-8";
/* adsquare admin
 * 레이아웃: 좌측 사이드바(흰색, 로고) + 본문
 * 색은 역할 토큰으로만 쓴다 — 브랜드(UI 강조)와 차트 시리즈 색을 섞지 않는다.
 */
:root {
    color-scheme: light;

    /* UI */
    --brand: #2350ff;
    --brand-600: #1a3fe0;
    --brand-50: #eef2ff;
    --brand-100: #dbe4ff;

    --ink: #141a33;
    --text: #3c4459;
    --muted: #7b8399;
    --line: #e6e9f2;
    --line-strong: #d5dae6;
    --bg: #f4f6fb;
    --surface: #ffffff;

    --danger: #d03b3b;
    --danger-50: #fdecec;

    /* 차트 — dataviz 기본 팔레트 1·2번 슬롯(인접 CVD 검증된 순서) */
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --grid: #e1e0d9;
    --axis: #c3c2b7;

    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 26, 51, .04), 0 4px 16px rgba(20, 26, 51, .04);
    --sidebar-w: 232px;
    --font: 'Paperlogy', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

body.modal-open {
    overflow: hidden;
}

/* ════════════ 레이아웃 ════════════ */
.app {
    min-height: 100vh;
}

.main {
    margin-left: var(--sidebar-w);
    padding: 32px 36px 64px;
    max-width: calc(1440px + var(--sidebar-w));
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--line);
    z-index: 50;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 22px 20px;
}

.brand img {
    height: 30px;
    width: auto;
    display: block;
}

.brand-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--brand);
    background: var(--brand-50);
    padding: 2px 6px;
    border-radius: 4px;
}

.nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 12px;
    margin-bottom: 2px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    transition: background-color .15s, color .15s;
}

.nav a i {
    width: 18px;
    text-align: center;
    color: var(--muted);
    transition: color .15s;
}

.nav a:hover {
    background: var(--bg);
}

.nav a.active {
    background: var(--brand-50);
    color: var(--brand);
    font-weight: 700;
}

.nav a.active i {
    color: var(--brand);
}

.nav-label {
    margin: 18px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--muted);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg);
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.sidebar-user-info strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-info small {
    color: var(--muted);
    font-size: 11px;
}

.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.icon-btn:hover {
    background: rgba(20, 26, 51, .06);
    color: var(--ink);
}

.mobile-bar,
.sidebar-dim {
    display: none;
}

@media (max-width: 960px) {
    .main {
        margin-left: 0;
        padding: 80px 16px 48px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 8px 0 32px rgba(20, 26, 51, .12);
    }

    .sidebar.open {
        transform: none;
    }

    .mobile-bar {
        position: fixed;
        inset: 0 0 auto 0;
        height: 60px;
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        z-index: 40;
    }

    .mobile-bar .brand {
        padding: 0;
    }

    .mobile-bar .brand img {
        height: 24px;
    }

    .sidebar-dim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 26, 51, .35);
        z-index: 45;
    }
}

/* ════════════ 페이지 머리 ════════════ */
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.page-head p {
    margin-top: 6px;
    color: var(--muted);
}

.page-head .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.back-link:hover {
    color: var(--ink);
}

/* ════════════ 버튼 ════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--brand-600);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover:not(:disabled) {
    border-color: var(--muted);
    color: var(--ink);
}

.btn-danger-ghost {
    background: transparent;
    color: var(--danger);
}

.btn-danger-ghost:hover:not(:disabled) {
    background: var(--danger-50);
}

.btn-sm {
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
}

/* ════════════ 카드 ════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card + .card {
    margin-top: 20px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.card-head h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.card-head p {
    color: var(--muted);
    font-size: 13px;
}

.card-body {
    padding: 20px 22px;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.grid-2 > .card + .card {
    margin-top: 0;
}

@media (max-width: 1200px) {
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ════════════ 통계 타일 ════════════ */
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.kpi {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kpi-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.kpi-value {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.kpi-value small {
    margin-left: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.kpi-note {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

/* ════════════ 도구 막대 ════════════ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.toolbar select,
.toolbar input[type=month] {
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    min-width: 140px;
}

.search {
    position: relative;
    flex: 1 1 240px;
    max-width: 360px;
}

.search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
}

.search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
}

.toolbar-count {
    margin-left: auto;
    color: var(--muted);
    font-size: 13px;
}

.toolbar-count strong {
    color: var(--ink);
}

/* ════════════ 표 ════════════ */
.table-wrap {
    overflow-x: auto;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

table.data th {
    padding: 12px 16px;
    background: #fafbfd;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
}

table.data td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

table.data tbody tr:last-child td {
    border-bottom: none;
}

table.data tr.clickable {
    cursor: pointer;
}

table.data tr.clickable:hover td {
    background: #f8faff;
}

table.data tfoot td {
    background: #fafbfd;
    border-top: 1px solid var(--line);
    border-bottom: none;
    font-weight: 700;
    color: var(--ink);
}

table.data .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

table.data .actions {
    text-align: right;
    width: 1%;
}

table.data .actions .btn + .btn {
    margin-left: 4px;
}

table.data strong {
    color: var(--ink);
    font-weight: 600;
}

td .sub {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

td.muted, .muted {
    color: var(--muted);
}

td.mono {
    font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
}

td.empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--muted);
}

td.check {
    width: 1%;
}

.link {
    color: var(--brand);
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

.item-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand);
    font-size: 13px;
}

/* ════════════ 배지 ════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-green { background: #e6f6ec; color: #11693c; }
.badge-amber { background: #fff4db; color: #8a5a00; }
.badge-blue  { background: var(--brand-50); color: var(--brand-600); }
.badge-gray  { background: #eef0f4; color: #5b6275; }
.badge-red   { background: var(--danger-50); color: #a92a2a; }

/* ════════════ 진행률 막대 (meter) ════════════ */
.meter {
    display: inline-block;
    vertical-align: middle;
    width: 96px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-100);
    overflow: hidden;
}

.meter-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
}

.meter-val {
    display: inline-block;
    min-width: 40px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* ════════════ 세로 막대 차트 (월별) ════════════ */
.chart {
    position: relative;
}

.chart-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text);
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* y축 라벨은 plot 왼쪽 여백(--axis-w)에 둔다 — plot 안으로 들어가면 첫 막대에 가린다 */
.chart {
    --axis-w: 58px;
}

.chart-plot {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-items: end;
    height: 220px;
    margin-left: var(--axis-w);
    border-bottom: 1px solid var(--axis);
}

.chart-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.chart-grid div {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--grid);
}

.chart-grid span {
    position: absolute;
    right: calc(100% + 8px);
    white-space: nowrap;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.chart-grid div span {
    right: auto;
    left: calc(var(--axis-w) * -1);
    width: calc(var(--axis-w) - 8px);
    text-align: right;
}

.chart-col {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 100%;
    cursor: default;
}

.chart-col:hover {
    background: rgba(35, 80, 255, .04);
}

.chart-bar {
    width: min(22px, 32%);
    border-radius: 4px 4px 0 0;
    min-height: 1px;
}

.chart-bar.s1 { background: var(--series-1); }
.chart-bar.s2 { background: var(--series-2); }

.chart-x {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    margin-left: var(--axis-w);
    padding-top: 8px;
    font-size: 11px;
    color: var(--muted);
    text-align: center;
}

.chart-tip {
    position: absolute;
    z-index: 5;
    min-width: 150px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    line-height: 1.6;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(20, 26, 51, .2);
    transform: translate(-50%, -100%);
}

.chart-tip b {
    display: block;
    margin-bottom: 2px;
}

.chart-tip i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 2px;
}

.chart-table {
    margin-top: 12px;
    font-size: 12px;
}

.chart-table summary {
    cursor: pointer;
    color: var(--muted);
}

/* ════════════ 목록 (최근 기록 등) ════════════ */
.feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feed li {
    display: flex;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
}

.feed li:last-child {
    border-bottom: none;
}

.feed time {
    flex: none;
    width: 76px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.feed-meta {
    font-size: 12px;
    color: var(--muted);
}

.feed-body {
    color: var(--ink);
}

.feed-empty {
    padding: 40px 22px;
    text-align: center;
    color: var(--muted);
}

/* ════════════ 타임라인 (진행 기록) ════════════ */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0 22px 20px;
}

.timeline li {
    position: relative;
    padding: 0 0 18px 22px;
    border-left: 2px solid var(--line);
}

.timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--surface);
}

.timeline li.is-hidden::before {
    background: var(--muted);
}

.timeline-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.timeline-head .icon-btn {
    width: 26px;
    height: 26px;
    margin-left: auto;
}

.timeline p {
    margin-top: 4px;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}

/* ════════════ 폼 ════════════ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.form-section {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.form-section:first-child {
    margin-top: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.field > span small {
    margin-left: 4px;
    font-weight: 400;
    color: var(--muted);
}

.field .req {
    font-style: normal;
    color: var(--danger);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}

.field textarea {
    resize: vertical;
    line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(35, 80, 255, .12);
}

.field input:disabled {
    background: var(--bg);
    color: var(--muted);
}

.field-hint {
    font-size: 12px;
    color: var(--muted);
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-row input[type=range] {
    flex: 1;
    min-height: auto;
    padding: 0;
    border: none;
    accent-color: var(--brand);
}

.range-row input[type=number] {
    width: 84px;
    flex: none;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 6px;
}

.icon-picker button {
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.icon-picker button[aria-checked="true"] {
    border-color: var(--brand);
    background: var(--brand-50);
    color: var(--brand);
    box-shadow: 0 0 0 2px rgba(35, 80, 255, .2);
}

/* ════════════ 모달 ════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(20, 26, 51, .45);
    animation: fade-in .15s ease;
}

.modal-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 48px);
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(20, 26, 51, .25);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px 24px;
    border-bottom: 1px solid var(--line);
}

.modal-head h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.modal-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}

.spacer {
    flex: 1;
}

@keyframes fade-in {
    from { opacity: 0; }
}

/* ════════════ 토스트 ════════════ */
.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.toast {
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(20, 26, 51, .2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}

.toast.show {
    opacity: 1;
    transform: none;
}

.toast-success::before { content: '✓  '; color: #6ee7a8; }
.toast-error { background: #7f1d1d; }
.toast-error::before { content: '!  '; font-weight: 700; }

/* ════════════ 상세 화면 ════════════ */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.detail-grid > div > .card + .card {
    margin-top: 20px;
}

@media (max-width: 1200px) {
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: #fafbfd;
}

.facts dt {
    font-size: 12px;
    color: var(--muted);
}

.facts dd {
    margin: 2px 0 0;
    font-weight: 700;
    color: var(--ink);
}

.facts .fact-wide {
    grid-column: span 2;
}

.facts .fact-wide dd {
    white-space: nowrap;
}

table.data .actions .icon-btn {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

table.data .actions .icon-btn.danger:hover {
    background: var(--danger-50);
    color: var(--danger);
}

.log-form {
    display: grid;
    gap: 10px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.log-form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.log-form input[type=date] {
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
}

.log-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    resize: vertical;
}

.danger-zone {
    margin-top: 20px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px dashed #f1c4c4;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13px;
}

/* ════════════ 서비스 운영 화면(회원 · 업체 · 결제 · 관리자) ════════════ */
.modal-wide .modal-dialog { width: min(900px, calc(100vw - 32px)); max-width: none; }
.modal-wide .modal-body { max-height: calc(100vh - 190px); overflow: auto; }
.sec { padding: 18px 0 4px; border-top: 1px solid var(--line); margin-top: 18px; }
.sec:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.sec-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sec-title small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.sec-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form input, .inline-form select { height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); min-width: 0; }
.inline-form input { flex: 1 1 220px; }
.inline-form input:focus, .inline-form select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; }
.kv div { min-width: 0; }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.via { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.via span { padding: 1px 6px; border-radius: 5px; background: #eef0f4; font-size: 11.5px; font-weight: 600; color: #5b6275; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bars div { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bars i { display: block; width: 100%; max-width: 28px; min-height: 2px; border-radius: 5px 5px 0 0; background: var(--brand); }
.bars b { margin-bottom: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.bars small { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list small { display: block; font-size: 12.5px; color: var(--muted); }
.mini-list .r { flex: none; text-align: right; font-size: 13px; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.grid-3 > .card + .card { margin-top: 0; }
@media (max-width: 1200px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.tgt-list { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.tgt-list li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.tgt-list li:last-child { border-bottom: 0; }
.tgt-list b { flex: none; width: 130px; font-weight: 600; color: var(--muted); }
.tgt-list span { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }

/* ════════════ 본문 가운데 정렬 ════════════
 * 예전에는 본문이 사이드바 바로 옆(왼쪽)에 붙어 넓은 화면에서 오른쪽이 비었다.
 * 사이드바를 뺀 나머지 폭의 가운데에 본문(최대 1280px)을 둔다 */
.main { max-width: none; }
.main > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
