/* /files — 통합 파일시스템 (오라클 저장소 + 안티그래비티 VM 워커) */

.fs-wrap { position: relative; z-index: 1; max-width: 1360px; margin: 0 auto; padding: 26px 20px 70px; }

.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.fs-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fs-brand .brand-mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: .02em; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); display: inline-block; }
.fs-title { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.fs-links { display: flex; gap: 8px; flex-wrap: wrap; }

.fs-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }

.fs-side { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px; position: sticky; top: 18px; }
.fs-side-label { font-size: 11px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; margin: 2px 4px 10px; }
.fs-targets { display: grid; gap: 4px; }
.fs-side-loading { color: var(--muted); font-size: 12.5px; padding: 6px; }
.fs-target {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  color: var(--text); cursor: pointer; font-size: 13px;
}
.fs-target:hover { background: var(--panel-2); border-color: var(--border-soft); }
.fs-target.active { background: var(--accent-soft); border-color: rgba(124, 92, 255, .35); }
.fs-target .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.fs-target .dot.ok { background: var(--mint); box-shadow: 0 0 8px rgba(36, 211, 165, .7); }
.fs-target .dot.off { background: var(--muted-2); }
.fs-target .fs-target-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-target .fs-target-meta { font-size: 11px; color: var(--muted-2); }
.fs-side-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.fs-legend { display: flex; align-items: center; gap: 7px; color: var(--muted); margin-bottom: 8px; font-size: 11.5px; }
.fs-legend .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.fs-legend .dot:first-child { margin-left: 0; }
.fs-legend .dot.ok { background: var(--mint); }
.fs-legend .dot.off { background: var(--muted-2); }

.fs-main { min-width: 0; display: grid; gap: 12px; }
.fs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13.5px; min-width: 0; }
.crumb { background: transparent; border: 1px solid transparent; color: var(--muted); padding: 4px 7px; border-radius: 8px; cursor: pointer; font: inherit; }
.crumb:hover { color: var(--text); background: var(--panel-2); }
.crumb.current { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--muted-2); font-size: 12px; }
.fs-actions { display: flex; gap: 7px; flex-wrap: wrap; }

.fs-uploadbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.5px; }
.select-sm { width: auto; padding: 5px 9px; font-size: 12px; border-radius: 8px; }
.fs-uploaddir { color: var(--muted); font-size: 12px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-hidden-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 12px; }
.fs-hidden-toggle input { accent-color: var(--accent); }

.fs-banner { border: 1px solid rgba(245, 181, 68, .35); background: var(--amber-soft); color: #ffd08a; padding: 10px 13px; border-radius: 12px; font-size: 12.5px; }
.fs-banner.error { border-color: rgba(255, 96, 118, .4); background: var(--danger-soft); color: #ffadb7; }

.fs-card { padding: 0; position: relative; overflow: hidden; }
.fs-statusline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.fs-table { font-size: 13px; }
.fs-table th { text-align: left; padding: 10px 16px; color: var(--muted-2); font-weight: 550; font-size: 11.5px; letter-spacing: .04em; border-bottom: 1px solid var(--border-soft); }
.fs-table th.sortable { cursor: pointer; user-select: none; }
.fs-table th.sortable:hover { color: var(--text); }
.fs-table th .arrow { color: var(--accent); margin-left: 3px; font-size: 10px; }
.fs-table td { padding: 9px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.fs-table tr:last-child td { border-bottom: none; }
.fs-table tbody tr:hover { background: rgba(255, 255, 255, .015); }
.fs-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.fs-name .icon { width: 18px; text-align: center; flex: none; opacity: .85; }
.fs-name .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-name .label.dir { cursor: pointer; font-weight: 550; }
.fs-name .label.dir:hover { color: #b9a8ff; }
.fs-empty { text-align: center; color: var(--muted-2); padding: 34px 16px !important; font-size: 12.5px; }
.fs-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.fs-badge { font-size: 10.5px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.fs-badge.local { border-color: rgba(124, 92, 255, .35); color: #b9a8ff; background: var(--accent-soft); }

.fs-drop {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(9, 13, 20, .82); border: 2px dashed rgba(124, 92, 255, .55); border-radius: var(--radius);
  color: #cdbcff; font-size: 14px; font-weight: 600; pointer-events: none; z-index: 4;
}

.fs-progress { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: 12px; }
.fs-progress-label { color: var(--muted); margin-bottom: 7px; display: flex; justify-content: space-between; gap: 10px; }
.fs-progress-bar { height: 6px; background: var(--panel-3); border-radius: 999px; overflow: hidden; }
.fs-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c5cff, #24d3a5); transition: width .18s ease; }

.fs-login { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: rgba(4, 6, 9, .82); backdrop-filter: blur(4px); padding: 20px; }
.fs-login-card { width: min(400px, 100%); padding: 24px; }
.fs-login-card h2 { font-size: 18px; }
.fs-login-card .input { width: 100%; margin-top: 5px; }
.login-error { margin-top: 10px; color: #ffadb7; font-size: 12.5px; }

@media (max-width: 900px) {
  .fs-body { grid-template-columns: 1fr; }
  .fs-side { position: static; }
  .fs-targets { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .fs-table th:nth-child(3), .fs-table td:nth-child(3) { display: none; }
  .fs-uploaddir { max-width: 100%; }
}
