/* =====================================================================
 * WorkOffice — 기본 스타일
 * ONE 플랫폼 디자인 토큰 (개발서 6절)
 *   배경 oklch(98% .004 260) / 텍스트 oklch(22% .01 260) / 보조 oklch(52% .01 260)
 *   Primary(인디고) oklch(55% .14 260)
 *   이 시스템 강조색은 같은 chroma/lightness에 hue만 바꿔서 사용 (톤 통일)
 * ===================================================================== */

:root {
  --bg:        oklch(98% 0.004 260);
  --surface:   #ffffff;
  --text:      oklch(22% 0.01 260);
  --muted:     oklch(52% 0.01 260);
  --border:    oklch(92% 0.005 260);
  --border-2:  oklch(88% 0.006 260);

  --primary:      oklch(55% 0.14 260);
  --primary-weak: oklch(96% 0.02 260);
  --primary-ink:  oklch(38% 0.12 260);

  /* 웹오피스 고유 강조색 — 같은 톤에서 hue만 이동 (문서/청록 계열) */
  --accent:      oklch(55% 0.14 195);
  --accent-weak: oklch(96% 0.02 195);

  --ok:     oklch(58% 0.13 150);
  --ok-weak:oklch(96% 0.03 150);
  --warn:   oklch(65% 0.14 75);
  --warn-weak: oklch(96% 0.04 75);
  --danger: oklch(55% 0.17 27);
  --danger-weak: oklch(96% 0.03 27);

  --navbar: #1e1e2e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,20,40,.05), 0 4px 16px rgba(16,20,40,.05);
}

* { box-sizing: border-box; }

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

a { color: inherit; text-decoration: none; }
.link { color: var(--primary); }
.link:hover { text-decoration: underline; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny  { font-size: 11.5px; }
.mt { margin-top: 14px; }

/* ---------------- 부팅 화면 ---------------- */
.boot {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: var(--bg); z-index: 100;
}
.boot-card { text-align: center; max-width: 420px; padding: 32px; }
.boot-card h2 { margin: 16px 0 6px; font-size: 19px; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px;
}
.brand-mark.big { width: 52px; height: 52px; border-radius: 14px; font-size: 24px; }

/* ---------------- 상단 표시줄 (전체 폭) ---------------- */
.app-navbar {
  background: var(--navbar);
  display: flex; justify-content: space-between; align-items: center;
  height: 54px; min-height: 54px; padding: 0 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.navbar-brand .brand-sub {
  font-weight: 500; font-size: 11.5px; opacity: .55; letter-spacing: .04em;
  padding-left: 8px; border-left: 1px solid rgba(255,255,255,.18);
}
.navbar-user { display: flex; align-items: center; gap: 10px; }
.navbar-user .user-chip {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 12.5px;
}
.user-chip .role-tag {
  font-style: normal; font-size: 10.5px; background: rgba(255,255,255,.16);
  padding: 1px 6px; border-radius: 999px;
}
.nav-action {
  background: var(--accent); color: #fff; border: 0;
  border-radius: var(--radius-sm); padding: 7px 13px; font-size: 12.5px;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.nav-action.ghost { background: rgba(255,255,255,.1); }
.nav-action:hover { filter: brightness(1.08); }

/* ---------------- 레이아웃 ---------------- */
.layout { display: flex; height: calc(100vh - 54px); overflow: hidden; }

.wo-sidebar {
  width: 210px; min-width: 210px; background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 12px 10px; gap: 4px;
  overflow-y: auto;
}
/* iframe(ONE 플랫폼) 안에서는 자체 사이드바를 숨긴다 — 쉘이 진짜 사이드바를 보여준다 */
html.is-embedded .wo-sidebar { display: none !important; }

/* 협업시스템이 "열기"로 띄운 새 창 — 그 문서 하나만 편집하는 전용 화면이다.
   사이드바(위에서 이미 숨김)에 더해 문서 올리기 버튼도 숨긴다: 이 창에서 다른 문서를
   올릴 이유가 없고, 올려봐야 협업시스템의 파일탭과 연결되지 않아 혼란만 준다. */
html.is-external-window .nav-action-upload { display: none !important; }

.side-group { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.side-title { font-size: 11px; color: var(--muted); padding: 10px 10px 4px; font-weight: 700; letter-spacing: .04em; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.side-item:hover { background: var(--bg); }
.side-item.active { background: var(--primary-weak); color: var(--primary-ink); font-weight: 700; }
.side-icon { width: 18px; text-align: center; opacity: .7; }
.side-foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); }
.quota-bar { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 5px; }
.quota-bar span { display: block; height: 100%; background: var(--accent); }
.quota-text { font-size: 11px; color: var(--muted); }

.wo-main { flex: 1; overflow-y: auto; overflow-x: hidden; }
.page { padding: 22px 26px 60px; max-width: 1280px; }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.page-head h1 { margin: 0 0 3px; font-size: 21px; letter-spacing: -.02em; }
.page-head p { margin: 0; font-size: 13px; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px;
}
.panel h3 { margin: 0 0 12px; font-size: 15px; }

.row { display: flex; align-items: center; }
.row.gap { gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.center { align-items: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------------- 폼 ---------------- */
.input, .textarea, select.input {
  font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--radius-sm); padding: 8px 11px; outline: none; width: 100%;
}
.input:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-weak); }
.input-sm { padding: 6px 9px; font-size: 12.5px; width: auto; }
.input-search { min-width: 220px; }
.textarea { resize: vertical; }
.lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 5px; }
.check { cursor: pointer; font-size: 13px; }
.check input { width: 15px; height: 15px; }

.btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer;
  border: 1px solid transparent; background: var(--surface); color: var(--text);
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-ghost { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }

.icon-btn {
  background: transparent; border: 0; cursor: pointer; font-size: 15px;
  color: var(--muted); padding: 4px 7px; border-radius: 6px; font-family: inherit;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn.on { color: var(--warn); }
.icon-btn.back { font-size: 22px; line-height: 1; }

/* ---------------- 배지 ---------------- */
.badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-gray   { background: var(--bg); color: var(--muted); border: 1px solid var(--border-2); }
.badge-ok     { background: var(--ok-weak); color: oklch(38% .12 150); }
.badge-warn   { background: var(--warn-weak); color: oklch(42% .12 75); }
.badge-danger { background: var(--danger-weak); color: var(--danger); }
.badge-info   { background: var(--accent-weak); color: oklch(38% .12 195); }

/* ---------------- 아바타 ---------------- */
.avatar {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700; flex: none;
}
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.editing { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px currentColor; }

/* ---------------- 문서 목록 ---------------- */
.doc-list { display: flex; flex-direction: column; gap: 2px; }
.doc-table-head, .doc-row {
  display: grid;
  grid-template-columns: minmax(240px, 3fr) 100px 60px 80px 110px 90px 76px;
  align-items: center; gap: 10px; padding: 9px 12px;
}
.doc-table-head { font-size: 11.5px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--border); }
.doc-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
}
.doc-row:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.doc-row.is-live { border-left: 3px solid var(--ok); }
.doc-row.compact { grid-template-columns: 30px 1fr auto auto; }
.doc-row .c-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.doc-name { display: flex; flex-direction: column; min-width: 0; }
.doc-name strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-file { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-ver, .c-size, .c-owner, .c-date { font-size: 12px; color: var(--muted); }
.c-act { display: flex; gap: 2px; justify-content: flex-end; }

.ftype {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 7px; color: #fff; font-size: 14px; flex: none;
}
.ftype.lg { width: 40px; height: 40px; font-size: 19px; border-radius: 10px; }

.live-dot { color: var(--ok); font-size: 11px; font-weight: 700; }

/* ---------------- 통계 카드 ---------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.stat-unit { font-size: 11.5px; color: var(--muted); }

.live-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.live-row:hover { border-color: var(--ok); }
.live-panel {
  background: var(--ok-weak); border: 1px solid oklch(88% .06 150);
  border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
}
.live-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }

/* ---------------- 형식 표 ---------------- */
.fmt-table { display: flex; flex-direction: column; gap: 1px; }
.fmt-row { display: grid; grid-template-columns: 230px 100px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); }
.fmt-name { font-size: 13px; font-weight: 500; }

/* ---------------- 탭 ---------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tab {
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 14px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--muted); cursor: pointer; white-space: nowrap;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-body { min-height: 200px; }

/* ---------------- 키-값 표 ---------------- */
.kv { display: flex; flex-direction: column; }
.kv-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.kv-k { color: var(--muted); font-weight: 600; }

/* ---------------- 버전 목록 ---------------- */
.ver-list { display: flex; flex-direction: column; gap: 6px; }
.ver-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
}
.ver-row.current { border-color: var(--primary); background: var(--primary-weak); }
.ver-no { font-weight: 800; font-size: 14px; color: var(--primary-ink); }
.ver-main p { margin: 3px 0 0; }
.hash { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; background: var(--bg); padding: 1px 5px; border-radius: 4px; margin-left: 6px; }

/* ---------------- 계보 ---------------- */
.lineage { display: flex; flex-direction: column; gap: 6px; }
.lineage-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px;
}
.lin-node { font-weight: 600; color: var(--primary); }
.lin-arrow { color: var(--muted); }

/* ---------------- 공유 ---------------- */
.share-add { display: grid; grid-template-columns: 110px 1fr 110px auto; gap: 8px; align-items: center; }
.share-list { display: flex; flex-direction: column; }
.share-row {
  display: grid; grid-template-columns: 1fr 90px 190px 40px; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.share-row.header { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.share-row span:first-child { display: flex; align-items: center; gap: 7px; }

/* ---------------- 댓글 ---------------- */
.comment-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.comment.resolved { opacity: .55; }
.comment-body { margin: 4px 0 0; font-size: 13.5px; white-space: pre-wrap; }

/* ---------------- 작업 / 감사 ---------------- */
.job-list, .audit-list { display: flex; flex-direction: column; }
.job-row { display: grid; grid-template-columns: 70px 100px 120px 140px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.audit-row { display: grid; grid-template-columns: 130px 130px 180px 80px 1fr; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.audit-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.audit-action { font-weight: 600; }
.audit-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 사용자 관리 ---------------- */
.user-row { display: grid; grid-template-columns: 1fr 160px 120px 80px 100px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.user-row.header { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.user-row.inactive { opacity: .5; }
.user-row span:first-child { display: flex; align-items: center; gap: 8px; }

/* ---------------- 템플릿 ---------------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tpl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px;
}
.tpl-head { display: flex; align-items: center; gap: 8px; }
.tpl-card button { margin-top: auto; align-self: flex-start; }

/* ---------------- 안내 박스 ---------------- */
.notice {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; font-size: 13px;
}
.notice p { margin: 0 0 5px; }
.notice p:last-child { margin-bottom: 0; }
.notice.slim { padding: 8px 14px; margin: 0; border-radius: 0; }
.notice-warn  { background: var(--warn-weak); border-left-color: var(--warn); }
.notice-error { background: var(--danger-weak); border-left-color: var(--danger); }
.notice-ok    { background: var(--ok-weak); border-left-color: var(--ok); }
.notice ol.tight, .notice ul.tight { margin: 6px 0 0; padding-left: 18px; }

/* ---------------- 빈 화면 / 스켈레톤 ---------------- */
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-icon { font-size: 34px; opacity: .3; margin-bottom: 10px; }
.empty h3 { margin: 0 0 5px; font-size: 15px; color: var(--text); }
.empty p { margin: 0 0 14px; font-size: 13px; }

.skeleton { display: flex; flex-direction: column; gap: 8px; }
.skeleton-row {
  height: 44px; border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------------- 토스트 ---------------- */
.toast-host { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--navbar); color: #fff; padding: 10px 15px;
  border-radius: var(--radius-sm); font-size: 13px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); transition: .2s; max-width: 380px;
}
.toast.show { opacity: 1; transform: none; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.toast-ok .toast-dot { background: oklch(70% .15 150); }
.toast-warn .toast-dot { background: oklch(75% .15 75); }
.toast-error .toast-dot { background: oklch(65% .18 27); }

/* ---------------- 모달 ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,22,34,.42);
  display: grid; place-items: center; z-index: 200; padding: 20px;
  opacity: 0; transition: opacity .18s;
}
.modal-overlay.show { opacity: 1; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(16,20,40,.2);
  width: 100%; max-height: 88vh; display: flex; flex-direction: column;
}
.modal-sm { max-width: 420px; }
.modal-md { max-width: 620px; }
.modal-lg { max-width: 880px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 15.5px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.confirm-text { margin: 0; font-size: 13.5px; white-space: pre-wrap; }

/* ---------------- 로딩 ---------------- */
.busy-overlay { position: fixed; inset: 0; background: rgba(250,250,252,.7); display: grid; place-items: center; z-index: 250; }
.busy-box { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow); font-size: 13.5px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-2); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.big { width: 34px; height: 34px; border-width: 3px; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 업로드 ---------------- */
.upload-progress { display: flex; flex-direction: column; gap: 5px; }
.upload-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 10px; background: var(--bg); border-radius: 6px; }
.upload-line.ok { background: var(--ok-weak); }
.upload-line.fail { background: var(--danger-weak); }

/* ---------------- 다운로드 메뉴 ---------------- */
.dl-group h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.dl-item {
  display: flex; justify-content: space-between; gap: 12px; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 12px; cursor: pointer; font-family: inherit; font-size: 13px; text-align: left;
}
.dl-item:hover { border-color: var(--primary); background: var(--primary-weak); }

/* ---------------- 외부 진입 화면 ---------------- */
.open-page { display: grid; place-items: center; min-height: 60vh; }
.open-card { text-align: center; max-width: 460px; }
.open-card h2 { margin: 6px 0; font-size: 18px; }
.open-log { margin-top: 18px; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.open-step { font-size: 12.5px; color: var(--muted); padding: 6px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.open-step.ok { border-left: 3px solid var(--ok); color: var(--text); }
.open-step.fail { border-left: 3px solid var(--danger); color: var(--danger); background: var(--danger-weak); }

@media (max-width: 900px) {
  .wo-sidebar { display: none; }
  .doc-table-head, .doc-row { grid-template-columns: 1fr 80px 76px; }
  .doc-row .c-ver, .doc-row .c-size, .doc-row .c-owner, .doc-row .c-date,
  .doc-table-head .c-ver, .doc-table-head .c-size, .doc-table-head .c-owner, .doc-table-head .c-date { display: none; }
  .grid2, .share-add { grid-template-columns: 1fr; }
  .audit-row { grid-template-columns: 1fr; gap: 2px; }
}

/* 설치 미완료 배너 — 업로드가 RLS로 막히는 상황을 진입 즉시 알린다 */
.install-banner {
  background: var(--danger-weak);
  border: 1px solid var(--danger);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 26px 0;
}
.install-banner strong { display: block; color: var(--danger); margin-bottom: 6px; font-size: 13.5px; }
.install-banner p { margin: 0 0 4px; font-size: 13px; white-space: pre-wrap; }

/* 영구 삭제 — 되돌릴 수 없는 동작이라 색으로 구분한다 */
.icon-btn.danger { color: var(--danger); }
.icon-btn.danger:hover { background: var(--danger-weak); }

.purge-list {
  max-height: 42vh; overflow-y: auto; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px;
}
.purge-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; }
.purge-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftype.sm { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }
