/* ═══════════════════════════════════════════════
   tools.css — 도구모음 페이지
   디자인 레퍼런스: enchant.css (1:1 토큰 매칭)
   ═══════════════════════════════════════════════ */

/* ── 페이지 헤더 (= enc-page-header) ──────── */
.tl-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 32px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-secondary);
}

.tl-header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-title i { color: var(--color-accent); }

.tl-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.tl-header-controls {
  display: flex;
  align-items: center;
}

.tl-server-select {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border-secondary);
}

.tl-server-select label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tl-select {
  background-color: transparent;
  color: var(--text-primary);
  border: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.tl-server-rate {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-up);
  font-weight: 600;
}

/* ── 워크스페이스 (= enc-workspace) ────────── */
.tl-workspace {
  padding: 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── 스플릿 레이아웃 (= enc-split) ────────── */
.tl-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  height: 650px;
}

/* ── 좌측 컬럼 (= enc-left-col) ──────────── */
.tl-left-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

/* ── 좌측: 도구 선택기 (= enc-selector) ────── */
.tl-selector {
  background: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.tl-selector-header {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-secondary);
}

/* ── 검색창 (= enc-search) ────────────────── */
.tl-search {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-secondary);
  gap: 10px;
}

.tl-search i {
  color: var(--text-muted);
}

.tl-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
}

.tl-search input::placeholder {
  color: var(--text-muted);
}

/* ── 도구 리스트 (= enc-item-grid) ──────────── */
.tl-item-grid {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.tl-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.tl-item:hover {
  background: var(--bg-hover);
}

.tl-item.active {
  background: var(--color-accent-bg);
  border-color: var(--color-accent);
}

.tl-item-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-body);
  border-radius: 4px;
  border: 1px solid var(--border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tl-item-icon i {
  font-size: 18px;
  color: var(--color-accent);
}

.tl-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tl-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-item-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── 우측 컬럼 (= enc-arena) ──────────────── */
.tl-right-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

/* ── 마스터 패널 (= enc-master-panel) ────────── */
.tl-master-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ── Setup Zone (= enc-setup-zone) ────────── */
.tl-setup-zone {
  flex: 0 0 auto;
}

.tl-panel-item {
  padding: 20px 20px 10px 20px;
}

/* ── Action Zone (= enc-action-zone) ──────── */
.tl-action-zone {
  flex: 1 1 0;
  position: relative;
  border-top: 1px solid var(--border-secondary);
  min-height: 0;
}

/* ── 도구 패널 콘텐츠 (= enc-mode-content) ──── */
.tl-tool-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* ── 아이템 카드 헤더 (= enc-card-top) ──────── */
.tl-card-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tl-card-img-wrap {
  width: 80px;
  height: 80px;
  background: var(--bg-body);
  border-radius: 8px;
  border: 1px solid var(--border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.tl-card-img-wrap i {
  font-size: 36px;
  color: var(--color-accent);
}

.tl-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-card-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.tl-card-specs {
  font-size: 14px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tl-card-cat {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-hl {
  color: var(--color-accent);
  font-weight: 600;
}

/* ── 폼 내부 요소들 ────────────────────────── */

/* 대형 메인 입력 박스 (= enc-multi-range) */
.tl-massive-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  padding: 16px 24px;
  width: 100%;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tl-massive-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.tl-massive-input-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tl-massive-input-wrap input {
  background: transparent;
  border: none;
  color: var(--color-accent);
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -0.05em;
  text-align: center;
  outline: none;
  width: 180px;
  text-shadow: 0 0 20px rgba(240, 185, 11, 0.4);
}

.tl-massive-input-wrap input::placeholder {
  color: rgba(255,255,255,0.1);
}

.tl-massive-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* number 인풋 스피너 제거 */
.tl-massive-input-wrap input[type="number"],
.tl-sub-input input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.tl-massive-input-wrap input[type="number"]::-webkit-outer-spin-button,
.tl-massive-input-wrap input[type="number"]::-webkit-inner-spin-button,
.tl-sub-input input[type="number"]::-webkit-outer-spin-button,
.tl-sub-input input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 퀵 버튼 일체형 바 (= enc-qty-unified-bar) */
.tl-qty-bar {
  display: flex;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.tl-qty-btn {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tl-qty-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.tl-qty-btn.active {
  background: rgba(240, 185, 11, 0.1);
  color: var(--color-accent);
}

.tl-qty-divider {
  width: 1px;
  height: 24px;
  background: var(--border-secondary);
}

/* 서브 옵션 그리드 */
.tl-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.tl-sub-box {
  background: var(--bg-body);
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-sub-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.tl-sub-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tl-sub-input input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  width: 50px;
  outline: none;
}

.tl-sub-input span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Go 버튼 (= enc-go-btn) */
.tl-go-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--color-accent), #e6b800);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.tl-go-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tl-go-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
}

.tl-go-btn:hover::before { opacity: 1; }

.tl-go-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(240, 185, 11, 0.2);
}

/* 환율 변환기 방향 아이콘 */
.tl-convert-arrow {
  text-align: center;
  font-size: 20px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* 도구 패널 내부 간격 (flex-col 자식 간 gap 대체) */
.tl-tool-panel > * + * {
  margin-top: 20px;
}

.tl-tool-panel > .tl-convert-arrow {
  margin-top: 12px;
  margin-bottom: -8px;
}

/* ═══ 리포트 존 (receipt 스타일) ═══════════════ */

.tl-report-zone {
  margin-top: 20px;
}

/* 리포트 외곽 (= enc-report-receipt) */
.tl-report-receipt {
  background: #111418;
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 리포트 헤더: 브랜드 (= receipt-brand) */
.tl-receipt-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.tl-brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.tl-brand-title .tl-brand-accent {
  color: var(--color-accent);
}

.tl-receipt-brand-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 리포트 저장 버튼 (= enc-btn-export) */
.tl-btn-export {
  background: rgba(14, 203, 129, 0.1);
  color: var(--color-up);
  border: 1px solid rgba(14, 203, 129, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tl-btn-export:hover {
  background: rgba(14, 203, 129, 0.2);
  transform: translateY(-1px);
}

/* 리포트 도구 프로필 (= receipt-item-profile) */
.tl-receipt-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tl-receipt-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tl-receipt-icon i {
  font-size: 28px;
  color: var(--color-accent);
}

.tl-receipt-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-receipt-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.tl-receipt-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* 리포트 타임스탬프 (= receipt-timestamp) */
.tl-receipt-timestamp {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  margin-bottom: 24px;
}

/* 리포트 통계 그리드 (= receipt-stat-grid) */
.tl-receipt-stat-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 12px;
  margin-bottom: 24px;
}

.tl-r-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.tl-r-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tl-r-val {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.tl-r-val.success { color: var(--color-up); }
.tl-r-val.accent { color: var(--color-accent); }
.tl-r-val.danger { color: var(--color-down); }

/* 리포트 섹션 (= receipt-section) */
.tl-receipt-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.tl-receipt-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 섹션 타이틀 (= fortune-title / finance-title) */
.tl-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 행: 라벨-값 2열 (= fortune-row / finance-row) */
.tl-finance-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.tl-finance-row strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* 합계 행 (= f-total) */
.tl-f-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  color: var(--text-primary);
}

.tl-f-total strong {
  color: var(--color-accent);
  font-size: 15px;
}

/* 거래소 소스 배지 */
.tl-fee-source {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
  margin-right: 8px;
}

.tl-fee-source.s1 { background: rgba(79,195,247,0.1); color: var(--color-barotem); }
.tl-fee-source.s2 { background: rgba(174,213,129,0.1); color: var(--color-itemmania); }
.tl-fee-source.s3 { background: rgba(255,183,77,0.1); color: var(--color-itembay); }

/* 운세 판별 결과 (= fortune-result) */
.tl-fortune-result {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

/* 프로그레스 바 */
.tl-progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-body);
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 0 6px;
}

.tl-bar-fill {
  height: 100%;
  background: var(--color-up);
  border-radius: 6px;
  transition: width 0.3s;
}

.tl-bar-fill.over {
  background: var(--color-accent);
}

/* 리포트 푸터 (= receipt-footer) */
.tl-receipt-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-mono);
  padding-top: 12px;
}

/* 매물 바로가기 링크 */
.tl-deal-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tl-deal-go:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: rgba(255, 204, 0, 0.08);
}

/* 리포트 비어있을 때 */
.tl-result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--text-muted);
  gap: 16px;
}

.tl-result-empty i {
  font-size: 48px;
  opacity: 0.5;
}

/* 스마트 딜 카드 */
.tl-deal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tl-deal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.tl-deal-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tl-deal-right {
  text-align: right;
  flex-shrink: 0;
}

.tl-deal-amt {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tl-deal-price {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.tl-deal-fee {
  font-size: 11px;
  color: var(--text-muted);
}

.tl-deal-link {
  font-size: 11px;
  color: var(--color-accent);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

.tl-deal-link:hover {
  background: var(--color-accent);
  color: #000;
}

/* PC에서 모바일 요약 바 숨김 */
.tl-mobile-selected { display: none; }

/* ═══ 모바일 (태블릿) ═══════════════════════ */
@media (max-width: 992px) {
  .tl-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    height: auto;
    max-width: 100%;
  }

  .tl-left-col {
    height: auto;
    overflow: visible;
    max-width: 100%;
    width: 100%;
  }

  .tl-right-col {
    height: auto;
  }

  .tl-master-panel {
    height: auto;
    overflow: visible;
  }

  .tl-action-zone {
    position: static;
    flex: 0 0 auto;
    min-height: auto;
  }

  .tl-tool-panel {
    position: static;
  }

  /* ═══ 아이템 선택기 (바텀시트 패턴 = enc-selector 동기화) ═══ */

  .tl-selector {
    height: auto;
    max-height: 50vh;
    position: static;
    border-bottom: 1px solid var(--border-secondary);
  }

  /* 도구 선택 후 셀렉터 축소 */
  .tl-selector.collapsed {
    max-height: 0;
    overflow: hidden;
    border: none;
    padding: 0;
    transition: max-height 0.3s ease;
  }

  /* 모바일 도구 요약 바 (= enc-mobile-selected) */
  .tl-mobile-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    margin-bottom: 0;
  }

  .tl-mobile-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tl-mobile-sel-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 4px;
    border: 1px solid var(--border-secondary);
    flex-shrink: 0;
  }

  .tl-mobile-sel-icon i {
    font-size: 14px;
    color: var(--color-accent);
  }

  .tl-mobile-selected-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
  }

  .tl-mobile-selected-meta {
    font-size: 11px;
    color: var(--text-muted);
  }

  .tl-mobile-change-btn {
    font-size: 12px;
    color: var(--color-accent);
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(240, 185, 11, 0.08);
  }
}

/* ═══ 모바일 (폰) ═══════════════════════════ */
@media (max-width: 600px) {
  .tl-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .tl-server-select { width: 100%; }
  .tl-workspace { padding: 12px; }

  /* 카드 헤더 축소 (= enc-card-top 동기화) */
  .tl-card-top { gap: 12px; }

  .tl-card-img-wrap {
    width: 48px;
    height: 48px;
    padding: 4px;
  }

  .tl-card-img-wrap i { font-size: 22px; }
  .tl-card-name { font-size: 16px; }
  .tl-card-specs { font-size: 12px; }
  .tl-card-cat { font-size: 11px; }

  .tl-panel-item { padding: 14px 16px 8px; }

  /* 대형 입력 박스 축소 */
  .tl-massive-box {
    padding: 12px 16px;
    overflow: visible;
  }

  .tl-massive-input-wrap {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .tl-massive-input-wrap input {
    font-size: 28px;
    width: 0;
    flex: 1 1 0;
    min-width: 60px;
    max-width: 200px;
    text-align: right;
  }

  .tl-massive-unit {
    font-size: 14px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .tl-massive-label { font-size: 12px; }

  /* 퀵 버튼 바 */
  .tl-qty-btn {
    padding: 12px 0;
    font-size: 12px;
  }

  /* 서브 옵션 그리드 — 모바일 1열 전환 */
  .tl-sub-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tl-sub-box { padding: 10px 12px; }

  .tl-sub-input input {
    font-size: 16px;
    width: 60px;
  }

  /* Go 버튼 (= enc-go-btn 동기화) */
  .tl-go-btn {
    padding: 14px;
    font-size: 15px;
  }

  /* 도구 패널 내부 간격 */
  .tl-tool-panel { padding: 16px; }
  .tl-tool-panel > * + * { margin-top: 16px; }

  /* 리포트 영역 */
  .tl-report-receipt { padding: 16px; }

  .tl-receipt-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tl-receipt-stat-grid {
    flex-wrap: wrap;
  }

  .tl-r-stat {
    flex: 0 0 calc(50% - 6px);
    padding: 10px;
  }

  .tl-r-val { font-size: 16px; }
  .tl-r-label { font-size: 11px; }

  .tl-receipt-profile { gap: 12px; }

  .tl-receipt-icon {
    width: 44px;
    height: 44px;
  }

  .tl-receipt-icon i { font-size: 22px; }
  .tl-receipt-name { font-size: 16px; }
  .tl-receipt-meta { font-size: 12px; }

  .tl-receipt-timestamp {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .tl-finance-row { font-size: 12px; }
  .tl-section-title { font-size: 13px; }

  /* 스마트 딜 카드 */
  .tl-deal-card {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }

  .tl-deal-left { flex: 1 1 calc(100% - 80px); }

  /* 수수료 비교기 거래소 배지 */
  .tl-fee-source {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* 프로그레스 바 */
  .tl-progress-bar { height: 10px; }

  /* 운세 판별 */
  .tl-fortune-result { font-size: 12px; }

  /* 환율 변환기 */
  .tl-convert-arrow { font-size: 16px; }
}

