/* NVE Admin webapp — CRYSTAR light theme (brightics-mono `nve` 디자인 1:1 이식).
 * 색/폰트/레이아웃은 packages/design-token + apps/nve 기준.
 *  - Pretendard, beige-50 사이드바/헤더, 흰 패널, primary #FF5E00(주황)
 *  - 로그인 화면만 nve 처럼 blue-400(#588AF9) 강조 + 각진 인풋/버튼
 */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primary (CRYSTAR orange) */
  --primary-50: #FFF2DF;
  --primary-100: #FFE4C7;
  --primary-200: #FFC795;
  --primary: #FF5E00;
  --primary-600: #BC3500;
  /* gray scale */
  --gray-50: #F2F4F5;
  --gray-100: #E6E8EB;
  --gray-200: #CACFD6;
  --gray-300: #B2B9C3;
  --gray-400: #9AA4B1;
  --gray-500: #848D98;
  --gray-600: #697079;
  --gray-700: #4D535A;
  --gray-800: #33373C;
  --gray-900: #1D2023;
  /* beige (warm neutral — sidebar/header) */
  --beige-50: #F5F3F3;
  --beige-100: #ECE7E7;
  --beige-200: #D9CFCE;
  --beige-700: #65504D;
  --beige-800: #453634;
  /* blue (login) */
  --blue-200: #B5C5FC;
  --blue-400: #588AF9;
  --blue-500: #2070E9;
  /* semantic */
  --green: #39B159;
  --green-bg: #ECF8EF;
  --red: #EB5147;
  --red-bg: #FCF1F1;
  --yellow: #F78B08;
  --yellow-bg: #FEF3E6;
  --white: #FFFFFF;
  /* aliases used across templates */
  --bg: var(--gray-50);
  --panel: var(--white);
  --panel-2: var(--gray-50);
  --border: var(--gray-100);
  --text: var(--gray-800);
  --muted: var(--gray-500);
  --accent: var(--primary);
  --accent-2: var(--primary-600);
  --danger: var(--red);
  --danger-bg: var(--red-bg);
  --ok: var(--green);
  --ok-bg: var(--green-bg);
  --warn: var(--yellow);
  --sidebar-w: 280px;
  --header-h: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }

/* ---------- layout ---------- */
.app-header {
  position: fixed;
  top: 0; left: var(--sidebar-w); right: 0;
  height: var(--header-h);
  background: var(--beige-50);
  border-bottom: 1px solid var(--beige-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 30;
}
.app-header .brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 16px; color: var(--beige-800);
}
.app-header .brand .sub { color: var(--beige-700); font-weight: 500; font-size: 12px; }
.app-header .user { display: flex; align-items: center; gap: 12px; color: var(--gray-700); font-size: 13px; }
.app-header .user .hospital {
  background: var(--gray-100); color: var(--beige-800);
  padding: 4px 12px; border-radius: 9999px; font-size: 13px; font-weight: 600;
}
.app-header .user .email { color: var(--gray-700); font-size: 13px; }
.app-header .user .role {
  background: var(--white); border: 1px solid var(--gray-200);
  padding: 2px 9px; border-radius: 9999px; color: var(--gray-700); font-size: 11px; font-weight: 600;
}

.app-sidebar {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--beige-50);
  border-right: 1px solid var(--beige-100);
  overflow-y: auto;
  padding: 0 0 16px;
  z-index: 20;
}
.sidebar-logo {
  height: var(--header-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
}
.sidebar-logo img { height: 24px; width: auto; display: block; }
.sidebar-logo .x { color: var(--gray-500); font-size: 12px; font-weight: 500; }
.sidebar-logo .nve { font-size: 15px; font-weight: 700; line-height: 24px; color: var(--beige-800); }
.sidebar-scroll { padding: 8px 12px; }

.sidebar-group { margin-bottom: 6px; }
.sidebar-group > .group-title {
  padding: 14px 8px 6px;
  color: var(--beige-700);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--beige-700);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.sidebar-link.sub {
  padding: 8px 8px 8px 16px;
  margin-left: 8px;
  border-radius: 0;
  border-left: 2px solid var(--beige-200);
  font-weight: 400;
}
.sidebar-link:hover { background: rgba(69, 54, 52, .06); color: var(--beige-800); }
.sidebar-link.sub:hover { background: transparent; color: var(--primary); }
.sidebar-link.active { background: var(--beige-800); color: var(--white); }
.sidebar-link.sub.active { background: transparent; color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.sidebar-link .badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 1px 8px;
  min-width: 20px;
  text-align: center;
}
.sidebar-link.active .badge { color: var(--beige-800); border-color: transparent; }
.sidebar-link.sub.active .badge { color: var(--primary); border-color: var(--primary); }

.app-main {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 24px 28px;
  min-height: calc(100vh - var(--header-h));
}
.page-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin: 0 0 18px; }

/* ---------- components ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--gray-100);
  border-radius: 12px;
  padding: 18px;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--gray-600); font-weight: 500; }

input, select, textarea {
  background: var(--white);
  border: 1px solid var(--gray-100);
  color: var(--gray-800);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 .5px var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
}
.btn:hover:not(:disabled) { background: var(--primary-600); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-700); }
.btn.ghost:hover:not(:disabled) { background: var(--gray-50); }
.btn.danger { background: var(--red); }
.btn.danger:hover:not(:disabled) { background: #d2362c; }
.btn.sm { padding: 6px 10px; font-size: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--gray-100); }
th {
  color: var(--gray-600); font-weight: 600; font-size: 13px;
  background: var(--gray-50);
}
thead th:first-child { border-top-left-radius: 6px; }
thead th:last-child { border-top-right-radius: 6px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--gray-50); }

.badge-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-600);
}
.badge-pill.normal { color: var(--green); border-color: var(--green); }
.badge-pill.abnormal { color: var(--red); border-color: var(--red); }
.badge-pill.neutral { color: var(--gray-500); border-color: var(--gray-200); }
.badge-pill.accent { color: var(--primary); border-color: var(--primary); }
.badge-pill.warn { color: var(--blue-500); border-color: var(--blue-500); }

.muted { color: var(--gray-500); }
.right { text-align: right; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* cards grid for dashboard */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.metric { background: var(--white); border: 1px solid var(--gray-100); border-radius: 12px; padding: 16px; }
.metric .k { color: var(--gray-500); font-size: 12px; }
.metric .v { font-size: 26px; font-weight: 700; color: var(--gray-900); margin-top: 6px; }
.metric .v small { font-size: 13px; color: var(--gray-500); font-weight: 400; }

/* detail page */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.viewer { background: var(--gray-900); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; }
.viewer .stage { position: relative; width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.viewer .stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer .stage .overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .15s; }
.viewer .stage .overlay.show { opacity: 1; }
.viewer .bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--white); border-top: 1px solid var(--gray-100); }
.slider-wrap { display: flex; align-items: center; gap: 10px; flex: 1; }
.slider-wrap input[type=range] { flex: 1; accent-color: var(--primary); }
.eye-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.eye-tab { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; font-size: 13px; color: var(--gray-700); }
.eye-tab.active { background: var(--primary-50); border-color: var(--primary); color: var(--primary); font-weight: 600; }

.kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 14px; }
.kv .k { color: var(--gray-500); }

.score-bar { height: 8px; background: var(--gray-100); border-radius: 5px; overflow: hidden; margin-top: 4px; }
.score-bar > span { display: block; height: 100%; background: var(--primary); }
.score-bar.abn > span { background: var(--red); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--gray-900); border: 1px solid var(--gray-900); color: var(--white);
  padding: 11px 18px; border-radius: 10px; z-index: 50; font-size: 13px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.err { background: var(--red); border-color: var(--red); color: #fff; }
.toast.ok { background: var(--green); border-color: var(--green); color: #fff; }

.empty { padding: 40px; text-align: center; color: var(--gray-500); }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 14px; }

/* ---------- login (nve 디자인) ---------- */
.login-page {
  position: relative; min-height: 100vh; width: 100%; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--white);
}
.login-page .bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-image: url("/static/sds-background.webp");
  background-size: cover; background-position: center;
  z-index: 0;
}
.login-topbar, .login-footer {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  background: var(--gray-50);
  padding: 15px 20px;
}
.login-topbar { justify-content: space-between; }
.login-topbar .lhs { display: flex; align-items: center; gap: 6px; }
.login-topbar .lhs img { height: 24px; }
.login-topbar .lhs .x { font-size: 12px; font-weight: 500; color: var(--gray-700); }
.login-topbar .lhs .nve { font-size: 15px; font-weight: 700; line-height: 24px; }
.login-body { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; }
.login-card {
  width: 20%; min-width: 370px;
  background: var(--white);
  padding: 40px 50px 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  display: flex; flex-direction: column;
}
.login-card h1 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--gray-900); }
.login-card p.sub { color: var(--gray-500); margin: 0 0 22px; font-size: 13px; }
.login-card .field { margin-bottom: 12px; }
.login-card .field label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.login-card input {
  border-radius: 0;
  border: 1px solid var(--gray-100);
  height: 40px;
}
.login-card input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 .5px var(--blue-400); }
.login-card .btn {
  width: 100%; height: 40px; border-radius: 0; margin-top: 8px;
  background: var(--blue-400); color: var(--white);
}
.login-card .btn:hover:not(:disabled) { background: var(--blue-500); }
.login-card .btn:disabled { background: var(--blue-200); opacity: 1; }
.login-err { color: var(--red); font-size: 13px; margin-top: 12px; min-height: 18px; }
.login-footer { z-index: 1; }
.login-footer .legal { display: flex; flex-direction: column; gap: 5px; }
.login-footer .links { display: flex; align-items: center; gap: 5px; }
.login-footer .links span, .login-footer .copy { color: var(--gray-500); font-size: 10px; font-weight: 500; }
.login-footer .links .sep { height: 10px; border-left: .5px solid var(--gray-500); }

.hr { border: none; border-top: 1px solid var(--gray-100); margin: 18px 0; }
.upload-row { display: grid; grid-template-columns: repeat(7, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.upload-status { font-size: 12px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin: 0 0 12px; }

/* ---------- table filter bar (nve TableFilter — 우측 정렬) ---------- */
.filter-bar {
  display: flex; width: 100%; flex-wrap: wrap;
  align-items: center; justify-content: flex-end;
  column-gap: 16px; row-gap: 8px;
  padding: 2px 2px 20px;
}
.filter-bar .filter-item { display: flex; align-items: center; gap: 6px; }
.filter-bar .filter-item > label { font-size: 13px; color: var(--gray-600); font-weight: 500; white-space: nowrap; }
.filter-bar .actions { display: flex; align-items: center; gap: 12px; }
.search-group { display: flex; align-items: stretch; }
.search-group select {
  border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none;
  background: var(--gray-50); font-size: 13px;
}
.search-group input { border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 170px; }

/* ---------- checkbox (nve Checkbox sm) ---------- */
input[type="checkbox"].cbx {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0;
  border: 1.5px solid var(--gray-300); border-radius: 4px;
  background: var(--white); cursor: pointer;
  display: inline-block; vertical-align: middle; position: relative;
  padding: 0; flex: 0 0 auto;
}
input[type="checkbox"].cbx:checked { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"].cbx:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
input[type="checkbox"].cbx:indeterminate { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"].cbx:indeterminate::after {
  content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 2px; background: var(--white);
}
td.cbx-cell, th.cbx-cell { width: 36px; text-align: center; padding-left: 12px; padding-right: 4px; }
tr.row-checked td { background: var(--primary-50); }

/* ---------- 목록 썸네일/질환 셀 (nve DiseaseCell / OriginalImageCell) ---------- */
.thumb {
  width: 36px; height: 36px; border-radius: 6px; object-fit: cover; display: block;
  background: var(--gray-100); flex: 0 0 auto;
}
.eye-line { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.eye-line .lat { width: 18px; font-weight: 700; color: var(--gray-600); font-size: 12px; }
.eye-line .fname {
  max-width: 270px; overflow-wrap: anywhere; white-space: normal; word-break: break-all;
  text-align: left; color: var(--gray-700); font-size: 12px;
}

/* ---------- 상태 뱃지 + 로딩 인디케이터 ---------- */
.badge-pill .mini-spin {
  width: 10px; height: 10px; border-width: 1.5px; margin-right: 4px;
  display: inline-block; border-style: solid; border-color: currentColor;
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite;
}

/* ---------- 정렬 가능한 헤더 ---------- */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable .arrow { font-size: 10px; margin-left: 4px; color: var(--gray-400); }
th.sortable.sorted .arrow { color: var(--primary); }

/* ---------- 테이블 푸터 / 페이지네이션 (nve TableFooter) ---------- */
.table-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; flex-wrap: wrap; gap: 10px;
}
.table-footer .count { color: var(--gray-600); font-size: 13px; }
.table-footer .count b { color: var(--gray-900); }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button {
  min-width: 28px; height: 28px; padding: 0 6px;
  border: none; background: transparent; border-radius: 6px;
  color: var(--gray-600); font-size: 13px; cursor: pointer; font-family: inherit;
}
.pagination button:hover:not(:disabled):not(.current) { background: var(--gray-50); }
.pagination button.current { background: var(--primary); color: var(--white); font-weight: 600; }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination .ellipsis { color: var(--gray-400); padding: 0 2px; font-size: 13px; }

/* ---------- 모달 (nve Dialog) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(29, 32, 35, .45);
  display: flex; align-items: center; justify-content: center;
  z-index: 60; padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 80px); overflow: hidden;
  width: 560px; max-width: 100%;
}
.modal.lg { width: 720px; }
.modal.sm { width: 400px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 8px;
  font-size: 17px; font-weight: 700; color: var(--gray-900);
}
.modal-head .close {
  background: none; border: none; cursor: pointer; font-size: 18px;
  color: var(--gray-500); padding: 4px; line-height: 1;
}
.modal-body { padding: 8px 24px 16px; overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 24px 20px;
}

/* ---------- 업로드 유형 선택 카드 (nve FormatCardBasis) ---------- */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.format-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; height: 200px; width: 100%;
  border: 1px solid var(--beige-200); border-radius: 12px;
  background: var(--white); cursor: pointer; padding: 25px 4px;
  color: var(--gray-500); font-size: 14px; font-family: inherit;
  transition: border-color .12s, background .12s, color .12s;
}
.format-card:hover { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.format-card .ic { font-size: 36px; line-height: 1; }
.format-card .desc { white-space: pre-line; font-size: 11px; color: var(--gray-700); text-align: left; }
.format-card:hover .desc { color: var(--primary); }

/* ---------- 단일 이미지 업로드 모달 (nve RegisterImageModal) ---------- */
.register-grid { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.dropzone {
  width: 240px; min-height: 240px;
  border: 1.5px dashed var(--gray-200); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-500); cursor: pointer; font-size: 13px;
  background: var(--gray-50); text-align: center; padding: 16px;
  transition: border-color .12s, background .12s, color .12s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.dropzone .ic { font-size: 28px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; width: 240px; }
.preview-tile { position: relative; }
.preview-tile img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--gray-100); display: block;
}
.preview-tile .rm {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(29,32,35,.6); color: #fff; border: none; cursor: pointer;
  font-size: 11px; line-height: 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .12s;
}
.preview-tile:hover .rm { opacity: 1; }
.preview-tile .lat-toggle {
  position: absolute; left: 4px; bottom: 4px;
  display: flex; gap: 2px;
}
.preview-tile .lat-toggle button {
  border: none; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 700;
  background: rgba(29,32,35,.55); color: #fff; cursor: pointer;
}
.preview-tile .lat-toggle button.on { background: var(--primary); }
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-field > label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-field > label .req { color: var(--red); margin-left: 2px; }
.form-field .hint { font-size: 12px; color: var(--gray-500); }
.form-field .err { font-size: 12px; color: var(--red); min-height: 0; }
.radio-row { display: flex; gap: 16px; align-items: center; padding: 6px 0; }
.radio-row label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gray-700); cursor: pointer; }
.radio-row input[type=radio] { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }

/* ---------- 진행 토스트 (nve ProgressToast) ---------- */
.progress-toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 320px; background: var(--white); border: 1px solid var(--gray-100);
  border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 14px 16px;
}
.progress-toast[hidden] { display: none; }
.progress-toast .pt-title { font-size: 13px; font-weight: 600; color: var(--gray-800); margin-bottom: 8px; }
.progress-toast .pt-bar { height: 6px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.progress-toast .pt-bar > span { display: block; height: 100%; background: var(--primary); width: 0%; transition: width .2s; }
.progress-toast .pt-stat { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
