/* ── 시스템 폰트 (CSP: 외부 CDN 불필요) ── */

/* ── 기본 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }

/* ── 레이아웃 ── */
.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 1610px;
  margin: 0 auto;
}

/* ── 사이드바 ── */
.sidebar {
  width: 210px;
  min-width: 210px;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0 1.2rem;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 1.2rem;
}
.brand-text { font-size: .92rem; font-weight: 700; color: #1a1a1a; letter-spacing: -.02em; }

.sidebar-user {
  font-size: .73rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #ebebeb;
}

.nav-section-label {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #b0b0b0;
  margin-bottom: .35rem;
}

.nav-item {
  display: block;
  padding: .48rem .75rem;
  border-radius: 7px;
  color: #555;
  text-decoration: none;
  font-size: .855rem;
  font-weight: 500;
  transition: all .12s ease;
  margin-bottom: .08rem;
}
.nav-item:hover { background: #f2f2f2; color: #1a1a1a; }
.nav-item.active { background: #1a1a1a; color: #fff; font-weight: 600; }

.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid #ebebeb; }
.btn-logout {
  display: block;
  text-align: center;
  padding: .45rem;
  border-radius: 7px;
  color: #9ca3af;
  text-decoration: none;
  font-size: .8rem;
  transition: all .12s ease;
}
.btn-logout:hover { background: #f2f2f2; color: #1a1a1a; }

/* ── 메인 컨텐츠 ── */
.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  overflow-x: hidden;
}

/* ── 페이지 헤더 ── */
.page-header {
  padding: 1.25rem 0 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #1a1a1a;
}
.page-header h2 { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.page-header p { margin: .3rem 0 0; color: #888; font-size: .85rem; }

/* ── 메트릭 그리드 ── */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .65rem; margin-bottom: 1.5rem; }

.metric-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: box-shadow .15s ease;
}
.metric-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }

.metric-label { font-size: .68rem; color: #888; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: .35rem; }
.metric-value { font-size: 1.55rem; font-weight: 800; color: #1a1a1a; line-height: 1.2; letter-spacing: -.03em; }

.svc-card { text-align: center; }

/* ── 탭 ── */
.tab-bar {
  display: flex;
  gap: 1px;
  background: #e8e8e8;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .42rem .95rem;
  color: #777;
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 500;
  font-size: .84rem;
  font-family: inherit;
  transition: all .12s ease;
}
.tab-btn:hover { background: #f0f0f0; color: #1a1a1a; }
.tab-btn.active { background: #fff; color: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,.1); font-weight: 600; }

.tab-content { display: block; }
.tab-content.hidden { display: none; }

/* ── 섹션 ── */
.section-divider { border: none; border-top: 1px solid #ebebeb; margin: 1.5rem 0; }
.section-header {
  font-size: .78rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1.5px solid #1a1a1a;
  display: inline-block;
}

/* ── 카드 ── */
.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}

/* ── 버튼 ── */
button, .btn-primary, .btn-secondary, .btn-danger, .btn-warning, .btn-success {
  font-family: inherit;
  border-radius: 8px;
  font-weight: 500;
  font-size: .855rem;
  cursor: pointer;
  transition: all .12s ease;
  padding: .52rem 1.05rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  text-decoration: none;
}
.btn-primary { background: #1a1a1a; color: #fff !important; }
.btn-primary:hover { background: #333; }
.btn-secondary { background: #fff; color: #1a1a1a !important; border: 1px solid #d8d8d8; }
.btn-secondary:hover { background: #f5f5f5; border-color: #bbb; }
.btn-danger { background: #3a3a3a; color: #fff !important; }
.btn-danger:hover { background: #1a1a1a; }
.btn-warning { background: #555; color: #fff !important; }
.btn-warning:hover { background: #333; }
.btn-success { background: #444; color: #fff !important; }
.btn-success:hover { background: #222; }
.btn-sm { padding: .32rem .7rem; font-size: .79rem; border-radius: 6px; }
.btn-full { width: 100%; justify-content: center; }
.btn-file {
  padding: .38rem .8rem;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  cursor: pointer;
  font-size: .8rem;
  font-family: inherit;
  color: #444;
  transition: all .12s ease;
  margin-bottom: .3rem;
}
.btn-file:hover { background: #f5f5f5; border-color: #bbb; }
.btn-file.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; font-weight: 600; }
.btn-file.btn-disabled { opacity: .35; cursor: not-allowed; }
button:disabled { opacity: .4; cursor: not-allowed; }

/* ── 폼 ── */
.form-group { margin-bottom: .8rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: #444; margin-bottom: .28rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: .58rem .85rem;
  font-size: .875rem;
  font-family: inherit;
  color: #1a1a1a;
  transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(0,0,0,.07);
}
.input-readonly { background: #f7f7f7 !important; color: #888 !important; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.checkbox-label { display: flex; align-items: center; gap: .45rem; font-size: .875rem; color: #444; cursor: pointer; padding: .35rem 0; }
.checkbox-label input[type=checkbox] { width: 15px; height: 15px; accent-color: #1a1a1a; }

/* ── 테이블 ── */
.data-table { width: 100%; border-collapse: collapse; font-size: .855rem; }
.data-table thead tr { border-bottom: 1.5px solid #d0d0d0; }
.data-table th { text-align: left; padding: .55rem .7rem; color: #555; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table td { padding: .55rem .7rem; border-bottom: 1px solid #ebebeb; }
.data-table tbody tr:hover { background: #fafafa; }

/* ── 알림 ── */
.alert { padding: .65rem .95rem; border-radius: 8px; font-size: .855rem; margin-bottom: .7rem; border: 1px solid; }
.alert-success { background: #f7f7f7; color: #1a1a1a; border-color: #d0d0d0; }
.alert-error { background: #f7f7f7; color: #1a1a1a; border-color: #bbb; border-left: 3px solid #1a1a1a; }
.alert-warning { background: #f7f7f7; color: #555; border-color: #d0d0d0; }
.alert-info { background: #f7f7f7; color: #444; border-color: #d0d0d0; }

/* ── 수익률 색상 (한국식: 수익=빨강, 손실=파랑) ── */
.profit-pos { color: #ff3b30 !important; font-weight: 700; }
.profit-neg { color: #1d6ce8 !important; font-weight: 700; }
.profit-zero { color: #8e8e93 !important; font-weight: 500; }

/* ── 배지 ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 5px; font-size: .7rem; font-weight: 600; }
.badge-green  { background: #f0f0f0; color: #333; }
.badge-red    { background: #e8e8e8; color: #1a1a1a; }
.badge-yellow { background: #f0f0f0; color: #444; }
.badge-blue   { background: #ebebeb; color: #333; }
.badge-gray   { background: #f0f0f0; color: #666; }

/* ── 로그 ── */
.log-container {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 1rem 1.3rem;
  font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
  font-size: .74rem;
  line-height: 1.7;
  max-height: 600px;
  overflow-y: auto;
  color: #d0d0d0;
  white-space: pre-wrap;
  word-break: break-all;
}
.log-info  { color: #c0c0c0; }
.log-error { color: #fff; font-weight: 600; }
.log-warn  { color: #aaa; }
.log-debug { color: #666; }
.log-meta-bar {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  padding: .38rem .85rem;
  font-size: .76rem;
  color: #777;
}

/* ── 종목 아이템 ── */
.stock-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  margin-bottom: .4rem;
  overflow: hidden;
}
.stock-item.deleted { opacity: .55; }
.stock-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem .95rem;
  cursor: pointer;
  gap: .75rem;
  font-size: .875rem;
  list-style: none;
}
.stock-item summary::-webkit-details-marker { display: none; }
.stock-item summary::before { content: '›'; margin-right: .3rem; color: #bbb; font-size: 1rem; transition: transform .15s; }
.stock-item[open] summary::before { transform: rotate(90deg); }
.stock-item summary:hover { background: #fafafa; }
.stock-detail {
  padding: .75rem .95rem 1rem;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .38rem .75rem; margin-bottom: .7rem; }
.detail-grid label { font-size: .7rem; color: #aaa; font-weight: 600; text-transform: uppercase; display: block; }
.detail-grid span { font-size: .855rem; color: #1a1a1a; }
.action-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.inline-edit { flex-wrap: wrap; }

/* ── 대기 종목 ── */
.pending-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .7rem .85rem;
  border: 1px solid #e8e8e8;
  border-left-width: 2px;
  border-left-color: #1a1a1a;
  border-radius: 9px;
  background: #fff;
  margin-bottom: .4rem;
}

/* ── 리스트 행 ── */
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* ── 손절 카드 ── */
.stop-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 3px solid #1a1a1a;
  border-radius: 9px;
  padding: .65rem .95rem;
  margin-bottom: .4rem;
}

/* ── 매도 큐 ── */
.queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid #f0f0f0;
}

/* ── 유틸리티 스크립트 ── */
.script-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 0;
}
.script-label { font-weight: 600; font-size: .875rem; color: #1a1a1a; }
.script-desc { font-size: .78rem; color: #888; margin-top: .18rem; }
.script-output { margin: .5rem 0 .75rem; }

/* ── Config ── */
.json-view {
  background: #1a1a1a;
  color: #d0d0d0;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: .74rem;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
  white-space: pre;
}
.json-editor {
  width: 100%;
  min-height: 500px;
  background: #1a1a1a;
  color: #d0d0d0;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: .74rem;
  line-height: 1.7;
  resize: vertical;
}
.json-editor:focus { outline: none; border-color: #666; box-shadow: 0 0 0 3px rgba(0,0,0,.1); }

/* ── 설정 파라미터 그룹 ── */
.param-group {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 11px;
  margin-bottom: .65rem;
  overflow: hidden;
}
.param-group summary, .param-group-title {
  padding: .8rem 1.1rem;
  font-weight: 700;
  font-size: .855rem;
  color: #1a1a1a;
  cursor: pointer;
  background: #fafafa;
  border-bottom: 1px solid #e8e8e8;
  list-style: none;
}
.param-group summary::-webkit-details-marker { display: none; }
.param-group summary:hover { background: #f2f2f2; }
.param-group > div { padding: .75rem 1.1rem 1rem; background: #fff; }
.param-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
}
.param-field-wide { grid-column: 1 / -1; }
.param-label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: .2rem; }
.param-desc {
  margin: 0 0 .45rem;
  font-size: .76rem;
  line-height: 1.45;
  color: #888;
}
.param-json { font-family: ui-monospace, monospace; font-size: .78rem; resize: vertical; min-height: 5rem; }

/* ── 필터 바 ── */
.filter-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: .9rem;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  padding: .48rem .8rem;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  font-size: .855rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
}
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: #1a1a1a; }

/* ── 빈 메시지 ── */
.empty-msg { color: #bbb; font-size: .875rem; padding: 2rem 0; text-align: center; }

/* ── 토스트 ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: .7rem 1.2rem;
  border-radius: 9px;
  font-size: .855rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  z-index: 9999;
  transition: opacity .25s, transform .25s;
}
.toast.toast-error { background: #333; border-left: 3px solid #fff; }
.toast.hidden { opacity: 0; pointer-events: none; transform: translateY(6px); }

/* ── 전역 로딩 (API 대기) ── */
.app-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  transition: opacity .2s;
}
.app-loading.hidden {
  opacity: 0;
  pointer-events: none;
}
.app-loading-panel {
  min-width: 240px;
  max-width: 320px;
  padding: 1.25rem 1.5rem 1.1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.app-loading-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto .85rem;
  border: 3px solid #e8e8e8;
  border-top-color: #1d6ce8;
  border-radius: 50%;
  animation: app-spin .75s linear infinite;
}
.app-loading-bar {
  height: 4px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: .75rem;
}
.app-loading-bar-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #1d6ce8, #5a9cf5);
  border-radius: 4px;
  animation: app-loading-bar 1.1s ease-in-out infinite;
}
.app-loading-msg {
  margin: 0;
  font-size: .875rem;
  color: #444;
  line-height: 1.4;
}
@keyframes app-spin {
  to { transform: rotate(360deg); }
}
@keyframes app-loading-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
body.app-is-loading { overflow: hidden; }

/* ── 로그인 화면 ── */
.login-body { background: #f5f5f5; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-wrap { width: 100%; max-width: 400px; padding: 1rem; }
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.07), 0 0 1px rgba(0,0,0,.05);
  text-align: center;
}
.login-title { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin-bottom: .5rem; }
.login-sub { color: #888; font-size: .855rem; margin-bottom: 1.5rem; }
.login-error {
  background: #f5f5f5;
  color: #1a1a1a;
  padding: .55rem .85rem;
  border-radius: 7px;
  font-size: .83rem;
  margin-bottom: .9rem;
  border: 1px solid #d0d0d0;
  border-left: 3px solid #1a1a1a;
  text-align: left;
}
.login-card .form-group { text-align: left; }
.login-card input {
  width: 100%; padding: .62rem .95rem; border: 1px solid #d8d8d8;
  border-radius: 8px; font-size: .875rem; font-family: inherit; margin-bottom: .7rem;
  color: #1a1a1a; background: #fff;
}
.login-card input:focus { outline: none; border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(0,0,0,.07); }

/* ── 보유 종목 카드 (10영업일) ── */
.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.holding-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.holding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.holding-card-name-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 1;
  min-width: 0;
}
.holding-card-sell-btn {
  flex-shrink: 0;
  padding: .12rem .45rem !important;
  font-size: .72rem !important;
}
.holding-card-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.holding-card-code { color: #9ca3af; font-size: .78rem; white-space: nowrap; }
.holding-card-price { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.holding-price-alert { color: #ff3b30; }
.holding-atr-alert-note {
  font-size: .75rem;
  font-weight: 600;
  color: #ff3b30;
}
@keyframes holding-atr-blink {
  0%, 100% { border-color: #ff3b30; box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5); background: #fff; }
  50% { border-color: #ff3b30; box-shadow: 0 0 14px 3px rgba(255, 59, 48, 0.4); background: #fff5f5; }
}
.holding-card.atr-alert {
  animation: holding-atr-blink 1.1s ease-in-out infinite;
  border: 2px solid #ff3b30;
}
.holding-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #888; }
.holding-card-spark { min-height: 36px; }
.holding-card-profit { font-size: .82rem; font-weight: 600; }
.holding-day-list { border-top: 1px solid #f0f0f0; padding-top: .5rem; max-height: 220px; overflow-y: auto; }
.holding-day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  padding: .22rem 0;
}
.holding-day-date { color: #888; min-width: 3rem; }
.holding-day-close { color: #555; margin-left: auto; margin-right: .6rem; }
.sparkline { display: block; width: 100%; height: 36px; }

.log-panel {
  margin-top: 1rem;
  background: #1a1a1a;
  color: #e5e5e5;
  border-radius: 8px;
  padding: .85rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
  line-height: 1.45;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.rebalance-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}
.rebalance-input-row .form-input {
  width: 180px;
  padding: .5rem .65rem;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  font-size: .875rem;
}
.rebalance-input-row .form-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #444;
  margin-bottom: .28rem;
}

.ab-weekdays-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .2rem .85rem;
  align-items: center;
  margin-top: .25rem;
}
.ab-weekdays-row .checkbox-label {
  padding: .15rem 0;
  white-space: nowrap;
}

/* ── 서비스 상태 배지 ── */
.svc-badge {
  display: inline-block;
  padding: .18rem .55rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.svc-badge-active { background: #e8f5e9; color: #2e7d32; }
.svc-badge-inactive { background: #f5f5f5; color: #888; }
.svc-badge-failed { background: #ffebee; color: #c62828; }
.svc-badge-stale { background: #fff3e0; color: #e65100; }
.svc-badge-unknown { background: #eceff1; color: #607d8b; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { padding: 1.25rem 1rem; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2, .form-grid-3, .param-grid { grid-template-columns: 1fr; }
}
