:root {
  --bg: #0c1017;
  --surface: #161d28;
  --surface2: #1e2836;
  --border: #3a4a5f;
  --text: #f1f5f9;
  --muted: #b0becf; /* was #94a3b8 — 대비 상향 */
  --accent: #4c6fff;
  --accent-soft: rgba(76, 111, 255, 0.16);
  --danger: #ef4444;
  --warn: #fbbf24;
  --ok: #34d399;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  /* 읽기 전용 밝은 면 (라벨·원문) */
  --read-bg: #ffffff;
  --read-text: #0f172a;
  --read-muted: #475569;
  --read-border: #e2e8f0;
  --read-line: #f1f5f9;
  --fs-base: 16px;
  --lh: 1.65;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

html {
  font-size: var(--fs-base);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  line-height: var(--lh);
  letter-spacing: -0.01em;
  word-break: keep-all; /* 한글 줄바꿈 */
  overflow-wrap: break-word;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 90, 254, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(34, 197, 94, 0.06), transparent);
}

a {
  color: #93c5fd;
  text-underline-offset: 2px;
}

a:hover {
  color: #bfdbfe;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.1rem 4.5rem;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d5afe, #00c853);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand .tag {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.badge-phase {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a5b4fc;
  border: 1px solid rgba(61, 90, 254, 0.35);
  white-space: nowrap;
  max-width: 11rem;
  text-align: center;
  line-height: 1.25;
}

.badge-phase.mode-live {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}

.badge-phase.mode-mock {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.35);
}

.search-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.search-source {
  font-size: 0.75rem;
  color: var(--muted);
}

.rc-src {
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(61, 90, 254, 0.2);
  color: #a5b4fc;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-head-row h3 {
  margin: 0;
}

.export-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 9px;
}

.loading-line {
  font-size: 0.85rem;
  color: #a5b4fc;
  margin: 0 0 0.5rem;
}

.ocr-raw {
  margin-top: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.ocr-raw h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.ocr-raw pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.75rem;
  color: #cbd5e1;
  max-height: 160px;
  overflow: auto;
}

.disclaimer {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
  background: var(--surface);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.tabs.tabs-4 {
  grid-template-columns: repeat(4, 1fr);
}

.tabs.tabs-4 .tab {
  font-size: 0.78rem;
  padding: 0.6rem 0.2rem;
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #a8b8cc;
  padding: 0.7rem 0.4rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}

.tab.active {
  background: var(--surface2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

/* Search */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.4;
}

.search-form input:focus {
  outline: 2px solid rgba(61, 90, 254, 0.5);
  border-color: var(--accent);
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-text {
  background: none;
  border: none;
  color: #8ab4ff;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
}

.chip,
.quick button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.quick button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  cursor: default;
  background: var(--accent-soft);
  border-color: rgba(61, 90, 254, 0.3);
  color: #c7d2fe;
}

/* 경고표지(흰 배경) 안 보호구 칩 — 대비 확보 */
.warn-label .chips {
  gap: 0.5rem;
}

.warn-label .chip {
  background: #e0e7ff;
  border: 1.5px solid #3730a3;
  color: #1e1b4b;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.48rem 0.85rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(55, 48, 163, 0.15);
}

/* Results */
.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.result-card {
  text-align: left;
  width: 100%;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: 0.12s ease;
  line-height: 1.45;
}

.result-card:hover {
  border-color: rgba(76, 111, 255, 0.55);
  background: #1a2330;
}

.result-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(76, 111, 255, 0.25);
}

.rc-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.rc-en {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88rem;
  margin-left: 0.35rem;
}

.rc-meta {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.28rem;
  line-height: 1.4;
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Detail */
#detail {
  margin-top: 0.5rem;
}

.detail-head {
  margin-bottom: 0.75rem;
}

.detail-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  font-weight: 800;
}

.detail-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin-bottom: 0.95rem;
  box-shadow: var(--shadow);
}

.section-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: -0.02em;
}

/* Warning label */
.warn-label {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  overflow: hidden;
}

.warn-head {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  align-items: center;
}

.signal {
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  min-width: 3.2rem;
  text-align: center;
  color: #fff;
}

.signal-danger {
  background: #dc2626;
}

.signal-warn {
  background: #f59e0b;
  color: #111;
}

.warn-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.warn-meta {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 0.15rem;
}

.ghs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.85rem 0.75rem 0.65rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Official KOSHA GHS GIFs (already diamond + red border) */
.ghs-pic.official {
  margin: 0;
  padding: 0;
  width: auto;
  max-width: 100px;
  background: transparent;
  border: none;
  transform: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.ghs-pic.official img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.ghs-pic.official .ghs-cap {
  position: static;
  transform: none;
  width: auto;
  max-width: 104px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.ghs-pic.official .ghs-code {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}

/* Legacy diamond (fallback if no .official) */
.ghs-pic:not(.official) {
  width: 72px;
  height: 72px;
  background: #fff;
  border: 3px solid var(--ghs, #333);
  transform: rotate(45deg);
  margin: 10px;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.ghs-icon {
  transform: rotate(-45deg);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ghs, #333);
  line-height: 1;
}

.warn-section {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--read-line);
}

.warn-section h4 {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #334155;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
}

.warn-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--read-text);
  line-height: 1.6;
}

.h-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--read-text);
}

.h-list li {
  margin-bottom: 0.55rem;
  line-height: 1.55;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #dc2626;
}

.h-list li:last-child {
  margin-bottom: 0;
}

.h-list .h-code {
  display: inline-block;
  min-width: 2.8rem;
  color: #991b1b;
  font-weight: 800;
  margin-right: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.chips .chip {
  max-width: 100%;
}

/* 다크 UI 쪽 칩(검색 칩 등)과 구분 — 보호구 섹션 제목 대비 */
.warn-label .warn-section h4 {
  color: #374151;
  font-weight: 700;
}

.warn-foot {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  color: #6b7280;
  background: #f9fafb;
}

/* Checklist */
.check-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.check-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #f1f5f9;
}

.check-row:has(input:checked) {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.check-row input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ok);
}

.info-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-grid h4 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
}

.info-grid p {
  margin: 0;
  font-size: 0.94rem;
  color: #c5d0de;
  line-height: 1.6;
}

.disclaimer-inline {
  margin: 0.95rem 0 0;
  font-size: 0.84rem;
  color: #fcd34d;
  line-height: 1.5;
}

/* Scan / photo */
.scan-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

#qr-reader {
  border-radius: 10px;
  overflow: hidden;
  min-height: 40px;
}

#qr-reader video {
  border-radius: 10px;
}

.scan-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

#scan-status,
#photo-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

#photo-preview img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

.barcode-manual {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.barcode-manual input {
  flex: 1;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.empty-state .big {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: 0.25s ease;
  z-index: 50;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.lib-h {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.sds-form {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.sds-form input[type="text"],
.sds-form input[type="date"],
.sds-form input[type="file"] {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.lib-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lib-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface2);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.lib-item .meta {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.lib-item .actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.edu-links {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* —— MSDS 자세히 보기 패널 —— */
.section-card-msds {
  padding: 0.75rem;
}

.msds-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  appearance: none;
  border: 1px solid rgba(61, 90, 254, 0.45);
  background: linear-gradient(135deg, rgba(61, 90, 254, 0.18), rgba(61, 90, 254, 0.08));
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  cursor: pointer;
}

.msds-toggle:hover {
  border-color: var(--accent);
}

.msds-toggle-icon {
  color: #a5b4fc;
  font-size: 0.75rem;
}

.msds-panel-body {
  margin-top: 0.75rem;
}

.msds-panel-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.msds-acc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.msds-acc {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.msds-acc summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 700;
  user-select: none;
  line-height: 1.35;
  color: #f1f5f9;
}

.msds-acc summary::-webkit-details-marker {
  display: none;
}

.msds-acc summary::after {
  content: "▸";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.15s ease;
}

.msds-acc[open] summary::after {
  transform: rotate(90deg);
}

.msds-acc-num {
  display: inline-grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  background: rgba(61, 90, 254, 0.25);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 800;
}

.msds-acc-title {
  flex: 1;
  min-width: 0;
}

.msds-acc-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

/* 긴 원문 = 밝은 읽기 면 (다크 UI 위 대비 최고) */
.msds-acc-body {
  padding: 0.75rem 0.9rem 0.95rem;
  border-top: 1px solid var(--border);
  background: var(--read-bg);
  color: var(--read-text);
}

.msds-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.msds-item:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}

.msds-item.lev-2 {
  padding-left: 0.85rem;
  border-left: 2px solid #cbd5e1;
  margin-left: 0.15rem;
}

.msds-item.lev-3 {
  padding-left: 1.25rem;
  border-left: 2px solid #e2e8f0;
  margin-left: 0.35rem;
}

.msds-item-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.msds-p {
  margin: 0;
  font-size: 0.94rem;
  color: #0f172a;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.msds-bullets {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.94rem;
  color: #0f172a;
  line-height: 1.65;
}

.msds-bullets li {
  margin-bottom: 0.4rem;
  padding-left: 0.15rem;
}

.msds-empty {
  color: #64748b;
  font-size: 0.9rem;
}

/* MSDS 원문 안 GHS 그림문자 */
.msds-ghs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.35rem 0 0.15rem;
}

.msds-ghs {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 96px;
}

.msds-ghs img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  background: #fff;
}

.msds-ghs figcaption {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.3;
}

.msds-ghs figcaption span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.1rem;
}

.msds-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.msds-progress {
  font-size: 0.78rem;
  color: #a5b4fc;
  margin: 0.5rem 0 0;
}

/* —— 인쇄: 화면 앱 UI 숨기고 #label-mount 경고표지만 —— */
@media print {
  @page {
    margin: 10mm;
  }

  html,
  body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.easymsds-printing * {
    visibility: hidden !important;
  }

  body.easymsds-printing .easymsds-print-target,
  body.easymsds-printing .easymsds-print-target * {
    visibility: visible !important;
  }

  body.easymsds-printing .easymsds-print-target {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    z-index: 99999 !important;
  }

  body.easymsds-printing .easymsds-print-target .warn-label {
    max-width: none !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

.file-btn {
  display: inline-block;
}

.file-btn input {
  display: none;
}
