/* sheet.css — 우측 슬라이드 사이드시트 + 탭 + 핀 테이블 + 폼 + CSV 텍스트 */

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 88vw;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -16px 0 32px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.sheet.open { transform: translateX(0); }
.sheet .sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.sheet .sheet-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
}
.sheet .sheet-tabs button {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.sheet .sheet-tabs button.active {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}
.sheet .sheet-body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px;
}
.sheet .scrim-close {
  position: fixed;
  inset: 0 480px 0 0;
  background: rgba(0,0,0,0.35);
  z-index: 29;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms;
}
.sheet.open ~ .scrim-close {
  opacity: 1;
  pointer-events: auto;
}

/* 핀 목록 테이블 */
.pin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pin-table th {
  text-align: left;
  padding: 8px 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: var(--panel);
}
.pin-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line-soft);
}
.pin-table .inst-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.pin-table .row-del {
  color: var(--danger);
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 14px;
  padding: 4px 8px;
}

/* 자동 채보 폼 */
.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.form-row label {
  flex: 0 0 110px;
  color: var(--muted);
  font-size: 12px;
}
.form-row .control {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-row input[type="range"] { flex: 1; }
.form-row input[type="number"] { width: 90px; }

/* CSV 텍스트 영역 */
.csv-box {
  width: 100%;
  min-height: 220px;
  max-height: 60vh;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  padding: 10px;
  background: #0a1018;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  resize: vertical;
}
