/* [AI-GENERATED] 작성일: 2026-10-19 15:20 | 수정일: 2026-10-19 15:20 */
/* inMonitoring 공통 레이아웃·컴포넌트 (제니퍼5 뷰 서버 화면 치수 기준: 툴바 72px, 헤더 56px, 대상 바 32px, 카드 반경 8px) */

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: 12px; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.im-ico { display: block; flex: none; }
[hidden] { display: none !important; }

/* ---------- 셸 ---------- */
.layout-root { display: flex; height: 100vh; min-width: 0; }
.layout-toolbar {
  width: 72px; flex: none; display: flex; flex-direction: column;
  background: var(--bg-toolbar); border-right: 1px solid var(--border); position: relative; z-index: 30;
}
.layout-contents { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

.nav-logo { height: 66px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nav-group { display: flex; flex-direction: column; }
.nav-group.tail { margin-top: auto; padding-bottom: 6px; }
.nav-item {
  height: 57px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: pointer; color: var(--gray-700); background: none; border: 0; padding: 0; width: 72px; position: relative;
}
.nav-item .ico-wrap {
  width: 36px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.nav-item .name { font-size: 11px; color: var(--text-weak); line-height: 13px; white-space: nowrap; }
.nav-item:hover .ico-wrap { background: var(--gray-100); }
.nav-item.selected .ico-wrap { background: var(--primary-weak); color: var(--primary-strong); }
.nav-item.selected .name { color: var(--primary-strong); }
.nav-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.nav-item .badge {
  position: absolute; top: 6px; left: 42px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--red-700); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
}

/* 툴바 오른쪽 패널(대시보드·분석·통계 메뉴 목록 / 알림) */
.nav-panel {
  position: fixed; top: 0; bottom: 0; left: 72px; width: 256px; background: var(--surface-100);
  border-right: 1px solid var(--border); box-shadow: var(--shadow-layer); z-index: 25; display: flex; flex-direction: column;
}
.nav-panel.wide { width: 360px; }
.nav-panel-head { height: 56px; display: flex; align-items: center; padding: 0 16px; font-size: 16px; font-weight: 700; color: var(--text-strong); justify-content: space-between; }
.nav-panel-body { flex: 1; overflow: auto; padding: 4px 12px 16px; }
.nav-panel .grp { font-size: 11px; color: var(--text-faint); margin: 14px 4px 6px; }
.menu-card {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--text);
  border: 1px solid transparent;
}
.menu-card:hover { background: var(--gray-100); text-decoration: none; }
.menu-card.selected { background: var(--primary-weak); color: var(--primary-strong); }
.menu-card .thumb {
  width: 40px; height: 30px; border-radius: 4px; background: var(--gray-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--primary); flex: none;
}
.menu-card .t { font-size: 13px; }
.menu-card .d { font-size: 11px; color: var(--text-faint); margin-top: 2px; }

/* 사용자 메뉴 레이어 */
.user-layer {
  position: fixed; left: 76px; bottom: 10px; width: 220px; background: var(--surface-100); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-layer); z-index: 40; padding: 6px 0;
}
.user-layer .who { padding: 10px 14px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-layer .who b { display: block; font-size: 13px; color: var(--text-strong); }
.user-layer .who span { color: var(--text-faint); font-size: 11px; }
.user-layer button {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px 14px; cursor: pointer; text-align: left;
}
.user-layer button:hover { background: var(--gray-100); }

/* 통합 검색 */
.search-layer-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .2); z-index: 60; display: flex; justify-content: center; padding-top: 12vh; }
.search-layer { width: 520px; max-width: calc(100vw - 32px); background: var(--surface-100); border-radius: 10px; box-shadow: var(--shadow-layer); overflow: hidden; align-self: flex-start; }
.search-layer .inp { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border); color: var(--text-faint); }
.search-layer input { flex: 1; border: 0; outline: 0; height: 48px; font-size: 14px; background: none; color: var(--text-strong); }
.search-layer .res { max-height: 360px; overflow: auto; padding: 6px; }
.search-layer .res .menu-card.active { background: var(--gray-100); }
.search-layer .empty { padding: 20px; text-align: center; color: var(--text-faint); }

/* ---------- 공통 헤더 ---------- */
.common-header {
  height: 56px; flex: none; display: flex; align-items: center; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border);
  background: var(--surface-100); position: relative;
}
.common-header .subject {
  position: absolute; left: 0; right: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--text); pointer-events: none;
}
.common-header .left, .common-header .right { display: flex; align-items: center; gap: 4px; position: relative; z-index: 1; }
.common-header .right { margin-left: auto; }
.hdr-sep { width: 1px; height: 14px; background: var(--border); margin: 0 6px; }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 16px; cursor: pointer; border: 0; background: none;
}
.breadcrumb:hover { background: var(--gray-100); }
.breadcrumb .lbl { font-size: 12px; color: var(--text); }
.breadcrumb .im-ico { color: var(--text-weak); }

/* 대상 바(인스턴스 칩) */
.target-bar {
  height: 32px; flex: none; display: flex; align-items: center; border-bottom: 1px solid var(--border); background: var(--surface-100); padding-left: 12px;
}
.target-bar .chips { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow: hidden; padding-left: 4px; }
.chip {
  height: 24px; padding: 0 10px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--text-weak);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
}
.chip:hover { background: var(--gray-100); }
.chip.on { color: var(--text-strong); }
.chip.off { color: var(--text-faint); text-decoration: line-through; }
.chip.dead { color: var(--red-700); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.target-bar .status {
  display: flex; align-items: center; gap: 10px; padding: 0 10px 0 12px; height: 100%; border-left: 1px solid var(--border); color: var(--text-weak);
}
.target-bar .status .st { display: inline-flex; align-items: center; gap: 4px; }
.target-bar .status .st i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

.im-icon-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-weak); padding: 0; flex: none;
}
.im-icon-btn:hover { background: var(--gray-100); color: var(--text-strong); }
.im-icon-btn.sm { width: 22px; height: 22px; }
.im-icon-btn:disabled { opacity: .4; cursor: default; }

/* 드롭다운 레이어 */
.dropdown {
  position: fixed; min-width: 200px; background: var(--surface-100); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-layer); padding: 6px 0; z-index: 50; max-height: 70vh; overflow: auto;
}
.dropdown .grp { padding: 6px 14px 4px; font-size: 11px; color: var(--text-faint); }
.dropdown .it { display: flex; align-items: center; gap: 8px; padding: 7px 14px; cursor: pointer; white-space: nowrap; }
.dropdown .it:hover { background: var(--gray-100); }
.dropdown .it.sel { color: var(--primary-strong); font-weight: 600; }
.dropdown .it .sub { color: var(--text-faint); margin-left: auto; font-size: 11px; font-weight: 400; }

/* ---------- 페이지 본문 ---------- */
.page { flex: 1; min-height: 0; overflow: auto; position: relative; }
.page-pad { padding: 20px; }

/* 대시보드 퍼센트 그리드 */
.dashboard-content-area { position: absolute; inset: 21px 20px 20px 20px; min-height: 640px; min-width: 900px; }
.widget-cell { position: absolute; padding: 4px; }
.chart-component {
  width: 100%; height: 100%; background: var(--surface-100); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; overflow: hidden;
}
.chart-component .top-icon { height: 30px; flex: none; display: flex; align-items: center; padding: 4px 6px 0 12px; gap: 4px; }
.chart-component .chart-title { font-size: 12px; font-weight: 500; color: var(--text-strong); white-space: nowrap; }
.chart-component .legend { display: flex; align-items: center; gap: 8px; margin-left: 6px; color: var(--text-weak); white-space: nowrap; overflow: hidden; }
.chart-component .legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 3px; vertical-align: 0; }
.chart-component .tools { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--text-weak); }
.chart-component .cur-val { font-size: 12px; color: var(--text); margin-right: 6px; font-variant-numeric: tabular-nums; }
.chart-component .body { flex: 1; min-height: 0; position: relative; }
.chart-component.no-title .top-icon { position: absolute; right: 0; top: 0; z-index: 2; }
.chart-component.no-title { position: relative; }

.im-chart { position: absolute; inset: 0; }
.im-chart-canvas { display: block; }
.im-chart-tip {
  position: absolute; display: none; pointer-events: none; z-index: 5; background: var(--surface-100); border: 1px solid var(--border);
  border-radius: 6px; box-shadow: var(--shadow-layer); padding: 6px 10px; font-size: 11px; white-space: nowrap; color: var(--text);
}
.im-chart-tip .ttl { font-weight: 600; margin-bottom: 4px; color: var(--text-strong); }
.im-chart-tip .row { display: flex; align-items: center; gap: 6px; line-height: 17px; }
.im-chart-tip .row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.im-chart-tip .row .lbl { color: var(--text-weak); margin-right: 8px; }
.im-chart-tip .row b { margin-left: auto; font-weight: 600; }

/* EVENT 위젯 */
.event-widget { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4px 12px 10px; gap: 8px; }
.event-nodes { display: flex; flex-wrap: wrap; gap: 8px; }
.event-node {
  min-width: 66px; height: 32px; padding: 0 14px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: #fff; background: var(--status-normal); cursor: pointer; border: 0; gap: 6px;
}
.event-node.warning { background: var(--status-warning); color: #1c1c1c; }
.event-node.fatal { background: var(--status-fatal); color: #fff; }
.event-node.stopped { background: var(--overlay-red-400); color: var(--red-700); }
.event-node .cnt { font-size: 11px; opacity: .85; }
.event-list { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--border); }
.event-list .ev { display: flex; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed var(--border); cursor: pointer; }
.event-list .ev:hover { background: var(--gray-100); }
.event-list .ev .tm { color: var(--text-faint); font-variant-numeric: tabular-nums; flex: none; }
.event-list .ev .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--status-normal); }
.lv.WARNING { background: var(--status-warning); }
.lv.FATAL { background: var(--status-fatal); }
.lv-badge { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11px; color: #fff; background: var(--status-normal); }
.lv-badge.WARNING { background: var(--status-warning); color: #1c1c1c; }
.lv-badge.FATAL { background: var(--status-fatal); }

/* ---------- 폼·버튼 ---------- */
.im-btn {
  height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-100); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; color: var(--text);
}
.im-btn:hover { background: var(--gray-100); }
.im-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.im-btn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.im-btn.danger { color: var(--red-700); border-color: var(--red-300); }
.im-btn.text { border-color: transparent; background: none; }
.im-btn.text:hover { background: var(--gray-100); }
.im-btn:disabled { opacity: .45; cursor: default; }
.im-btn.sm { height: 24px; padding: 0 8px; font-size: 11px; }

.inp, select.inp, textarea.inp {
  height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 10px; background: var(--surface-100); color: var(--text-strong); outline: 0;
}
textarea.inp { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; font-family: var(--font-mono); }
.inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--overlay-purple-100); }
.inp:disabled { background: var(--gray-100); color: var(--text-faint); }
select.inp { padding-right: 26px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gray-500) 50%), linear-gradient(135deg, var(--gray-500) 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.search-inp { position: relative; display: inline-flex; align-items: center; }
.search-inp .im-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.search-inp .inp { padding-left: 30px; width: 204px; }
label.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
label.chk input { accent-color: var(--primary); margin: 0; }

.form-grid { display: grid; grid-template-columns: 160px minmax(0, 440px); gap: 14px 16px; align-items: center; }
.form-grid > label { color: var(--text); font-weight: 500; }
.form-grid > label.req::after { content: ' *'; color: var(--red-700); }
.form-grid .hint { grid-column: 2; margin-top: -8px; color: var(--text-faint); font-size: 11px; }
.form-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-sec { margin: 0 0 28px; }
.form-sec > h3 { font-size: 14px; color: var(--text-strong); margin: 0 0 14px; font-weight: 700; }
.form-actions { display: flex; gap: 8px; margin-top: 24px; }
.switch { position: relative; display: inline-block; width: 30px; height: 16px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 8px; background: var(--gray-300); transition: .15s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: .15s; }
.switch input:checked + span { background: var(--purple-500); }
.switch input:checked + span::after { left: 16px; background: var(--primary-strong); }
.switch input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 탭 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); flex: none; }
.tabs .tab {
  height: 34px; padding: 0 14px; border: 0; background: none; cursor: pointer; color: var(--text-weak); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs .tab:hover { color: var(--text-strong); }
.tabs .tab.on { color: var(--primary-strong); border-bottom-color: var(--primary); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; }
.seg button { height: 28px; padding: 0 12px; border: 0; background: var(--surface-100); cursor: pointer; border-right: 1px solid var(--border-strong); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--primary-weak); color: var(--primary-strong); font-weight: 600; }

/* ---------- 표 ---------- */
.tbl-wrap { overflow: auto; min-height: 0; }
table.tbl { width: 100%; border-collapse: collapse; table-layout: auto; }
table.tbl th {
  position: sticky; top: 0; z-index: 1; background: var(--gray-100); color: var(--text-weak); font-weight: 600; text-align: left;
  height: 28px; padding: 0 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; user-select: none;
}
table.tbl th.sortable { cursor: pointer; }
table.tbl th.sortable:hover { color: var(--text-strong); }
table.tbl th .arrow { font-size: 9px; margin-left: 3px; color: var(--primary); }
table.tbl td { height: 32px; padding: 0 10px; border-bottom: 1px solid var(--border); white-space: nowrap; color: var(--text); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.c, table.tbl th.c { text-align: center; }
table.tbl td.ell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
table.tbl tbody tr:hover td { background: var(--gray-100); }
table.tbl tbody tr.sel td { background: var(--primary-weak); }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl.dense td { height: 26px; }
table.tbl .empty td { text-align: center; color: var(--text-faint); height: 80px; }
.err-txt { color: var(--red-700); }
.ok-mark { color: var(--green-600); }
.rate-bar { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; width: 100%; }
.rate-bar i { display: inline-block; height: 6px; border-radius: 3px; background: var(--purple-500); min-width: 1px; }

/* ---------- 설정 화면 ---------- */
.settings-wrap { display: flex; flex: 1; min-height: 0; }
.settings-left { width: 232px; flex: none; border-right: 1px solid var(--border); overflow: auto; padding: 24px 0 24px; background: var(--surface-100); }
.settings-left.collapsed { display: none; }
.settings-left .m1 {
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 22px; height: 32px; cursor: pointer; color: var(--text); font-size: 13px;
  border: 0; background: none; width: 100%; text-align: left;
}
.settings-left .m1:hover { color: var(--text-strong); background: var(--gray-100); text-decoration: none; }
.settings-left .m1.on { color: var(--primary-strong); }
.settings-left .m2 { display: block; padding: 0 22px 0 38px; height: 29px; line-height: 29px; color: var(--text-weak); font-size: 13px; cursor: pointer; }
.settings-left .m2:hover { color: var(--text-strong); text-decoration: none; background: var(--gray-100); }
.settings-left .m2.on { color: var(--primary-strong); font-weight: 600; }
.settings-right { flex: 1; min-width: 0; overflow: auto; display: flex; flex-direction: column; }
.settings-title {
  height: 56px; flex: none; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--border); gap: 4px; background: var(--surface-100);
  position: sticky; top: 0; z-index: 3;
}
.settings-title h2 { font-size: 18px; margin: 0; color: var(--text-strong); font-weight: 700; margin-right: auto; }
.settings-title .act { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0 8px; height: 30px; cursor: pointer; color: var(--text); border-radius: 6px; }
.settings-title .act:hover { background: var(--gray-100); }
.settings-title .act:disabled { color: var(--text-faint); cursor: default; background: none; }
.settings-title .sep { width: 1px; height: 16px; background: var(--border); margin: 0 6px; }
.settings-body { padding: 24px 20px 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.sec-head h3 { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-strong); }
.sec-head h3 small { font-weight: 400; color: var(--text-weak); font-size: 11px; }
.sub-label { margin: 0 0 10px; color: var(--text); }
.sub-label small { color: var(--text-weak); font-size: 11px; }
.hr { height: 1px; background: var(--border); margin: 22px 0; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; }
.kv > div:nth-child(odd) { color: var(--text-weak); }
.kv > div:nth-child(even) { color: var(--text-strong); word-break: break-all; }
.summary-cards { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.summary-cards .sc { min-width: 140px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-100); }
.summary-cards .sc b { display: block; font-size: 20px; color: var(--text-strong); margin-top: 4px; font-variant-numeric: tabular-nums; }
.summary-cards .sc span { color: var(--text-weak); }
.desc-box { padding: 10px 14px; background: var(--gray-100); border-radius: 6px; color: var(--text-weak); margin-bottom: 16px; line-height: 1.6; }

/* ---------- 일반 페이지(분석·통계) ---------- */
.toolbar-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar-row .spacer { flex: 1; }
.panel { background: var(--surface-100); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-card); }
.panel-head { height: 38px; display: flex; align-items: center; padding: 0 12px; gap: 8px; border-bottom: 1px solid var(--border); }
.panel-head .t { font-weight: 600; color: var(--text-strong); }
.panel-body { padding: 12px; }
.muted { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
pre.code {
  margin: 0; padding: 12px; background: var(--gray-100); border-radius: 6px; font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-all; color: var(--text-strong); overflow: auto;
}

/* ---------- 모달·토스트 ---------- */
.im-modal-back { position: fixed; inset: 0; background: rgba(20, 20, 30, .35); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.im-modal { width: 460px; max-width: 100%; max-height: calc(100vh - 32px); background: var(--surface-100); border-radius: 10px; box-shadow: var(--shadow-layer); display: flex; flex-direction: column; }
.im-modal-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 20px; flex: none; }
.im-modal-title { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.im-modal-body { padding: 4px 20px 16px; overflow: auto; }
.im-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; flex: none; }
.im-modal .form-grid { grid-template-columns: 120px 1fr; }
.im-confirm-msg { line-height: 1.6; white-space: pre-wrap; padding: 4px 0; }
.im-toast-box { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.im-toast { padding: 10px 16px; border-radius: 8px; background: #2C2A30; color: #fff; box-shadow: var(--shadow-layer); transition: opacity .3s; font-size: 12px; }
.im-toast.error { background: var(--red-700); }
.im-toast.ok { background: #2f7a50; }
.im-toast.out { opacity: 0; }
.form-msg { margin-top: 10px; color: var(--red-700); min-height: 16px; }

/* ---------- 분할 레이아웃(팝업) ---------- */
.splitter-h { height: 6px; flex: none; cursor: row-resize; position: relative; }
.splitter-h::after { content: ''; position: absolute; left: 0; right: 0; top: 2px; height: 2px; background: var(--border); }
.splitter-h:hover::after { background: var(--primary); }
.splitter-v { width: 6px; flex: none; cursor: col-resize; position: relative; }
.splitter-v::after { content: ''; position: absolute; top: 0; bottom: 0; left: 2px; width: 2px; background: var(--border); }
.splitter-v:hover::after { background: var(--primary); }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .hint { grid-column: 1; }
  .settings-left { width: 180px; }
}
